|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neodatis.odb.core.query.AbstractQuery
public abstract class AbstractQuery
Field Summary | |
---|---|
protected IQueryExecutionPlan |
executionPlan
|
protected OID |
oidOfObjectToQuery
The OID attribute is used when the query must be restricted the object with this OID |
protected java.lang.String[] |
orderByFields
|
protected OrderByConstants |
orderByType
|
protected boolean |
polymorphic
|
protected IStorageEngine |
storageEngine
|
Constructor Summary | |
---|---|
AbstractQuery()
|
Method Summary | |
---|---|
IQueryExecutionPlan |
getExecutionPlan()
|
OID |
getOidOfObjectToQuery()
used with isForSingleOid == true, to indicate we are working on a single object with a specific oid |
java.lang.String[] |
getOrderByFieldNames()
Returns the field names of the order by |
OrderByConstants |
getOrderByType()
|
IStorageEngine |
getStorageEngine()
|
boolean |
hasOrderBy()
Returns true if the query has an order by clause |
boolean |
isForSingleOid()
Returns true is query must apply on a single object OID |
boolean |
isPolymorphic()
|
boolean |
optimizeObjectComparison()
|
IQuery |
orderByAsc(java.lang.String fields)
To order by the result of a query in ascendent order |
IQuery |
orderByDesc(java.lang.String fields)
To order by the result of a query in descendent order |
void |
setExecutionPlan(IQueryExecutionPlan plan)
|
void |
setOidOfObjectToQuery(OID oidOfObjectToQuery)
|
IQuery |
setOptimizeObjectComparison(boolean yesNo)
|
void |
setOrderByFields(java.lang.String[] orderByFields)
|
void |
setOrderByType(OrderByConstants orderByType)
|
IQuery |
setPolymorphic(boolean yes)
To specify that instances of subclass of the query class must not be load if true, when querying objects of class Class1, only direct instances of Class1 will be loaded. |
void |
setStorageEngine(IStorageEngine storageEngine)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String[] orderByFields
protected OrderByConstants orderByType
protected transient IStorageEngine storageEngine
protected IQueryExecutionPlan executionPlan
protected boolean polymorphic
protected OID oidOfObjectToQuery
Constructor Detail |
---|
public AbstractQuery()
Method Detail |
---|
public IQuery orderByDesc(java.lang.String fields)
IQuery
orderByDesc
in interface IQuery
fields
- A comma separated field list
public IQuery orderByAsc(java.lang.String fields)
IQuery
orderByAsc
in interface IQuery
fields
- A comma separated field list
public java.lang.String[] getOrderByFieldNames()
IQuery
getOrderByFieldNames
in interface IQuery
public void setOrderByFields(java.lang.String[] orderByFields)
public OrderByConstants getOrderByType()
getOrderByType
in interface IQuery
public void setOrderByType(OrderByConstants orderByType)
public boolean hasOrderBy()
IQuery
hasOrderBy
in interface IQuery
public IStorageEngine getStorageEngine()
getStorageEngine
in interface IQuery
public void setStorageEngine(IStorageEngine storageEngine)
setStorageEngine
in interface IQuery
public IQueryExecutionPlan getExecutionPlan()
getExecutionPlan
in interface IQuery
public void setExecutionPlan(IQueryExecutionPlan plan)
setExecutionPlan
in interface IQuery
public boolean isPolymorphic()
isPolymorphic
in interface IQuery
public IQuery setPolymorphic(boolean yes)
IQuery
setPolymorphic
in interface IQuery
public OID getOidOfObjectToQuery()
IQuery
getOidOfObjectToQuery
in interface IQuery
public void setOidOfObjectToQuery(OID oidOfObjectToQuery)
public boolean isForSingleOid()
isForSingleOid
in interface IQuery
public boolean optimizeObjectComparison()
optimizeObjectComparison
in interface IQuery
public IQuery setOptimizeObjectComparison(boolean yesNo)
setOptimizeObjectComparison
in interface IQuery
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |