public class InsertModel extends CopyModel implements ExecutableIF
aeIdMap, copyInstanceAttributes, handledMap, messenger, noEnvironmentInstances, skipId, sourceSess, targetSess, useGetValueSeq, userGroupMap, withSecurityarguments, ctx, descriptor, NEW_LINE| Constructor and Description |
|---|
InsertModel() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compareAttribute(ApplicationElement ae,
ApplicationElement aeTarget,
ApplicationAttribute aa)
Compare the attributes from the ASAM ODS services.
|
protected void |
compareElement(ApplicationElement ae,
ApplicationStructure target,
AoSession targetSession)
Compare the application element from the source with the element in the target.
|
protected void |
compareEnumeration(EnumerationDefinition ed,
EnumerationDefinition edTarget,
java.lang.String aeName,
java.lang.String aaName)
Compare the enumeration definitions from two ODS services.
|
protected void |
compareRelation(ApplicationElement ae,
ApplicationElement aeTarget,
ApplicationRelation ar)
Compare the relation of an element with the relation from the target element.
|
protected void |
compareRelations(ApplicationElement ae,
ApplicationElement aeTarget)
Compare the relations of the element with the relations of the target application element.
|
void |
execute()
The execute method, copy the model from the source session into the target session.
|
protected ApplicationRelation |
getRelationByName(ApplicationElement ae,
java.lang.String arName)
Get the application relation defined by the relation name.
|
addHandledId, copyAttribute, copyElement, copyEnumeration, copyInstance, copyInstancesOfElementByBaseType, copyRelation, copyRelation, copyRelations, copySecurity, init, listAttributes, terminateaddAttributesToNameValueUnitArray, 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, toString, wait, wait, waitterminategetContext, getDescriptor, init, setArguments, setContext, setDescriptorpublic void execute()
throws ExecutableException
execute in interface ExecutableIFexecute in class CopyModelExecutableException - any ASAM ODS exception reported as ExecutableException.ExecutableIF.execute()protected void compareEnumeration(EnumerationDefinition ed, EnumerationDefinition edTarget, java.lang.String aeName, java.lang.String aaName) throws AoException
ed - enumeration definition from the source.edTarget - enumeration definition from the targetaeName - name of the application element where the attribute belongs to.aaName - name of the attribute where the definition is defined.AoException - any occurring ASAM ODS exceptionprotected void compareAttribute(ApplicationElement ae, ApplicationElement aeTarget, ApplicationAttribute aa) throws AoException
ae - element from the source services.aeTarget - element from the target services.aa - the application attribute from the source services.AoException - any occurring ASAM ODS exception.protected void compareRelations(ApplicationElement ae, ApplicationElement aeTarget) throws AoException
ae - the application element.aeTarget - the target application element.AoException - any occurring ASAM ODS exception.protected void compareElement(ApplicationElement ae, ApplicationStructure target, AoSession targetSession) throws AoException
ae - the application element to copy.target - the target application structuretargetSession - the target sessionAoException - any occurring exception.protected ApplicationRelation getRelationByName(ApplicationElement ae, java.lang.String arName) throws AoException
ae - the application element.arName - the relation nameAoException - any occurring ASAM ODS exception.protected void compareRelation(ApplicationElement ae, ApplicationElement aeTarget, ApplicationRelation ar) throws AoException
ae - the application element from the source.aeTarget - the application element from the target.ar - the relation from the source.AoException - any occurring ASAM ODS exception.