public abstract class QueryBuilder.CastAs<ReturnType> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
QueryBuilder.CastAs(Object value) |
| Modifier and Type | Method and Description |
|---|---|
abstract ReturnType |
as(String type)
Define the right-hand side literal value cast as the specified type.
|
ReturnType |
asBoolean()
Define the right-hand side literal value cast as a
PropertyType.BOOLEAN. |
ReturnType |
asDate()
Define the right-hand side literal value cast as a
PropertyType.DATE. |
ReturnType |
asDouble()
Define the right-hand side literal value cast as a
PropertyType.DOUBLE. |
ReturnType |
asLong()
Define the right-hand side literal value cast as a
PropertyType.LONG. |
ReturnType |
asPath()
Define the right-hand side literal value cast as a
PropertyType.PATH. |
ReturnType |
asString()
Define the right-hand side literal value cast as a
PropertyType.STRING. |
protected final Object value
protected QueryBuilder.CastAs(Object value)
public abstract ReturnType as(String type)
type - the property type; may not be nullpublic ReturnType asString()
PropertyType.STRING.public ReturnType asBoolean()
PropertyType.BOOLEAN.public ReturnType asLong()
PropertyType.LONG.public ReturnType asDouble()
PropertyType.DOUBLE.public ReturnType asDate()
PropertyType.DATE.public ReturnType asPath()
PropertyType.PATH.Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.