EDMSelectInstances
edm.edom3
Interface EDMSelectInstances
All Superinterfaces:EDMContextDependent, EDMWorker
public interface EDMSelectInstances extends EDMWorker
This interface defines a worker for select a subset of instances from an aggregate or a model. That means that legal sources are EDMModel and EDMAggregate. Legal targets are EDMQueryResult and EDMLocalStream Copyright(C) EPM Technology AS.Version:3 Author: Arne Toen - EPM Technology AS.
Method Summary
All Methods Instance Methods Abstract MethodsÂ
Modifier and Type Method and Description java.lang.String
getAttributes()
Get the attributes / column names to include in queryjava.lang.String
getCondition()
retrieve current match conditionjava.lang.String
getEntityName()
Retrieve current entity name for model searchboolean
getIsObtainReferences()
Get current setting for obtaining references (for instance)int
getMaxHits()
Retrieve current value for max hitsjava.lang.String[]
getSortBy()
Get current coloumn names for sortinglong[]
getSortOption()
Get current options for sortgin on coloumn namesint
getStartIndex()
Get start index range in total setvoid
setAttributes(java.lang.String s)
Set the attributes / column names to include in query, null = allvoid
setCondition(java.lang.String condition)
Set filter condition for instances.void
setEntityName(java.lang.String entity_name)
Set entity name to search for.void
setIsObtainReferences(boolean value)
Set current setting for obtaining references (for instance)void
setMaxHits(int max_hits)
Define max number of members in result setvoid
setSorting(java.lang.String[]Â sortBy, long[]Â sortOptions)
Set sorting options using multiple columns - but currently only 1 allowed.void
setSorting(java.lang.String sortBy, long sortOptions)
Set sorting options - single columnvoid
setStartIndex(int start_index)
Define start index range in total setMethods inherited from interface edm.edom3.EDMWorker
execute, getConfiguration, getFileMappings, getFormalParameters, getHitsOut, getIndexOut, getLogDescription, getOptions, getParameters, getResult, getSource, getTarget, resetOptions, setConfiguration, setFileMappings, setOptions, setParameters, setSource, setSystemOutput, setSystemOutput, setTarget, setUserOutput, setUserOutput
Methods inherited from interface edm.edom3.EDMContextDependent
getContext
Method Detail
setEntityName
void setEntityName(java.lang.String entity_name)
Set entity name to search for. Optionally all subtype instances of the specified type will be search as well if the corresponding option bit is set. If you are searching an aggregate this field has no effect!Parameters:entity_name - the name of the entity that defines the actual instance type to query. Entity names are case insensitive.
getEntityName
java.lang.String getEntityName()
Retrieve current entity name for model searchReturns:current entity name for model search
getAttributes
java.lang.String getAttributes()
Get the attributes / column names to include in queryReturns:comma-separated list of attributes
setAttributes
void setAttributes(java.lang.String s)
Set the attributes / column names to include in query, null = allParameters:s - comma-separated list of attributes
setStartIndex
void setStartIndex(int start_index)
Define start index range in total setParameters:start_index - where to start, first=0
getStartIndex
int getStartIndex()
Get start index range in total setReturns:start_index where to start, first=0
setMaxHits
void setMaxHits(int max_hits)
Define max number of members in result setParameters:max_hits - for range
getMaxHits
int getMaxHits()
Retrieve current value for max hitsReturns:current value for max hits
setCondition
void setCondition(java.lang.String condition)
Set filter condition for instances. All instances of the specified type in the specified model will match an empty condition, i.e. the < condition > argument set to NULLParameters:condition - any legal symbolic Express-X logical expression.
getCondition
java.lang.String getCondition()
retrieve current match conditionReturns:condition string
setSorting
void setSorting(java.lang.String sortBy, long sortOptions) throws EdmiException
Set sorting options - single columnParameters:sortBy - Attribute names as comma-separated list to sort bysortOptions - :CASE_INSENSITIVE : case insensitive on strings, default case sensitive(0x01) DESCENDING : Sorts descending, default ascending (0x02)Throws:EdmiException - if the method fails
setSorting
void setSorting(java.lang.String[] sortBy, long[] sortOptions) throws EdmiException
Set sorting options using multiple columns - but currently only 1 allowed.Parameters:sortBy - Attribute name list to sort by, the sort order is based on the order in the attribute listsortOptions - list :CASE_INSENSITIVE : case insensitive on strings, default case sensitive(0x01) DESCENDING : Sorts descending, default ascending (0x02)Throws:EdmiException - if the method fails
getSortBy
java.lang.String[]Â getSortBy()
Get current coloumn names for sortingReturns:sorting column names, null if not set
getSortOption
long[]Â getSortOption()
Get current options for sortgin on coloumn namesReturns:sorting options for each column, null if not set
getIsObtainReferences
boolean getIsObtainReferences()
Get current setting for obtaining references (for instance)Returns:true if worker is set to obtain references
setIsObtainReferences
void setIsObtainReferences(boolean value)
Set current setting for obtaining references (for instance)Parameters:value - true if worker should obtain references