public ScalarExpression newLiteral(QueryExpression qs, Object value)
{
if (datastoreJavaType.equals(ClassNameConstants.JAVA_LANG_INTEGER))
{
// Return an IntegerLiteral to represent this Enum, but with the original value present just in case
ScalarExpression expr = new IntegerLiteral(qs, this, BigInteger.valueOf(((Enum)value).ordinal()));
((Literal)expr).setRawValue(value);
return expr;
}
else if (datastoreJavaType.equals(ClassNameConstants.JAVA_LANG_STRING))
{