public class ElementToRule extends AbstractRule
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
elementName |
protected int |
insertState |
protected static int |
IS_ABORT |
protected static int |
IS_IGNORE |
protected static int |
IS_REPLACE |
protected java.lang.String |
keyAttribute |
protected OdsCache |
odsCache |
protected boolean |
rememberInstancesId |
loggerName, postMethods, preMethods, sessionRefarguments, ctx, descriptor, NEW_LINE| Constructor and Description |
|---|
ElementToRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
The execute method, nothing to do.
|
protected AIDNameValueSeqUnitId[] |
fillAIDNameValueSeqUnitId(T_LONGLONG aid,
java.lang.String[] names,
java.lang.String[][] values,
java.util.HashMap<java.lang.String,ApplAttr> attrs,
java.util.HashMap<java.lang.String,ApplRel> rels)
Fill the AIDNameValueSeqUnitId for the insert and replace command with the values.
|
NameValueUnit[][] |
getValue()
ElementToRule, nothing to do at getValue()
|
void |
init()
The initialization of the rule.
|
void |
setValue(NameValueUnit[][] nvu)
Set the value.
|
void |
terminate()
The terminate method, reset the local variables.
|
protected void |
updateN_M_Relation(ApplElemAccess aea,
NameValueUnit[][] nvu,
int noInstances,
ElemId[] newIds,
java.util.HashMap<java.lang.String,ApplRel> rels)
Update the N:M Relation for the element with the new values.
|
execute, 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 OdsCache odsCache
protected int insertState
protected static final int IS_ABORT
protected static final int IS_IGNORE
protected static final int IS_REPLACE
protected boolean rememberInstancesId
protected java.lang.String keyAttribute
public NameValueUnit[][] getValue()
RuleIF.getValue()public void setValue(NameValueUnit[][] nvu) throws RuleException
nvu - - the attribute values of the instances of the element of the rule.RuleExceptionRuleIF.setValue(org.asam.ods.NameValueUnit[][])protected void updateN_M_Relation(ApplElemAccess aea, NameValueUnit[][] nvu, int noInstances, ElemId[] newIds, java.util.HashMap<java.lang.String,ApplRel> rels) throws AoException
aea - the ApplElemeAccess to the targetnvu - the data setnoInstances - the number of instances.newIds - the list with the new Id's.rels - the relationsAoException - any occurring ASAM ODS Exceptionprotected AIDNameValueSeqUnitId[] fillAIDNameValueSeqUnitId(T_LONGLONG aid, java.lang.String[] names, java.lang.String[][] values, java.util.HashMap<java.lang.String,ApplAttr> attrs, java.util.HashMap<java.lang.String,ApplRel> rels) throws AoException
aid - the application element Id of the element.names - the attribute names.values - the values for the instances.attrs - Map with the attributes names of the target.rels - Map with the relations of the targetAoException - any occurring ASAM ODS Exception.public void init()
throws InitializationFailedException
init in interface ImplementationIFinit in class AbstractImplementationInitializationFailedException - if the initialization fails.AbstractImplementation.init()public void execute()
throws ExecutableException
execute in interface ExecutableIFexecute in class AbstractRuleExecutableException - if execution fails.AbstractRule.execute()public void terminate()
throws TerminationException
terminate in interface ExecutableIFterminate in class AbstractRuleTerminationException - if termination fails.AbstractRule.terminate()