|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface PersistenceClassElement.Impl
Pluggable implementation of the storage of class element properties.
PersistenceClassElement.PersistenceClassElement(com.sun.jdo.api.persistence.model.jdo.PersistenceClassElement.Impl)| Field Summary |
|---|
| Fields inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl |
|---|
ADD, REMOVE, SET |
| Method Summary | |
|---|---|
void |
changeConcurrencyGroups(ConcurrencyGroupElement[] groups,
int action)
Change the set of concurrency groups. |
void |
changeFields(PersistenceFieldElement[] fields,
int action)
Change the set of fields. |
ConcurrencyGroupElement |
getConcurrencyGroup(String name)
Find a concurrency group by name. |
ConcurrencyGroupElement[] |
getConcurrencyGroups()
Get all concurrency groups. |
PersistenceFieldElement |
getField(String name)
Find a field by name. |
PersistenceFieldElement[] |
getFields()
Get all fields. |
String |
getKeyClass()
Get the fully qualified name of the primary key class for this class element. |
int |
getObjectIdentityType()
Get the object identity type of this class element. |
boolean |
isModified()
Gets the modified flag for this persistence class. |
void |
setKeyClass(String name)
Set the primary key class for this class element. |
void |
setModified(boolean flag)
Set the modified flag for this persistence class to flag. |
void |
setObjectIdentityType(int type)
Set the object identity type of this class element. |
| Methods inherited from interface com.sun.jdo.api.persistence.model.jdo.PersistenceElement.Impl |
|---|
addPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setName |
| Method Detail |
|---|
boolean isModified()
true if there have been (property) changes to
this class, false otherwise.void setModified(boolean flag)
true by property changes and
false after a save.
flag - if true, this class is marked as modified;
if false, it is marked as unmodified.int getObjectIdentityType()
PersistenceClassElement.APPLICATION_IDENTITY, PersistenceClassElement.DATABASE_IDENTITY, or
PersistenceClassElement.UNMANAGED_IDENTITY
void setObjectIdentityType(int type)
throws ModelException
type - - an integer indicating the object identity type, one of:
PersistenceClassElement.APPLICATION_IDENTITY, PersistenceClassElement.DATABASE_IDENTITY, or
PersistenceClassElement.UNMANAGED_IDENTITY
ModelException - if impossibleString getKeyClass()
getObjectIdentityType returns
APPLICATION_IDENTITY
null if the
identity type is not managed by the applicationsetObjectIdentityType(int),
PersistenceClassElement.APPLICATION_IDENTITY
void setKeyClass(String name)
throws ModelException
name - - the fully qualified name which represents the primary
key class. This value is only used if
getObjectIdentityType returns
APPLICATION_IDENTITY
ModelException - if impossiblesetObjectIdentityType(int),
PersistenceClassElement.APPLICATION_IDENTITY
void changeFields(PersistenceFieldElement[] fields,
int action)
throws ModelException
fields - the new fieldsaction - PersistenceElement.Impl.ADD, PersistenceElement.Impl.REMOVE, or PersistenceElement.Impl.SET
ModelException - if impossiblePersistenceFieldElement[] getFields()
PersistenceFieldElement getField(String name)
name - the name to match
null if it does not exist
void changeConcurrencyGroups(ConcurrencyGroupElement[] groups,
int action)
throws ModelException
groups - the new concurrency groupsaction - PersistenceElement.Impl.ADD, PersistenceElement.Impl.REMOVE, or PersistenceElement.Impl.SET
ModelException - if impossibleConcurrencyGroupElement[] getConcurrencyGroups()
ConcurrencyGroupElement getConcurrencyGroup(String name)
name - the name to match
null if it does not
exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||