T
- the return type of the querypublic abstract class AbstractQuerySupport<T extends PortalEntity> extends java.lang.Object implements AbstractQuery<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractQuerySupport(java.lang.Class<T> returnType,
java.lang.Class<? extends T>[] from) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class<? extends T>[] |
getFrom()
Gets the list of types for the from clause
|
java.lang.Class<T> |
getReturnType()
Gets the return type of the query
|
protected Expression |
getWhere()
Gets the expression for the where clause
|
protected void |
setFrom(java.lang.Class<? extends T>[] types)
Sets the list of types for the from clause
|
protected void |
setWhere(Expression restriction)
Sets the where clause
|
Expression |
toExpression()
Converts the query into an expression
|
java.lang.String |
toString() |
public java.lang.Class<T> getReturnType()
AbstractQuery
getReturnType
in interface AbstractQuery<T extends PortalEntity>
public Expression toExpression()
AbstractQuery
toExpression
in interface AbstractQuery<T extends PortalEntity>
protected java.lang.Class<? extends T>[] getFrom()
protected void setFrom(java.lang.Class<? extends T>[] types)
types
- the list of typesprotected Expression getWhere()
protected void setWhere(Expression restriction)
restriction
- the expression to restrict the querypublic java.lang.String toString()
toString
in class java.lang.Object