public class OdiMainPartition extends OdiPartition
OdiDataStore.
A main partition is owned by an {OdiDataStore instance and can have sub partitions.
OdiPartition,
OdiSubPartition,
Serialized FormNAME_MAX_LENGTH| Constructor and Description |
|---|
OdiMainPartition(OdiDataStore pDataStore,
java.lang.String pName)
Constructs a new main partition.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
getSubPartitions()
Returns an unmodifiable collection of
OdiSubPartitions that belongs to this OdiMainPartition. |
java.lang.String |
getType()
Obtains the type of this partition
|
void |
removeSubPartition(OdiSubPartition pSubPartition)
Remove the given
OdiSubPartition from the collection of OdiSubPartitions. |
getDataStore, getDescription, getInternalId, getName, getPartitionId, getSecurityContainer, setDescriptionequals, getFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, hashCode, isInstanceLevelSecurityNeeded, isNew, preCommit, toStringgetGlobalId, getNumericId, hasCustomizedPersistenceMethodFor, invokeCustomizedPersistenceMethodForgetFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeededgetGlobalIdgetGlobalId, getNumericIdpublic OdiMainPartition(OdiDataStore pDataStore, java.lang.String pName)
This constructor also set the parent OdiDataStore of this partition and it's name.
pDataStore - the parent datastore of this paritionpName - the name of this partitionDomainRuntimeException - if the pDataStore is null or if the name is null, empty or longer than NAME_MAX_LENGTHpublic void removeSubPartition(OdiSubPartition pSubPartition)
OdiSubPartition from the collection of OdiSubPartitions.pSubPartition - pSubPartition.DomainRuntimeException - if pSubPartition is null or does not belong to this
OdiMainPartition.getSubPartitions()public java.util.Collection getSubPartitions()
OdiSubPartitions that belongs to this OdiMainPartition.
Use removeSubPartition(OdiSubPartition) to remove OdiSubPartition.
OdiSubPartitionremoveSubPartition(OdiSubPartition)public java.lang.String getType()
IPartition