public abstract class AbstractOdiSubModel extends oracle.odi.domain.support.AbstractOdiEntity implements IWorkDevelopmentOdiEntity, oracle.odi.domain.impexp.IExportable, oracle.odi.impexp.smartie.ISmartExportable, IModel
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 OdiDataStore s. |
java.lang.String |
getCode()
Returns the code of this
AbstractOdiSubModel instance. |
java.util.Collection |
getDataStores()
Obtains an unmodifiable collection of
OdiDataStore s 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 OdiDataStore s of this sub-model. |
equals, getFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, hashCode, isInstanceLevelSecurityNeeded, isNew, toString
getGlobalId, getNumericId, hasCustomizedPersistenceMethodFor, invokeCustomizedPersistenceMethodFor
getFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeeded
getGlobalId
getSubModels
getGlobalId, getNumericId
public 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 IRepositoryEntity
getSubModelId()
public IRepositoryEntity getSecurityContainer()
IRepositoryEntity
getSecurityContainer
in interface IRepositoryEntity
public OdiModel getModel()
OdiModel
this sub-model belongs to.public java.lang.String getName()
AbstractOdiSubModel
instance.getName
in interface IModelObject
getName
in interface IOdiEntity
getName
in class oracle.odi.domain.support.AbstractOdiEntity
public java.lang.String getCode()
AbstractOdiSubModel
instance.public java.lang.Number getSubModelId()
AbstractOdiSubModel
instance.public java.util.Collection getDataStores()
Obtains an unmodifiable collection of OdiDataStore
s directly owned by this sub-model
Use removeDataStore(OdiDataStore) and addDataStore(OdiDataStore) to respectively add and remove OdiDataStore
.
getDataStores
in interface IModel
OdiDataStore
addDataStore(OdiDataStore)
,
removeDataStore(OdiDataStore)
public void addDataStore(OdiDataStore pDataStore)
Add the given OdiDataStore
to the collection of OdiDataStore
s.
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 OdiDataStore
s 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 null
DomainRuntimeException
- if pDataStore does not belong to this AbstractOdiSubModeladdDataStore(OdiDataStore)
,
getDataStores()