public abstract class AbstractOdiSubModel extends oracle.odi.domain.support.AbstractOdiEntity implements IWorkDevelopmentOdiEntity, oracle.odi.domain.impexp.IExportable, oracle.odi.impexp.smartie.ISmartExportable, IModel, oracle.odi.core.audit.support.IAuditableFirstClassObject
Known subclasses are OdiGlobalSubModel and OdiSubModel.
| Modifier and Type | Field and Description |
|---|---|
static int |
CODE_MAX_LENGTH
Maximum length supported for the "code" property.
|
static int |
NAME_MAX_LENGTH
Maximum length supported for the "name" property.
|
| Constructor and Description |
|---|
AbstractOdiSubModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataStore(OdiDataStore pDataStore)
Add the given
OdiDataStore to the collection of OdiDataStores. |
java.lang.String |
getCode()
Returns the code of this
AbstractOdiSubModel instance. |
java.util.Collection |
getDataStores()
Obtains an unmodifiable collection of
OdiDataStores directly owned by this sub-model |
java.io.Serializable |
getInternalId()
Returns the internal identifier of this
OdiSubModel instance. |
OdiModel |
getModel()
Returns the
OdiModel this sub-model belongs to. |
java.lang.String |
getName()
Returns the name of this
AbstractOdiSubModel instance. |
IRepositoryEntity |
getSecurityContainer()
Define a generic way to retrieve container for entities.
|
java.lang.Number |
getSubModelId()
Returns the id of this
AbstractOdiSubModel instance. |
void |
removeDataStore(OdiDataStore pDataStore)
Remove the given
OdiDataStore from the collection of OdiDataStores of this sub-model. |
equals, getFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, hashCode, isInstanceLevelSecurityNeeded, isNew, preCommit, toStringgetGlobalId, getNumericId, hasCustomizedPersistenceMethodFor, invokeCustomizedPersistenceMethodForgetFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeededgetGlobalIdgetSubModelsgetGlobalId, getNumericIdpublic static final int NAME_MAX_LENGTH
setName(String).public static final int CODE_MAX_LENGTH
setCode(String).public java.io.Serializable getInternalId()
OdiSubModel instance.getInternalId in interface IRepositoryEntitygetSubModelId()public IRepositoryEntity getSecurityContainer()
IRepositoryEntitygetSecurityContainer in interface IRepositoryEntitypublic OdiModel getModel()
OdiModel this sub-model belongs to.public java.lang.String getName()
AbstractOdiSubModel instance.getName in interface IModelObjectgetName in interface IOdiEntitygetName in class oracle.odi.domain.support.AbstractOdiEntitypublic java.lang.String getCode()
AbstractOdiSubModel instance.public java.lang.Number getSubModelId()
AbstractOdiSubModel instance.public java.util.Collection getDataStores()
Obtains an unmodifiable collection of OdiDataStores directly owned by this sub-model
Use removeDataStore(OdiDataStore) and addDataStore(OdiDataStore) to respectively add and remove OdiDataStore.
getDataStores in interface IModelOdiDataStoreaddDataStore(OdiDataStore), removeDataStore(OdiDataStore)public void addDataStore(OdiDataStore pDataStore)
Add the given OdiDataStore to the collection of OdiDataStores.
This will also set the SubModel of the given OdiDataStore to this OdiSubModel instance.
If the given OdiDataStore was already owned by an other OdiSubModel it will be removed from the previous owner.
pDataStore - the OdiDataStore to add.DomainRuntimeException - if pDataStore is null.removeDataStore(OdiDataStore), getDataStores()public void removeDataStore(OdiDataStore pDataStore)
OdiDataStore from the collection of OdiDataStores of this sub-model.
Note: you will have to call IOdiEntityManager.remove(pDataStore) too in order to really remove the OdiDataStore
pDataStore - the OdiDataStore to remove.DomainRuntimeException - if pDataStore is nullDomainRuntimeException - if pDataStore does not belong to this AbstractOdiSubModeladdDataStore(OdiDataStore), getDataStores()