public static interface PersistenceClassElement.Impl extends PersistenceElement.Impl
ADD, REMOVE, SET| Modifier and Type | Method and Description |
|---|---|
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.
|
addPropertyChangeListener, addVetoableChangeListener, attachToElement, getName, removePropertyChangeListener, removeVetoableChangeListener, setNameboolean 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_IDENTITYvoid setObjectIdentityType(int type)
throws ModelException
type - - an integer indicating the object identity type, one of:
PersistenceClassElement.APPLICATION_IDENTITY, PersistenceClassElement.DATABASE_IDENTITY, or
PersistenceClassElement.UNMANAGED_IDENTITYModelException - if impossibleString getKeyClass()
getObjectIdentityType returns
APPLICATION_IDENTITYnull if the
identity type is not managed by the applicationsetObjectIdentityType(int),
PersistenceClassElement.APPLICATION_IDENTITYvoid 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_IDENTITYModelException - if impossiblesetObjectIdentityType(int),
PersistenceClassElement.APPLICATION_IDENTITYvoid changeFields(PersistenceFieldElement[] fields, int action) throws ModelException
fields - the new fieldsaction - PersistenceElement.Impl.ADD, PersistenceElement.Impl.REMOVE, or PersistenceElement.Impl.SETModelException - if impossiblePersistenceFieldElement[] getFields()
PersistenceFieldElement getField(String name)
name - the name to matchnull if it does not existvoid changeConcurrencyGroups(ConcurrencyGroupElement[] groups, int action) throws ModelException
groups - the new concurrency groupsaction - PersistenceElement.Impl.ADD, PersistenceElement.Impl.REMOVE, or PersistenceElement.Impl.SETModelException - if impossibleConcurrencyGroupElement[] getConcurrencyGroups()
ConcurrencyGroupElement getConcurrencyGroup(String name)
name - the name to matchnull if it does not
existCopyright © 2017–2019 Eclipse Foundation. All rights reserved.