public class GetDocuments extends AbstractSequencerRule
| Modifier and Type | Field and Description |
|---|---|
protected QueryStructureExt |
checkElement |
protected java.lang.String |
documentElement |
protected SelValueExt |
elementCondition |
protected java.lang.String |
elementName |
protected QueryStructureExt |
getDocuments |
protected SelValueExt |
instanceCondition |
protected ODSCache |
odsCache |
protected java.lang.String |
refAeAttr |
protected java.lang.String |
refIeAttr |
protected java.lang.String[] |
stopAtElementList |
protected java.lang.String |
stopAtElements |
cleanAfterGet, localNVUloggerName, postMethods, preMethods, sessionRefarguments, ctx, descriptor, NEW_LINE| Constructor and Description |
|---|
GetDocuments() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChildrenReferences(ODSCache odsCache,
T_LONGLONG aidDoc,
java.lang.String elementName,
T_LONGLONG[] ids,
ApplRel childRel,
java.util.Vector<NameValueUnit[]> foundDocuments)
Add the referenced documents of the children.
|
void |
execute()
The execute method, nothing to do.
|
protected NameValueUnit[][] |
getResult(ResultSetExt[] resultSet)
Convert the result set in a NameValueUnit package.
|
protected boolean |
haveReferenceDocuments(ODSCache odsCache,
T_LONGLONG aidDoc,
java.lang.String elementName)
Determine whether there are any documents referencing the given element.
|
void |
init()
The init method.
|
protected T_LONGLONG[] |
loadChildrenIds(ODSCache odsCache,
java.lang.String elementName,
T_LONGLONG[] ids,
ApplRel childRel)
Load the Ids of the children instances.
|
protected void |
loadReferenceDocuments(ODSCache odsCache,
T_LONGLONG aidDoc,
java.lang.String elementName,
T_LONGLONG[] ids,
java.util.Vector<NameValueUnit[]> foundDocuments)
Load the Id, the parentAeName and parentIeName from the Document element.
|
void |
setValue(NameValueUnit[][] nvu)
Set the data set in the rule, the rule will load the
Id's of the Document.
|
void |
terminate()
The terminate method reset the class variables.
|
getValueexecute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, toString, toString, toStringaddAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContext, getDescriptor, setArguments, setContext, setDescriptorprotected java.lang.String elementName
protected java.lang.String documentElement
protected java.lang.String refAeAttr
protected java.lang.String refIeAttr
protected java.lang.String stopAtElements
protected java.lang.String[] stopAtElementList
protected ODSCache odsCache
protected QueryStructureExt checkElement
protected QueryStructureExt getDocuments
protected SelValueExt elementCondition
protected SelValueExt instanceCondition
public void init()
throws InitializationFailedException
init in interface ImplementationIFinit in class AbstractSequencerRuleInitializationFailedException - if the initialization fails.AbstractImplementation.init()protected boolean haveReferenceDocuments(ODSCache odsCache, T_LONGLONG aidDoc, java.lang.String elementName) throws AoException
odsCache - the ODS application model cache.aidDoc - the Id of the document element.elementName - the name of the reference element.AoException - any occurring ASAM ODS exception.protected NameValueUnit[][] getResult(ResultSetExt[] resultSet) throws AoException
alias - the alias namesresultSet - the result setAoException - Ao_NOT_IMPLEMENTED for the not implemented datatypes.protected void loadReferenceDocuments(ODSCache odsCache, T_LONGLONG aidDoc, java.lang.String elementName, T_LONGLONG[] ids, java.util.Vector<NameValueUnit[]> foundDocuments) throws AoException
odsCache - the ODS application model cache.aidDoc - the Id of the Document element.elementName - the name of the reference elemenet (content of parentAeName)ids - list with Ids of the reference instances.foundDocuments - the list with the found element where the new found element must be added.AoException - any occurring ASAM ODS exception.protected T_LONGLONG[] loadChildrenIds(ODSCache odsCache, java.lang.String elementName, T_LONGLONG[] ids, ApplRel childRel) throws AoException
odsCache - the ODS application model cache.elementName - the parent elementids - the list with parent instance Ids.childRel - the child relation.AoException - any occurring ASAM ODS exception.protected void addChildrenReferences(ODSCache odsCache, T_LONGLONG aidDoc, java.lang.String elementName, T_LONGLONG[] ids, ApplRel childRel, java.util.Vector<NameValueUnit[]> foundDocuments) throws AoException
odsCache - the ODS cache.aidDoc - the Id of the document element.elementName - the element name of the parent element.ids - the Ids of the parent instances.childRel - the relation to the child element.foundDocuments - the found documentsAoException - any occurring ASAM ODS exception.public void setValue(NameValueUnit[][] nvu) throws RuleException
nvu - the dataset with the Id of the referencing element.RuleExceptionRuleIF.setValue(org.asam.ods.NameValueUnit[][])public void execute()
throws ExecutableException
AbstractSequencerRuleexecute in interface ExecutableIFexecute in class AbstractSequencerRuleExecutableException - if execution fails.AbstractRule.execute()public void terminate()
throws TerminationException
AbstractSequencerRuleterminate in interface ExecutableIFterminate in class AbstractSequencerRuleTerminationException - if termination fails.AbstractRule.terminate()