|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.7.0) E17060-04 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.odi.domain.project.OdiInterface.TargetDataStore
public class OdiInterface.TargetDataStore
Represents the target datastore of the interface, which may be either a temporary datastore or an underlying existing OdiDataStore defined in an OdiModel.
It is located on an OdiLogicalSchema, which is either deduced from the underlying OdiDataStore or either shared with the Staging Area for a temporary datastore.
It contains 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.
It has an update key, which is either taken from one of the underlying datastore's OdiReferences, either set using a TemporaryTargetUpdateKey.
It references a CKM, which is used at runtime to check the data that is sent to the target.
It references an IKM, which is used to actually integrate the data from the sources into the target datastore.
| Method Summary | |
|---|---|
void |
addColumn(TargetColumn pTargetColumn, boolean pSetPosition, java.lang.Number pPosition)For internal use only Adds a new target column to this target datastore. |
void |
changeToTemporary()For internal use only Switches the datastore to a temporary datastore. |
void |
clearColumns()For internal use only On a temporary datastore only, deletes all target columns of the datastore. |
OdiCKM |
getCKM()Returns the Control Knowledge module associated to this OdiInterface.TargetDataStore instance. |
java.util.List<IOptionValue> |
getCKMOptions()Returns the list of options of the Control Knowledge module. |
TargetColumn |
getColumn(java.lang.String pColumnName)Obtains the column matching the given name. |
TargetColumn |
getColumnOrNull(java.lang.String pColumnName)Obtains the column matching the given name. |
java.util.List<TargetColumn> |
getColumns()Obtains the columns owned by this data store. |
OdiInterface.DatabaseSchema |
getDatabaseSchema()Returns the DatabaseSchema (user schema, temporary schema, or existing schema) on which this temporary target datastore is located. |
OdiInterface.CheckableFlowConstraint[] |
getFlowConstraints()Returns a list of checkable flow constraints for the target datastore. |
OdiContext |
getForcedTargetContext()Returns the forced target context on the target datastore. |
OdiIKM |
getIKM()Returns the Integration Knowledge module associated to this OdiInterface.TargetDataStore instance. |
java.util.List<IOptionValue> |
getIKMOptions()Returns the list of options of the Integration knowledge module. |
java.lang.Number |
getInstanceId() |
java.io.Serializable |
getInternalId()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<TargetColumn> |
getInternalTargetColumns()This is intended for internal use only, DO NOT USE this method. |
java.lang.String |
getKeyName()Returns the name of the update key of the target datastore. |
java.util.Collection<TemporaryTargetUpdateKey> |
getKeys()This method in inherited from IDataStore, but is not relevant in this context, especially if the target datastore is a temporary datastore. |
OdiLogicalSchema |
getLogicalSchema()Returns the logical schema of the target datastore. |
java.lang.Integer |
getMaxIntegrationErrors()Returns the maximum integration errors allowed for this target datastore. |
java.lang.String |
getName()Obtains the name of this data store. |
OdiInterface |
getOdiInterface()Returns the parent interface owning this target datastore. |
OdiPartition |
getPartition()Returns the selected partition of this target datastore. |
java.lang.String |
getSubComponentDescription()Returns the sub component's description in a human-readable way. |
java.lang.String |
getSubComponentDescription(java.util.Locale pLocale)Returns the sub component's description in a human-readable way for the given Locale. |
OdiDataStore |
getUnderlyingOdiDataStore()Returns the underlying real data store for the target of this interface. |
OdiDataStore |
getUnderlyingShortcutOdiDataStore()Returns the underlying shortcut tor the target of this interface. |
IKey |
getUnderlyingUpdateKey()Returns the underlying update key. |
boolean |
isInstanceLevelSecurityNeeded()Internal: this method is for internal purpose and must not be considered as part of the public API. |
boolean |
isMaxIntegrationErrorsAsPercentage()Returns whether the maximum integration errors allowed for this target datastore is defined as a percentage. |
boolean |
isTemporaryDataStore()Returns whether the target datastore is temporary. |
void |
populatePersistedColumns()For internal use only Populates internal persistence objects from target columns. |
void |
removeColumn(TargetColumn pTargetColumn)For internal use only Removes an existing target column from this target datastore. |
void |
renameColumn(java.lang.String pOldName, java.lang.String pNewName)For internal use only Rename a target column. |
void |
resetLastPosition()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)For internal use only Sets the Control Knowledge module associated to this OdiInterface.TargetDataStore instance. |
void |
setDatabaseSchema(OdiInterface.DatabaseSchema pDatabaseSchema)For internal use only Set the DatabaseSchema which this temporary target datastore is located. |
void |
setForcedTargetContext(OdiContext pForcedTargetContext)For internal use only Set the forced target context for this target datastore. |
void |
setIKM(OdiIKM pOdiIKM)For internal use only Sets the Integration Knowledge module associated to this OdiInterface.TargetDataStore instance. |
void |
setMaxIntegrationErrors(java.lang.Integer pMaxIntegrationErrors)For internal use only Sets the maximum integration errors allowed for this target datastore. |
void |
setMaxIntegrationErrorsAsPercentage(boolean pMaxIntegrationErrorsAsPercentage)For internal use only Sets the flag to indicate that maximum integration errors allowed for this target datastore is defined as a percentage. |
void |
setName(java.lang.String pTableName)For internal use only Sets the name of the target datastore if it is a temporary datastore. |
void |
setPartition(OdiPartition pPartition)For internal use only Sets the partition of this target datastore. |
void |
setUnderlyingOdiDataStore(OdiDataStore pRealTarget, java.util.List<TargetColumn> pTargetColumns)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 |
setUpdateKey(IKey<? extends IColumn> pKey)For internal use only Sets the update key of the target datastore. |
void |
setUpdateKeySafety(IKey<? extends IColumn> pKey)For internal use only Sets the update key of the target datastore. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 setUnderlyingOdiDataStore(OdiDataStore pRealTarget,
java.util.List<TargetColumn> 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 otherwise
public 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 setName(java.lang.String pTableName)
OdiInterface object or its children, please refer to the description of the class.pTableName - the new table name for the target datastoregetName()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.pOdiIKM - the new IKM to be setOdiIKM, getIKM()public java.util.List<IOptionValue> 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.pOdiCKM - the new CKM to setOdiCKM, getCKM()public java.util.List<IOptionValue> getCKMOptions()
OdiCKM, IOptionValuepublic java.lang.String getKeyName()
public void setUpdateKeySafety(IKey<? extends IColumn> 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 datastore
public void setUpdateKey(IKey<? extends IColumn> pKey)
throws ColumnNotFoundException
OdiInterface object or its children, please refer to the descrip tion of the class.pKey - a new update keyColumnNotFoundException - if pKey refers to a column name for whic h no column was found in the target datastorepublic TargetColumn getColumnOrNull(java.lang.String pColumnName)
getColumnOrNull in interface IDataStore<TargetColumn,TemporaryTargetUpdateKey>pColumnName - the name of the column to retrieveIDataStore.getColumnOrNull(java.lang.String)
public TargetColumn getColumn(java.lang.String pColumnName)
throws ColumnNotFoundException
getColumn in interface IDataStore<TargetColumn,TemporaryTargetUpdateKey>pColumnName - the name of the column to retrieveColumnNotFoundException - if no column was found for the specified nameIDataStore.getColumn(java.lang.String)public java.util.List<TargetColumn> getColumns()
getColumns in interface IDataStore<TargetColumn,TemporaryTargetUpdateKey>IDataStore.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 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<TemporaryTargetUpdateKey> 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 IDataStore<TargetColumn,TemporaryTargetUpdateKey>null.public java.lang.String getName()
IDataStoregetName in interface IDataStore<TargetColumn,TemporaryTargetUpdateKey>setName(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()
getInstanceId in interface oracle.odi.domain.procusage.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 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<TargetColumn> getInternalTargetColumns()
public void resetLastPosition()
|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.7.0) E17060-04 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||