Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.5.0)

E17060-02


oracle.odi.domain.model
Class AbstractOdiSubModel

java.lang.Object
  extended by oracle.odi.domain.support.BusinessObject
      extended by oracle.odi.domain.support.AbstractRepositoryEntity
          extended by oracle.odi.domain.support.AbstractOdiEntity
              extended by oracle.odi.domain.model.AbstractOdiSubModel

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, IExportable, IOdiEntity, IRepositoryEntity, IWorkDevelopmentOdiEntity
Direct Known Subclasses:
OdiGlobalSubModel, OdiSubModel

public abstract class AbstractOdiSubModel
extends oracle.odi.domain.support.AbstractOdiEntity
implements IWorkDevelopmentOdiEntity, IExportable

Abstract base class for sub-models.

Known subclasses are OdiGlobalSubModel and OdiSubModel.

Since:
11.1.1.3.0
See Also:
Serialized Form

Field Summary
static int CODE_MAX_LENGTH
          Maximum length supported for the "code" property.
static int NAME_MAX_LENGTH
          Maximum length supported for the "name" property.

 

Fields inherited from class oracle.odi.domain.support.AbstractOdiEntity
STARTING_INTERNAL_VERSION

 

Constructor Summary
AbstractOdiSubModel()
           

 

Method Summary
 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<OdiDataStore> 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.

 

Methods inherited from class oracle.odi.domain.support.AbstractOdiEntity
equals, getFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, hashCode, isInstanceLevelSecurityNeeded, isNew, toString

 

Methods inherited from class oracle.odi.domain.support.BusinessObject
clone

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface oracle.odi.domain.IOdiEntity
getFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeeded

 

Field Detail

NAME_MAX_LENGTH

public static final int NAME_MAX_LENGTH
Maximum length supported for the "name" property. see setName(String).
See Also:
Constant Field Values

CODE_MAX_LENGTH

public static final int CODE_MAX_LENGTH
Maximum length supported for the "code" property. see setCode(String).
See Also:
Constant Field Values

Constructor Detail

AbstractOdiSubModel

public AbstractOdiSubModel()

Method Detail

getInternalId

public java.io.Serializable getInternalId()
Returns the internal identifier of this OdiSubModel instance.
Specified by:
getInternalId in interface IRepositoryEntity
Returns:
the internal ID.
See Also:
getSubModelId()

getSecurityContainer

public IRepositoryEntity getSecurityContainer()
Description copied from interface: IRepositoryEntity
Define a generic way to retrieve container for entities.
Specified by:
getSecurityContainer in interface IRepositoryEntity
Returns:
container entity

getModel

public OdiModel getModel()
Returns the OdiModel this sub-model belongs to.
Returns:
the parent model.

getName

public java.lang.String getName()
Returns the name of this AbstractOdiSubModel instance.
Specified by:
getName in interface IOdiEntity
Overrides:
getName in class oracle.odi.domain.support.AbstractOdiEntity
Returns:
the name.

getCode

public java.lang.String getCode()
Returns the code of this AbstractOdiSubModel instance.
Returns:
the code.

getSubModelId

public java.lang.Number getSubModelId()
Returns the id of this AbstractOdiSubModel instance.
Returns:
the id.

getDataStores

public java.util.Collection<OdiDataStore> 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.

Returns:
the collection of owned OdiDataStore
See Also:
addDataStore(OdiDataStore), removeDataStore(OdiDataStore)

addDataStore

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.

Parameters:
pDataStore - the OdiDataStore to add.
Throws:
java.lang.IllegalArgumentException - if pDataStore is null.
See Also:
removeDataStore(OdiDataStore), getDataStores()

removeDataStore

public void removeDataStore(OdiDataStore pDataStore)
Remove the given 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

Parameters:
pDataStore - the OdiDataStore to remove.
Throws:
java.lang.IllegalArgumentException - if pDataStore is null
java.lang.IllegalArgumentException - if pDataStore does not belong to this AbstractOdiSubModel
See Also:
addDataStore(OdiDataStore), getDataStores()

Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.5.0)

E17060-02


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.