public class OdiDataStore extends AbstractOdiEntity implements IDataStore, IFlexFieldUser, IWorkDevelopmentOdiEntity, IDataStore, IShortcutableModelObject
Depending on the OdiTechnology associated with the OdiModel to which this datastore belongs this datastore can represents a database table, the structure of a file, the structure of a JMS message etc...
Constraints can also be defined on the datastores using the OdiKey, OdiCondition. Functional links between datastore can also be defined using OdiReference.
If a datastore is constructed with a reference object, the datastore will represented a shortcut to the reference object.
When a datastore is used as a shortcut, most properties are accessed through the base object. The IOdiShortcutable interface implemented by OdiDatastore provides access and
control over the shortcut aspects of this object.
The OdiDataStore also defines how this datastore will be used by different Oracle Data Integrator features.
OdiKey,
OdiCondition,
OdiReference,
OdiFilter| Modifier and Type | Class and Description |
|---|---|
static class |
OdiDataStore.CdcDescriptor
A Change Data Capture descriptor.
|
static class |
OdiDataStore.DataStoreType
Defines the type of a datastore.
|
static class |
OdiDataStore.FileDescriptor
A FileDescriptor holds the
OdiDataStore configuration specific to datastore defined on a FILE
and other file related technologies like HDFS and Oracle ERP cloud OdiTechnology. |
static class |
OdiDataStore.HadoopStorageDescriptor
A HadoopStorageDescriptor holds the
OdiDataStore configuration specific to datastore defined on a Hive/HDFS/Kafka OdiTechnology. |
static class |
OdiDataStore.OlapType
Defines the OLAP type of a datastore.
|
static class |
OdiDataStore.PartitioningPolicy
Defines the partitioning policy on the datastore.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIAS_DEFAULT_LENGTH
Length of the alias automatically computed from the datastore name when the OdiDataStore is created.
|
static int |
ALIAS_MAX_LENGTH
Maximum length supported for the "defaultAlias" property.
|
static int |
NAME_MAX_LENGTH
Maximum length supported for the "name" property.
|
static int |
RESOURCE_NAME_MAX_LENGTH
Maximum length supported for the "resourceName" property.
|
| Constructor and Description |
|---|
OdiDataStore(AbstractOdiSubModel pSubModel,
java.lang.String pName)
Construct a new
OdiDataStore. |
OdiDataStore(AbstractOdiSubModel pSubModel,
java.lang.String pName,
OdiDataStore pReferenceDataStore)
Construct a new datastore.
|
OdiDataStore(OdiModel pModel,
java.lang.String pName)
Construct a new
OdiDataStore. |
OdiDataStore(OdiModel pModel,
java.lang.String pName,
OdiDataStore pReferenceDataStore)
Construct a new datastore.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeShortcutReferenceObject(OdiDataStore pReferenceObject) |
void |
checkValidReference(OdiDataStore pReferenceObject) |
OdiDataStore.CdcDescriptor |
getCdcDescriptor()
Returns the
OdiDataStore.CdcDescriptor for this datastore. |
OdiColumn |
getColumn(java.lang.String pName)
Returns the column named after the given name.
|
java.util.List |
getColumns()
Obtains the columns owned by this data store.
|
java.util.Collection |
getConditions()
Returns an unmodifiable collection of
OdiConditions that belongs to this datastore. |
java.lang.String |
getDataServiceName()
Returns the name of the data service generated or to be generated for this datastore.
|
java.lang.String |
getDataServicePublishedEntityName()
Returns the name that is used to generate all operations names for the data service.
|
java.lang.Number |
getDataStoreId()
Returns the internal identifier of this
OdiDataStore instance. |
OdiDataStore.DataStoreType |
getDataStoreType()
Returns the
OdiDataStore.DataStoreType of this OdiDataStore instance. |
java.lang.String |
getDefaultAlias()
Returns the default alias for this
OdiDataStore instance. |
java.lang.String |
getDescription()
Returns the description for this
OdiDataStore instance. |
OdiDataStore.FileDescriptor |
getFileDescriptor()
Get the
OdiDataStore.FileDescriptor of this OdiDataStore instance (i.e. |
java.util.Collection |
getFilters()
Returns an unmodifiable collection of
OdiFilters that belongs to this datastore. |
java.util.Collection |
getFlexFieldsValues()
Obtains flex fields values related to this object.
|
OdiDataStore.HadoopStorageDescriptor |
getHadoopStorageDescriptor()
Gets the Hadoop Storage information for this Data Store
|
java.io.Serializable |
getInternalId()
Returns the internal identifier for this datastore.
|
java.util.Collection |
getKeys()
Obtains the keys defined on this data store.
|
OdiDataStore.PartitioningPolicy |
getMainPartitionPolicy()
Returns the
OdiDataStore.PartitioningPolicy policy used for the main partitions of this datastore. |
java.util.Collection |
getMainPartitions()
Returns an unmodifiable collection of the
OdiMainPartitions that belongs to this datastore. |
OdiModel |
getModel()
Convenient method to obtain the
OdiModel this OdiDataStore is referring from the AbstractOdiSubModel to which this datastore belongs. |
java.lang.String |
getName()
Returns the name of this datastore.
|
OdiDataStore.OlapType |
getOlapType()
Returns the
OdiDataStore.OlapType of this OdiDataStore instance. |
java.util.Collection |
getOutboundReferences()
Returns an unmodifiable Collection of outbound references for this
OdiDataStore. |
java.util.Collection |
getOutboundRelationships()
Returns an unmodifiable Collection of outbound references for this
IDataStore. |
java.util.Collection |
getPartitions()
Returns an unmodifiable Collection of partitions for this
IDataStore. |
OdiKey |
getPrimaryKey()
Returns the current primary key of the datastore.
|
java.util.Collection |
getRealKeys()
Returns the unmodifiable collection of
OdiKeys. |
IModelObject |
getRealModelObject()
Returns the real model object of the current shortcut
|
OdiDataStore |
getRealObject()
Returns the real object if this object is a shortcut.
|
IReleaseTag |
getReleaseTag() |
java.lang.String |
getResourceName()
Returns the resource name of this
OdiDataStore instance. |
java.lang.Integer |
getRowCount()
Returns the number of row of this
OdiDataStore instance. |
IRepositoryEntity |
getSecurityContainer() |
OdiDataStore |
getShortcutBaseObject() |
java.lang.Number |
getShortcutBigNumericId()
Gets a numeric ID of the shortcut object, for repositories that support numeric id.
|
java.lang.String |
getShortcutGlobalId()
Gets the global ID of the shortcut object, which should be unique across the repository.
|
java.lang.Integer |
getShortcutNumericId()
Deprecated.
|
OdiDataStore |
getShortcutOrigObject()
Deprecated.
|
OdiDataStore |
getShortcutReferenceObject() |
AbstractOdiSubModel |
getSubModel()
Returns the
AbstractOdiSubModel that owns this datastore. |
OdiDataStore.PartitioningPolicy |
getSubPartitionPolicy()
Returns the
OdiDataStore.PartitioningPolicy policy used for the sub partitions of this datastore. |
OdiDataStoreFormatType |
getTableFormatType()
Return the format type of this
OdiDataStore. |
java.lang.String |
getTableProperties()
Return the tables properties of this
OdiDataStore. |
void |
initFlexFields(IOdiFlexFieldFinder pOdiFlexFieldFinder)
See interface for specifics.
|
boolean |
isChangeDataCaptureEnabled()
Checks whether this data store object is set up to support change data capture.
|
boolean |
isDeployAsDataService()
Will this datastore to be deployed as a data service.
|
boolean |
isDisplayRequired()
Returns whether this
OdiDataStore is required to be displayed, or not. |
boolean |
isInstanceLevelSecurityNeeded()
Internal: this method is for internal purpose and must not be considered
as part of the public API.
|
boolean |
isShortcut()
Checks whether this object is a shortcut.
|
boolean |
isShortcutModelObject()
Returns true if the model object is shortcut.
|
boolean |
isVirtual()
Checks whether this is a virtual data storage.
|
void |
moveColumn(OdiColumn pColumn,
int pNewPosition)
Change the position of the column in this datastore.
|
void |
removeColumn(OdiColumn pColumn)
|
void |
removeCondition(OdiCondition pCondition)
Remove the given
OdiCondition from the collection of
OdiConditions that belongs to this OdiDataStore. |
void |
removeFilter(OdiFilter pFilter)
|
void |
removeKey(OdiKey pKey)
|
void |
removeMainPartition(OdiMainPartition pMainPartition)
Remove the given
OdiMainPartition from the collection of OdiMainPartitions that belongs to this datastore. |
void |
removeOutboundReference(OdiReference pReference)
Remove the given
OdiReference from the collection of outbound
OdiReferences that belong to this datastore. |
void |
setCdcDescriptor(OdiDataStore.CdcDescriptor pCdcDescriptor)
Sets a
OdiDataStore.CdcDescriptor (i.e. |
void |
setDataServiceName(java.lang.String pDataServiceName)
Set the name of the data service generated for this datastore.
|
void |
setDataServicePublishedEntityName(java.lang.String pDataServicePublishedEntityName)
Defines the name that is used to generate all operations names for the data service.
|
void |
setDataStoreType(OdiDataStore.DataStoreType pDatastoreType)
Sets the
OdiDataStore.DataStoreType for this OdiDataStore instance. |
void |
setDefaultAlias(java.lang.String pDefaultAlias)
Sets the default alias for this
OdiDataStore. |
void |
setDeployAsDataService(boolean pDeployAsDataService)
Defines whether this datastore should be deployed as a data service.
|
void |
setDescription(java.lang.String pDescription)
Defines the description for this
OdiDataStore instance. |
void |
setDisplayRequired(boolean pRequired)
Defines whether this
OdiDataStore is required to be displayed, or not. |
void |
setFileDescriptor(OdiDataStore.FileDescriptor pFileDescriptor)
Set the
OdiDataStore.FileDescriptor of this OdiDataStore instance (i.e. |
void |
setHadoopStorageDescriptor(OdiDataStore.HadoopStorageDescriptor pHadoopStorageDescriptor)
Sets the Hadoop Storage Information for this Data Store
|
void |
setMainPartitionPolicy(OdiDataStore.PartitioningPolicy pMainPartitionPolicy)
Defines the
OdiDataStore.PartitioningPolicy used for main partitions. |
void |
setName(java.lang.String pName)
Sets name for this datastore.
|
void |
setOlapType(OdiDataStore.OlapType pOlapType)
Sets the
OdiDataStore.OlapType for this OdiDataStore instance. |
void |
setResourceName(java.lang.String pResourceName)
Sets the resource name of this
OdiDataStore instance. |
boolean |
setShortcutBaseObject(OdiDataStore pBaseObject) |
boolean |
setShortcutReferenceObject(OdiDataStore pReferenceObject) |
void |
setSubPartitionPolicy(OdiDataStore.PartitioningPolicy pSubPartitionPolicy)
Defines the
OdiDataStore.PartitioningPolicy used for main partitions. |
void |
setTableFormatType(OdiDataStoreFormatType dataStoreFormatType)
Define the format type of this
OdiDataStore. |
void |
setTableProperties(java.lang.String tableProperties)
Define the table properties of this
OdiDataStore. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFirstDate, getFirstUser, getLastDate, getLastUsergetGlobalId, getParentgetBigNumericId, getGlobalId, getNumericIdpublic static final int ALIAS_MAX_LENGTH
setDefaultAlias(String),
Constant Field Valuespublic static final int ALIAS_DEFAULT_LENGTH
setDefaultAlias(String),
Constant Field Valuespublic static final int RESOURCE_NAME_MAX_LENGTH
setResourceName(String),
Constant Field Valuespublic static final int NAME_MAX_LENGTH
public OdiDataStore(AbstractOdiSubModel pSubModel, java.lang.String pName)
OdiDataStore.
This constructor sets the parent sub-model of the datastore and its name.
The default alias will be set using the 3 first characters of the name to upper case.
pSubModel - the parent sub-modelpName - the name of the datastoreDomainRuntimeException - if the submodel is null or if the name is null, empty or longer that
128public OdiDataStore(AbstractOdiSubModel pSubModel, java.lang.String pName, OdiDataStore pReferenceDataStore)
This constructor sets the parent sub-model of the datastore shortcut, the datastore that this datastore shortcut refers to, and its name.
The default alias will be set using the 3 first characters of the name to upper case.
pSubModel - the parent sub-modelpName - the name of the datastorepReferenceDataStore - The reference datastore for this datastore shortcut.DomainRuntimeException - if the submodel is null or if the name is null, empty or longer that
public OdiDataStore(OdiModel pModel, java.lang.String pName, OdiDataStore pReferenceDataStore)
This constructor sets the parent model of the datastore and its name. The the datastore that this datastore shortcut refers to, and its name.
The default alias will be set using the 3 first characters of the name to upper case.
pModel - the parent modelpName - the name of the datastorepReferenceDataStore - The reference datastore for this datastore shortcut.DomainRuntimeException - if the submodel is null or if the name is null, empty or longer that
128public OdiDataStore(OdiModel pModel, java.lang.String pName)
OdiDataStore.
This constructor sets the parent model of the datastore and its name. The parent sub-model will be set to the model global sub model.
The default alias will be set using the @value #ALIAS_DEFAULT_LENGTH} first characters of the name to upper case.
pModel - the parent modelpName - the name of the datastoreDomainRuntimeException - if the model is null or if the name is null, empty or longer that
128public boolean isInstanceLevelSecurityNeeded()
IOdiEntityDefines a method to capture the info on which object needs instance level privilege.
isInstanceLevelSecurityNeeded in interface IOdiEntitytrue if instance level security needed,
false otherwisepublic OdiColumn getColumn(java.lang.String pName)
getColumn in interface IDataStorepName - the name of the column to find.null if no column was found with the given name in this datastore.DomainRuntimeException - if this is a shortcut. Use getRealObject to access.getColumns(),
removeColumn(OdiColumn)public java.util.List getColumns()
IDataStoregetColumns in interface IDataStorepublic void removeColumn(OdiColumn pColumn)
pColumn - the column to removeDomainRuntimeException - if pColumn is null or does not belong to this OdiDataStore or if this is a shortcut. Use getRealObject to access.public void moveColumn(OdiColumn pColumn, int pNewPosition)
Note that the position of all the column between the current position and the new position will be changed
pColumn - the column to move.pNewPosition - the position to which this column will be moved.DomainRuntimeException - if the column is null or not associated to this OdiDataStore instance, or if the new position is not valid or if this is a shortcut. Use getRealObject to access.public OdiDataStore.CdcDescriptor getCdcDescriptor()
OdiDataStore.CdcDescriptor for this datastore.DomainRuntimeException - if this is a shortcut. Use getRealObject to access.OdiDataStore.CdcDescriptor,
setCdcDescriptor(CdcDescriptor)public void setCdcDescriptor(OdiDataStore.CdcDescriptor pCdcDescriptor)
OdiDataStore.CdcDescriptor (i.e. journalization information) for this
OdiDataStore instance.pCdcDescriptor - the CdcDescriptor. When use setCdcDesciptor to change the Data Capture policy of an OdiDataStore,
it is suggested to set the data store order to 0.OdiDataStore.CdcDescriptor,
getCdcDescriptor()public java.lang.Number getDataStoreId()
OdiDataStore instance.public OdiDataStore.DataStoreType getDataStoreType()
OdiDataStore.DataStoreType of this OdiDataStore instance.setDataStoreType(DataStoreType)public OdiDataStore getShortcutBaseObject()
public boolean setShortcutBaseObject(OdiDataStore pBaseObject)
public OdiDataStore getShortcutReferenceObject()
public boolean setShortcutReferenceObject(OdiDataStore pReferenceObject)
public OdiDataStore getShortcutOrigObject()
public boolean isShortcut()
IDataStoreisShortcut in interface IDataStoretrue if it is a shortcut, false otherwisepublic IReleaseTag getReleaseTag()
public OdiDataStore getRealObject()
IDataStoregetRealObject in interface IDataStorepublic void setDataStoreType(OdiDataStore.DataStoreType pDatastoreType)
OdiDataStore.DataStoreType for this OdiDataStore instance.
By default, an OdiDataStore is defined with OdiDataStore.DataStoreType.TABLE.
pDatastoreType - the type of datastoreDomainRuntimeException - if the parameter is null or if this is a shortcut. Use getRealObject to access.OdiDataStore.DataStoreType,
getDataStoreType()public java.lang.String getDefaultAlias()
OdiDataStore instance.getDefaultAlias in interface IDataStoreDomainRuntimeException - if this is a shortcut. Use getRealObject to access.setDefaultAlias(String)public void setDefaultAlias(java.lang.String pDefaultAlias)
OdiDataStore. By default, this
value is defined with this datastore's upper case name substring of length
ALIAS_DEFAULT_LENGTH.pDefaultAlias - the aliasDomainRuntimeException - if the alias is null, empty or longer than ALIAS_MAX_LENGTH or if this is a shortcut. Use getRealObject to access.ALIAS_MAX_LENGTH,
getDefaultAlias()public java.lang.String getDescription()
OdiDataStore instance.setDescription(String)public void setDescription(java.lang.String pDescription)
OdiDataStore instance.pDescription - the descriptiongetDescription()public OdiDataStore.FileDescriptor getFileDescriptor()
OdiDataStore.FileDescriptor of this OdiDataStore instance (i.e.
information relative to file technology). If this OdiDataStore
instance is not of technology file, will be null.getFileDescriptor in interface IDataStoresetFileDescriptor(FileDescriptor)public void setFileDescriptor(OdiDataStore.FileDescriptor pFileDescriptor)
OdiDataStore.FileDescriptor of this OdiDataStore instance (i.e.
information relative to file technology).
This is not relevant for datastore that are not defined on a File OdiTechnology.
pFileDescriptor - file descriptorDomainRuntimeException - if this OdiDataStore is not defined on a File based Technology or if this is a shortcut. Use getRealObject to access.getFileDescriptor()public OdiDataStore.OlapType getOlapType()
OdiDataStore.OlapType of this OdiDataStore instance. null
value means that it has not been specified
DomainRuntimeException - if this is a shortcut. Use getRealObject to access.setOlapType(OlapType)public void setOlapType(OdiDataStore.OlapType pOlapType)
OdiDataStore.OlapType for this OdiDataStore instance. null
value is accepted and means that it has not been specified.pOlapType - OLAP typeDomainRuntimeException - if this is a shortcut. Use getRealObject to access.getOlapType()public java.lang.String getResourceName()
OdiDataStore instance.DomainRuntimeException - if this is a shortcut. Use getRealObject to access.setResourceName(String)public void setResourceName(java.lang.String pResourceName)
OdiDataStore instance.
The name of the object in the form recognized by the data server that stores it. This may be a table name or a file name.
pResourceName - the resource name.DomainRuntimeException - if the resource name is null, empty or longer than 400 or if this is a shortcut. Use getRealObject to access.getResourceName()public OdiModel getModel()
OdiModel this OdiDataStore is referring from the AbstractOdiSubModel to which this datastore belongs.
Same as invoking getSubModel().getModel().getModel in interface IDataStorepublic java.lang.String getName()
getName in interface IFlexFieldUsergetName in interface IModelObjectgetName in interface IOdiEntitysetName(String)public java.lang.Integer getRowCount()
OdiDataStore instance.
null value means it hasn't been computed yet.
DomainRuntimeException - if this is a shortcut. Use getRealObject to access.public IRepositoryEntity getSecurityContainer()
getSecurityContainer in interface IRepositoryEntitypublic AbstractOdiSubModel getSubModel()
AbstractOdiSubModel that owns this datastore.getSubModel in interface IDataStoreAbstractOdiSubModelpublic java.io.Serializable getInternalId()
getInternalId in interface IRepositoryEntitygetDataStoreId()public OdiKey getPrimaryKey()
null if no primary key defined yet, the OdiKey otherwiseDomainRuntimeException - if this is a shortcut. Use getRealObject to access.OdiKey,
getKeys()public java.util.Collection getKeys()
IDataStoregetKeys in interface IDataStorepublic java.util.Collection getRealKeys()
OdiKeys.
Use removeKey(OdiKey) to remove elements from this collection.
DomainRuntimeException - if this is a shortcut. Use getRealObject to access.removeKey(OdiKey)public void removeKey(OdiKey pKey)
pKey - the key to remove.DomainRuntimeException - if pKey is null or does not belong to this datastore if this is a shortcut. Use getRealObject to access.getKeys()public java.util.Collection getConditions()
OdiConditions that belongs to this datastore.
Use removeCondition(OdiCondition) to remove conditions from this collection.
getConditions in interface IDataStoreDomainRuntimeException - if this is a shortcut. Use getRealObject to access.removeCondition(OdiCondition)public void removeCondition(OdiCondition pCondition)
OdiCondition from the collection of
OdiConditions that belongs to this OdiDataStore.pCondition - the condition to remove.DomainRuntimeException - if pCondition is null or does not belong to this datastore or if this is a shortcut. Use getRealObject to access.getConditions()public java.util.Collection getFilters()
OdiFilters that belongs to this datastore.
Use removeFilter(OdiFilter) to remove filter from this collection.
getFilters in interface IDataStoreDomainRuntimeException - if this is a shortcut. Use getRealObject to access.removeFilter(OdiFilter)public void removeFilter(OdiFilter pFilter)
pFilter - the filter to remove.DomainRuntimeException - if pFilter is null or does not belong to this OdiDataStore or if this is a shortcut. Use getRealObject to access.getFilters()public java.util.Collection getOutboundReferences()
OdiDataStore.
Outbound references are references that use this datastore as foreign datastore. Use removeOutboundReference(OdiReference) to remove an outbound reference from this collection.
DomainRuntimeException - if this is a shortcut. Use getRealObject to access.removeOutboundReference(OdiReference)public void removeOutboundReference(OdiReference pReference)
OdiReference from the collection of outbound
OdiReferences that belong to this datastore.pReference - the reference to removeDomainRuntimeException - if the given reference is null or if the given reference is not an outbound reference of this datastore or or if this is a shortcut. Use getRealObject to access.getOutboundReferences()public void setName(java.lang.String pName)
pName - name to setDomainRuntimeException - if the name is null, empty or longer that
NAME_MAX_LENGTHNAME_MAX_LENGTHpublic java.util.Collection getFlexFieldsValues()
Obtains flex fields values related to this object.
Method initFlexFields(IOdiFlexFieldFinder) should be
called before calling this method.
getFlexFieldsValues in interface IFlexFieldUserDomainRuntimeException - if this is a shortcut. Use getRealObject to access.IFlexFieldUser.getFlexFieldsValues()public void initFlexFields(IOdiFlexFieldFinder pOdiFlexFieldFinder)
initFlexFields in interface IFlexFieldUserpOdiFlexFieldFinder - OdiFlexField finder to be used to query flex fieldsDomainRuntimeException - if this is a shortcut. Use getRealObject to access.public OdiDataStore.PartitioningPolicy getMainPartitionPolicy()
OdiDataStore.PartitioningPolicy policy used for the main partitions of this datastore.DomainRuntimeException - if this is a shortcut. Use getRealObject to access.setMainPartitionPolicy(PartitioningPolicy),
getMainPartitions()public void setMainPartitionPolicy(OdiDataStore.PartitioningPolicy pMainPartitionPolicy)
OdiDataStore.PartitioningPolicy used for main partitions.pMainPartitionPolicy - the partition policy.DomainRuntimeException - if this is a shortcut. Use getRealObject to access.getMainPartitionPolicy(),
getMainPartitions()public OdiDataStore.PartitioningPolicy getSubPartitionPolicy()
OdiDataStore.PartitioningPolicy policy used for the sub partitions of this datastore.DomainRuntimeException - if this is a shortcut. Use getRealObject to access.OdiMainPartition.getSubPartitions(),
OdiSubPartition,
setSubPartitionPolicy(PartitioningPolicy)public void setSubPartitionPolicy(OdiDataStore.PartitioningPolicy pSubPartitionPolicy)
OdiDataStore.PartitioningPolicy used for main partitions.pSubPartitionPolicy - the partition policy.DomainRuntimeException - if this is a shortcut. Use getRealObject to access.OdiMainPartition.getSubPartitions(),
OdiSubPartition,
getSubPartitionPolicy()public void removeMainPartition(OdiMainPartition pMainPartition)
OdiMainPartition from the collection of OdiMainPartitions that belongs to this datastore.pMainPartition - the partition to removeDomainRuntimeException - if pMainPartition is null or does not belong to this OdiDataStore or if this is a shortcut. Use getRealObject to access.public java.util.Collection getMainPartitions()
OdiMainPartitions that belongs to this datastore.
Use removeMainPartition(OdiMainPartition) to remove elements from this collection.
DomainRuntimeException - if this is a shortcut. Use getRealObject to access.removeMainPartition(OdiMainPartition)public void setDisplayRequired(boolean pRequired)
OdiDataStore is required to be displayed, or not.pRequired - true to require this data store to be displayed, false otherwise.public boolean isDisplayRequired()
OdiDataStore is required to be displayed, or not.true if this data store should be displayed, false otherwisepublic void setDeployAsDataService(boolean pDeployAsDataService)
When this is set to true and the dataServiceName and dataServicePublishedEntityName properties are undefined defaults value for this properties will be computed.
For a table name of DEPT
pDeployAsDataService - true if this data service should be deployed,
false otherwiseDomainRuntimeException - if this is a shortcut. Use getRealObject to access.setDataServiceName(String),
setDataServicePublishedEntityName(String)public boolean isDeployAsDataService()
true if this data service will be deployed, false otherwiseDomainRuntimeException - if this is a shortcut. Use getRealObject to access.public void setDataServiceName(java.lang.String pDataServiceName)
pDataServiceName - name of the data service generated for this datastore. (May be null)DomainRuntimeException - if this is a shortcut. Use getRealObject to access.getDataServiceName()public java.lang.String getDataServiceName()
DomainRuntimeException - if this is a shortcut. Use getRealObject to access.setDataServiceName(String)public void setDataServicePublishedEntityName(java.lang.String pDataServicePublishedEntityName)
For example, if you specify customer as the published entity, the generated operations will be named addcustomer, getcustomer, etc
pDataServicePublishedEntityName - the name that is used to generate all operations names. (May be null)DomainRuntimeException - if this is a shortcut. Use getRealObject to access.getDataServicePublishedEntityName()public java.lang.String getDataServicePublishedEntityName()
For example, if you specify customer as the published entity, the generated operations will be named addcustomer, getcustomer, etc
setDataServicePublishedEntityName(String)public void checkValidReference(OdiDataStore pReferenceObject)
public boolean changeShortcutReferenceObject(OdiDataStore pReferenceObject)
public java.util.Collection getOutboundRelationships()
IDataStoreIDataStore.
Outbound references are references that use this datastore as foreign datastore.
getOutboundRelationships in interface IDataStorepublic boolean isVirtual()
IDataStoreisVirtual in interface IDataStoretrue if it is virtual, false otherwisepublic java.lang.String getShortcutGlobalId()
IShortcutableModelObjectgetShortcutGlobalId in interface IShortcutableModelObject@Deprecated public java.lang.Integer getShortcutNumericId()
getShortcutNumericId in interface IShortcutableModelObjectpublic java.lang.Number getShortcutBigNumericId()
IShortcutableModelObjectgetShortcutBigNumericId in interface IShortcutableModelObjectpublic IModelObject getRealModelObject()
IShortcutableModelObjectgetRealModelObject in interface IShortcutableModelObjectpublic boolean isShortcutModelObject()
IShortcutableModelObjectisShortcutModelObject in interface IShortcutableModelObjectpublic java.util.Collection getPartitions()
IDataStoreIDataStore.getPartitions in interface IDataStorepublic boolean isChangeDataCaptureEnabled()
IDataStoreisChangeDataCaptureEnabled in interface IDataStoretrue if enabled, false otherwisepublic OdiDataStore.HadoopStorageDescriptor getHadoopStorageDescriptor()
OdiDataStore.HadoopStorageDescriptorpublic void setHadoopStorageDescriptor(OdiDataStore.HadoopStorageDescriptor pHadoopStorageDescriptor)
This is not relevant for datastore that are not defined on Hive, Kafka, HDFS OdiTechnology.
pHadoopStorageDescriptor - Storage InformationDomainRuntimeException - if this is a shortcut. Use getRealObject to access.OdiDataStore.HadoopStorageDescriptorpublic java.lang.String getTableProperties()
OdiDataStore.setTableProperties(String)public void setTableProperties(java.lang.String tableProperties)
OdiDataStore.tableProperties - the table properties to be set.getTableProperties()public OdiDataStoreFormatType getTableFormatType()
OdiDataStore.setTableFormatType(OdiDataStoreFormatType)public void setTableFormatType(OdiDataStoreFormatType dataStoreFormatType)
OdiDataStore.dataStoreFormatType - the format type.getTableFormatType()