org.neodatis.odb.core.query
Interface IQuery
-
- All Superinterfaces:
- java.io.Serializable
- All Known Subinterfaces:
- IValuesQuery
- All Known Implementing Classes:
- AbstractQuery, CriteriaQuery, NativeQuery, SimpleNativeQuery, ValuesCriteriaQuery
public interface IQuery extends java.io.Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description IQueryExecutionPlangetExecutionPlan()OIDgetOidOfObjectToQuery()used with isForSingleOid == true, to indicate we are working on a single object with a specific oidjava.lang.String[]getOrderByFieldNames()Returns the field names of the order byOrderByConstantsgetOrderByType()IStorageEnginegetStorageEngine()booleanhasOrderBy()Returns true if the query has an order by clausebooleanisForSingleOid()To indicate if a query must be executed on a single object with the specific OID.booleanisPolymorphic()booleanoptimizeObjectComparison()IQueryorderByAsc(java.lang.String fields)To order by the result of a query in ascendent orderIQueryorderByDesc(java.lang.String fields)To order by the result of a query in descendent ordervoidsetExecutionPlan(IQueryExecutionPlan plan)IQuerysetOptimizeObjectComparison(boolean b)IQuerysetPolymorphic(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.voidsetStorageEngine(IStorageEngine storageEngine)
-
-
-
Method Detail
-
orderByDesc
IQuery orderByDesc(java.lang.String fields)
To order by the result of a query in descendent order- Parameters:
fields- A comma separated field list- Returns:
- this
-
orderByAsc
IQuery orderByAsc(java.lang.String fields)
To order by the result of a query in ascendent order- Parameters:
fields- A comma separated field list- Returns:
- this
-
hasOrderBy
boolean hasOrderBy()
Returns true if the query has an order by clause- Returns:
- true if has an order by flag
-
getOrderByFieldNames
java.lang.String[] getOrderByFieldNames()
Returns the field names of the order by- Returns:
- The array of fields of the order by
-
getOrderByType
OrderByConstants getOrderByType()
- Returns:
- the type of the order by - ORDER_BY_NONE,ORDER_BY_DESC,ORDER_BY_ASC
-
getStorageEngine
IStorageEngine getStorageEngine()
-
setStorageEngine
void setStorageEngine(IStorageEngine storageEngine)
-
getExecutionPlan
IQueryExecutionPlan getExecutionPlan()
-
setExecutionPlan
void setExecutionPlan(IQueryExecutionPlan plan)
-
setPolymorphic
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. If false, when querying objects of class Class1, direct instances of Class1 will be loaded and all instances of subclasses of Class1.
-
isPolymorphic
boolean isPolymorphic()
-
isForSingleOid
boolean isForSingleOid()
To indicate if a query must be executed on a single object with the specific OID. Used for ValuesQeuries- Returns:
-
getOidOfObjectToQuery
OID getOidOfObjectToQuery()
used with isForSingleOid == true, to indicate we are working on a single object with a specific oid- Returns:
-
setOptimizeObjectComparison
IQuery setOptimizeObjectComparison(boolean b)
- Parameters:
b-
-
optimizeObjectComparison
boolean optimizeObjectComparison()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG