OdiDataStore defined in an OdiModel.OdiLogicalSchema, which is either deduced from the underlying OdiDataStore or either shared with the Staging Area for a temporary datastore.TargetColumns which are either the mirror of existing OdiColumns from the underlying OdiDataStore, or either temporary target columns. Both are represented by the class TargetColumn.OdiReferences, either set using a TemporaryTargetUpdateKey.public class OdiInterface.TargetDataStore extends java.lang.Object implements IProcedureUser, IInterfaceSubComponent, IDataStore
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(TargetColumn pTargetColumn,
boolean pSetPosition,
java.lang.Number pPosition)
Deprecated.
For internal use only
Adds a new target column to this target datastore.
|
void |
changeToTemporary()
Deprecated.
For internal use only
Switches the datastore to a temporary datastore.
|
void |
clearColumns()
Deprecated.
For internal use only
On a temporary datastore only, deletes all target columns of the
datastore.
|
OdiCKM |
getCKM()
Deprecated.
Returns the Control Knowledge module associated to this
OdiInterface.TargetDataStore instance. |
java.util.List |
getCKMOptions()
Deprecated.
Returns the list of options of the Control Knowledge module.
|
TargetColumn |
getColumn(java.lang.String pColumnName)
Deprecated.
Obtains the column matching the given name.
|
java.util.List |
getColumns()
Deprecated.
Obtains the columns owned by this data store.
|
OdiInterface.DatabaseSchema |
getDatabaseSchema()
Deprecated.
Returns the DatabaseSchema (user schema, temporary schema, or existing
schema) on which this temporary target datastore is located.
|
OdiInterface.CheckableFlowConstraint[] |
getFlowConstraints()
Deprecated.
Returns a list of checkable flow constraints for the target datastore.
|
OdiContext |
getForcedTargetContext()
Deprecated.
Returns the forced target context on the target datastore.
|
OdiIKM |
getIKM()
Deprecated.
Returns the Integration Knowledge module associated to this
OdiInterface.TargetDataStore instance. |
java.util.List |
getIKMOptions()
Deprecated.
Returns the list of options of the Integration knowledge module.
|
java.lang.Number |
getInstanceId()
Deprecated.
Return the internal identifier of the instance that is marked by this interface.
|
java.io.Serializable |
getInternalId()
Deprecated.
The internal ID of this sub component.
Returning null from this method will indicate the object has never been persisted in the repository. |
java.util.List |
getInternalTargetColumns()
Deprecated.
This is intended for internal use only, DO NOT USE this method.
|
java.lang.String |
getKeyName()
Deprecated.
Returns the name of the update key of the target datastore.
|
java.util.Collection |
getKeys()
Deprecated.
This method in inherited from
IDataStore, but is not relevant in
this context, especially if the target datastore is a temporary
datastore. |
OdiLogicalSchema |
getLogicalSchema()
Deprecated.
Returns the logical schema of the target datastore.
|
java.lang.Integer |
getMaxIntegrationErrors()
Deprecated.
Returns the maximum integration errors allowed for this target datastore.
|
java.lang.String |
getName()
Deprecated.
Obtains the name of this data store.
|
OdiInterface |
getOdiInterface()
Deprecated.
Returns the parent interface owning this target datastore.
|
OdiPartition |
getPartition()
Deprecated.
Returns the selected partition of this target datastore.
|
java.lang.String |
getSubComponentDescription()
Deprecated.
Returns the sub component's description in a human-readable way.
|
java.lang.String |
getSubComponentDescription(java.util.Locale pLocale)
Deprecated.
Returns the sub component's description in a human-readable way for the given Locale.
|
OdiDataStore |
getUnderlyingOdiDataStore()
Deprecated.
Returns the underlying real data store for the target of this interface.
|
OdiDataStore |
getUnderlyingShortcutOdiDataStore()
Deprecated.
Returns the underlying shortcut tor the target of this interface.
|
IKey |
getUnderlyingUpdateKey()
Deprecated.
Returns the underlying update key.
|
void |
internalAddColumn(TargetColumn pTargetColumn)
Deprecated.
For internal use only.
|
boolean |
isInstanceLevelSecurityNeeded()
Deprecated.
Internal: this method is for internal purpose and must not be considered
as part of the public API.
|
boolean |
isMaxIntegrationErrorsAsPercentage()
Deprecated.
Returns whether the maximum integration errors allowed for this target
datastore is defined as a percentage.
|
boolean |
isTemporaryDataStore()
Deprecated.
Returns whether the target datastore is temporary.
|
void |
populatePersistedColumns()
Deprecated.
For internal use only
Populates internal persistence objects from target columns.
|
void |
removeColumn(TargetColumn pTargetColumn)
Deprecated.
For internal use only
Removes an existing target column from this target datastore.
|
void |
renameColumn(java.lang.String pOldName,
java.lang.String pNewName)
Deprecated.
For internal use only
Rename a target column.
|
void |
resetLastPosition()
Deprecated.
For internal use only
Resets the last position depending on the values of the positions for the columns in the table
|
void |
setCKM(OdiCKM pOdiCKM)
Deprecated.
For internal use only
Sets the Control Knowledge module associated to this
OdiInterface.TargetDataStore instance. |
void |
setCKMToMissingReference(MapReference missingRef)
Deprecated.
|
void |
setDatabaseSchema(OdiInterface.DatabaseSchema pDatabaseSchema)
Deprecated.
For internal use only
Set the DatabaseSchema which this temporary target datastore is located.
|
void |
setDataStoreToMissingReference(MapReference missingRef)
Deprecated.
|
void |
setForcedTargetContext(OdiContext pForcedTargetContext)
Deprecated.
For internal use only
Set the forced target context for this target datastore.
|
void |
setIKM(OdiIKM pOdiIKM)
Deprecated.
For internal use only
Sets the Integration Knowledge module associated to this
OdiInterface.TargetDataStore instance. |
void |
setIKMToMissingReference(MapReference missingRef)
Deprecated.
For internal use only
Set the Integration Knowledge module associated to a
MapReference instance, this instance is a empty reference which stands for the Knowledge
Module that no longer exist. |
void |
setKeyName(java.lang.String pKeyName)
Deprecated.
For internal use only
Used by OdiInterfaceShortcutAdapter.
|
void |
setMaxIntegrationErrors(java.lang.Integer pMaxIntegrationErrors)
Deprecated.
For internal use only
Sets the maximum integration errors allowed for this target datastore.
|
void |
setMaxIntegrationErrorsAsPercentage(boolean pMaxIntegrationErrorsAsPercentage)
Deprecated.
For internal use only
Sets the flag to indicate that maximum integration errors allowed for
this target datastore is defined as a percentage.
|
void |
setPartition(OdiPartition pPartition)
Deprecated.
For internal use only
Sets the partition of this target datastore.
|
void |
setPartitionId(java.lang.Number pPartitionId)
Deprecated.
For internal use only
|
void |
setTargCtxCode(java.lang.String pTargCtxCode)
Deprecated.
For internal use only
|
void |
setUnderlyingOdiDataStore(OdiDataStore pTargetDataStore,
java.util.List pTargetColumns)
Deprecated.
For internal use only
Sets the underlying datastore and resets the list of columns with
pTargetColumns.Resets the key name, sets the correct logical schema on the staging area if it's on the target. To modify an OdiInterface object or its children, please refer to the description of the class. |
void |
setUnderlyingScTable(OdiDataStore pScTarget)
Deprecated.
For internal use only
|
void |
setUpdateKey(IKey pKey)
Deprecated.
For internal use only
Sets the update key of the target datastore.
|
public OdiDataStore getUnderlyingOdiDataStore()
OdiDataStore that will be used as the target if it is a real datastore, null otherwisesetUnderlyingOdiDataStore(OdiDataStore, List)public OdiDataStore getUnderlyingShortcutOdiDataStore()
OdiDataStore that will be used as the target if it is a real datastore, null otherwisesetUnderlyingOdiDataStore(OdiDataStore, List)public void changeToTemporary()
OdiInterface object or its children, please refer to the description of the class.public void setUnderlyingScTable(OdiDataStore pScTarget)
public void setUnderlyingOdiDataStore(OdiDataStore pTargetDataStore, java.util.List pTargetColumns)
pTargetColumns.OdiInterface object or its children, please refer to the description of the class.pRealTarget - the real OdiDataStore which is to replace the current onepTargetColumns - along with their mappings, and the caller must make sure that the mappings are attached to the right source tables etc.getUnderlyingOdiDataStore()public boolean isInstanceLevelSecurityNeeded()
Defines a method to capture the info on which object needs instance level privilege.
true if instance level security needed,
false otherwisepublic void renameColumn(java.lang.String pOldName,
java.lang.String pNewName)
OdiInterface object or its children, please refer to the description of the class.pOldName - the column name we want to renamepNewName - the new name for this columnpublic boolean isTemporaryDataStore()
true if the target datastore is a temporary datastore, false otherwisepublic OdiContext getForcedTargetContext()
null otherwise.setForcedTargetContext(OdiContext)public void setForcedTargetContext(OdiContext pForcedTargetContext)
OdiInterface object or its children, please refer to the description of the class.pForcedTargetContext - the new forced target contextgetForcedTargetContext()public void setTargCtxCode(java.lang.String pTargCtxCode)
public OdiIKM getIKM()
OdiInterface.TargetDataStore instance.OdiIKM,
setIKM(OdiIKM)public void setIKM(OdiIKM pOdiIKM)
OdiInterface.TargetDataStore instance.
To modify an OdiInterface object or its children, please refer to the description of the class.public void setIKMToMissingReference(MapReference missingRef)
MapReference instance, this instance is a empty reference which stands for the Knowledge
Module that no longer exist.missingRef - The MapReference instance to set.public void setCKMToMissingReference(MapReference missingRef)
public void setDataStoreToMissingReference(MapReference missingRef)
public java.util.List getIKMOptions()
OdiIKM,
IOptionValuepublic OdiCKM getCKM()
OdiInterface.TargetDataStore instance.OdiCKM,
setCKM(OdiCKM)public void setCKM(OdiCKM pOdiCKM)
OdiInterface.TargetDataStore instance.
To modify an OdiInterface object or its children, please refer to the description of the class.public java.util.List getCKMOptions()
OdiCKM,
IOptionValuepublic java.lang.String getKeyName()
public void setKeyName(java.lang.String pKeyName)
pKeyName - Name of the new keypublic void setUpdateKey(IKey pKey)
OdiInterface object or its children, please refer to the description of the class.pKey - a new update keyDomainRuntimeException - if pKey refers to a column name for which no column was found in the target datastorepublic TargetColumn getColumn(java.lang.String pColumnName)
getColumn in interface IDataStorepColumnName - the name of the column to retrieveIDataStore.getColumn(java.lang.String)public java.util.List getColumns()
getColumns in interface IDataStoreIDataStore.getColumns()public void addColumn(TargetColumn pTargetColumn, boolean pSetPosition, java.lang.Number pPosition)
pPosition is null, then if pSetPosition is set, the column is added at the end
of the column list, otherwise nothing is done regarding positions.
Note that pSetPosition and pPosition are ignored for non temporary target columns.
To modify an OdiInterface object or its children, please refer to the description of the class.pTargetColumn - The target column to be added.pSetPosition - if true the position attribute is set to the column, otherwise it is not setpPosition - the desired position, null for auto positionpublic void internalAddColumn(TargetColumn pTargetColumn)
pTargetColumn - public void removeColumn(TargetColumn pTargetColumn)
OdiInterface object or its children, please refer to the description of the class.pTargetColumn - the target column to be removedpublic void populatePersistedColumns()
public java.util.Collection getKeys()
IDataStore, but is not relevant in
this context, especially if the target datastore is a temporary
datastore. Therefore this method always returns null
and is not implemented.getKeys in interface IDataStorenull.public java.lang.String getName()
IDataStoregetName in interface IDataStoresetName(String)public IKey getUnderlyingUpdateKey()
null if no such key is defined.public OdiLogicalSchema getLogicalSchema()
public OdiInterface getOdiInterface()
OdiInterface for which this is the target datastore.public java.lang.Number getInstanceId()
IProcedureUsergetInstanceId in interface IProcedureUserpublic void clearColumns()
OdiInterface object or its children, please refer to the description of the class.public java.io.Serializable getInternalId()
IInterfaceSubComponentnull from this method will indicate the object has never been persisted in the repository.getInternalId in interface IInterfaceSubComponentIInterfaceSubComponent.getInternalId()public OdiPartition getPartition()
setPartition(OdiPartition)public void setPartition(OdiPartition pPartition)
OdiInterface object or its children, please refer to the description of the class.pPartition - new PartitiongetPartition()public void setPartitionId(java.lang.Number pPartitionId)
public OdiInterface.CheckableFlowConstraint[] getFlowConstraints()
public java.lang.Integer getMaxIntegrationErrors()
setMaxIntegrationErrors(Integer)public boolean isMaxIntegrationErrorsAsPercentage()
true, getMaxIntegrationErrors() returns a percentage rather than an absolute valuegetMaxIntegrationErrors(),
setMaxIntegrationErrorsAsPercentage(boolean)public void setMaxIntegrationErrors(java.lang.Integer pMaxIntegrationErrors)
OdiInterface object or its children, please refer to the description of the class.pMaxIntegrationErrors - new value for MaxIntegrationErrorsgetMaxIntegrationErrors()public void setMaxIntegrationErrorsAsPercentage(boolean pMaxIntegrationErrorsAsPercentage)
OdiInterface object or its children, please refer to the description of the class.pMaxIntegrationErrorsAsPercentage - new value for MaxIntegrationErrorsAsPercentageisMaxIntegrationErrorsAsPercentage()public OdiInterface.DatabaseSchema getDatabaseSchema()
OdiInterface.DatabaseSchema,
setDatabaseSchema(oracle.odi.domain.project.OdiInterface.DatabaseSchema)public void setDatabaseSchema(OdiInterface.DatabaseSchema pDatabaseSchema)
OdiInterface object or its children, please refer to the description of the class.pDatabaseSchema - new value for Database SchemagetDatabaseSchema()public java.lang.String getSubComponentDescription()
IInterfaceSubComponentgetSubComponentDescription in interface IInterfaceSubComponentpublic java.lang.String getSubComponentDescription(java.util.Locale pLocale)
IInterfaceSubComponentgetSubComponentDescription in interface IInterfaceSubComponentpLocale - the Locale for which the description should be returnedpublic java.util.List getInternalTargetColumns()
public void resetLastPosition()