|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.core.DataQuery
This is a simple container class that wraps data that speciffies parametres for performing data querys. Note that all DataServices may not implement all the query parameters which could result in an exception being thrown.
Nested Class Summary | |
class |
DataQuery.ExternalQualifier
|
Constructor Summary | |
DataQuery()
Default constructor. |
|
DataQuery(IEntityDescriptor entityDescriptor)
Creates a DataQuery instance. |
|
DataQuery(IEntityDescriptor entityDescriptor,
Qualifier qualifier)
Creates a DataQuery instance. |
Method Summary | |
void |
addCollationField(IFieldDescriptor fieldDescriptor)
Help method that allows the entity order to be defined using multiple IFieldDescriptors by calling this method repeatedly. |
void |
addCollationField(IFieldDescriptor fieldDescriptor,
boolean ascending)
Help method that allows the entity order to be defined using multiple IFieldDescriptors by calling this method repeatedly. |
void |
addExternalQualifier(Qualifier qualifier,
IEntityRelationPath relationPath)
Add an external qualifier to the data query, used to construct relation queries. |
void |
clearCollationFields()
Help method the resets the query's order data causing the entities to be returned in their default order. |
ISelection |
execute()
This conviniance method will run the query using the default datasource defined for the DataSourceDescriptor that the requested EntityDescriptor belongs to. |
EntityCollator |
getEntityCollator()
Returns the EntityCollator object that the DataQuery uses to order the qualified entities. |
IEntityDescriptor |
getEntityDescriptor()
Returns the IEntityDescriptorobject that the DataQuery targets. |
DataQuery.ExternalQualifier[] |
getExternalQualifierArray()
|
Qualifier |
getQualifier()
Returns the Qualifier object that the DataQuery uses to qualify individual entities of the targeted entity descriptor type. |
void |
setCollationField(IFieldDescriptor fieldDescriptor)
Help method that allows the entity order to be set using a single IFieldDescriptor. |
void |
setCollationField(IFieldDescriptor fieldDescriptor,
boolean ascending)
Help method that allows the entity order to be set using a single IFieldDescriptor. |
void |
setEntityCollator(EntityCollator collator)
Sets the EntityCollator object that the DataQuery uses to order the qualified entities. |
void |
setEntityDescriptor(IEntityDescriptor descriptor)
Sets the IEntityDescriptorobject that the DataQuery targets. |
void |
setQualifier(Qualifier qualifier)
Sets the Qualifier object that the DataQuery uses to qualify individual entities of the tageted entity descriptor type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataQuery()
public DataQuery(IEntityDescriptor entityDescriptor)
public DataQuery(IEntityDescriptor entityDescriptor, Qualifier qualifier)
InvalidQualifierException
Qualifier.canDirectlyQualify(IEntityDescriptor entityDescriptor)
Method Detail |
public void addExternalQualifier(Qualifier qualifier, IEntityRelationPath relationPath)
qualifier
- that qualifies the first entity descriptor
in the relationPath.relationPath
- the path to the entity descriptor that the qualifier
qualifies.Qualifier.canDirectlyQualify(IEntityDescriptor entityDescriptor)
public ISelection execute()
public IEntityDescriptor getEntityDescriptor()
public void setEntityDescriptor(IEntityDescriptor descriptor)
public Qualifier getQualifier()
public DataQuery.ExternalQualifier[] getExternalQualifierArray()
public void setQualifier(Qualifier qualifier)
public EntityCollator getEntityCollator()
public void setEntityCollator(EntityCollator collator)
public void setCollationField(IFieldDescriptor fieldDescriptor)
public void setCollationField(IFieldDescriptor fieldDescriptor, boolean ascending)
public void addCollationField(IFieldDescriptor fieldDescriptor)
public void addCollationField(IFieldDescriptor fieldDescriptor, boolean ascending)
public void clearCollationFields()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |