public final class PersistenceDescriptor extends Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED| Constructor and Description |
|---|
PersistenceDescriptor() |
PersistenceDescriptor(PersistenceDescriptor pers)
The copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCMPField(FieldDescriptor fieldDesc) |
void |
addCMPField(String field) |
static String |
capitalize(String name) |
boolean |
classesChanged()
Called from EjbCMPEntityDescriptor
when some classes in this object are updated.
|
void |
clearCMPFields() |
Set |
getAllPossibleQueriedMethods()
Get all HomeIntf.find* and EJBClass.ejbSelect* methods
for which an EJB-QL query could possibly be set.
|
Set<FieldDescriptor> |
getCMPFields()
Return the Set of fields deemed persistent.
|
CMRFieldInfo[] |
getCMRFieldInfo()
Return array of CMRFieldInfo objects for all CMR fields.
|
CMRFieldInfo |
getCMRFieldInfoByName(String fieldName)
Return the CMRFieldInfo object for the given CMR field
|
String |
getCMRFieldReturnType(String field) |
EjbBundleDescriptorImpl |
getEjbBundleDescriptor() |
PersistentFieldInfo[] |
getFkeyFields()
Return the array of PersistentFieldInfo objects for the
foreign key fields of this bean.
|
PersistentFieldInfo[] |
getNonPkeyPersFieldInfo()
Return the array of PersistentFieldInfo objects for the CMP fields
which are not primary keys + foreign key fields.
|
Descriptor |
getParentDescriptor() |
Class |
getPersistentClass() |
PersistentFieldInfo[] |
getPersistentFieldInfo()
Return the array of PersistentFieldInfo objects for the
CMP + foreign key fields
|
PersistentFieldInfo |
getPersistentFieldInfoByName(String fieldName)
Return the PersistentFieldInfo object for the given CMP/fkey field
|
Field[] |
getPkeyClassFields() |
PersistentFieldInfo[] |
getPkeyFieldInfo()
Return the array of PersistentFieldInfo objects for the pkey fields.
|
PersistentFieldInfo |
getPkeyFieldInfoByName(String fieldName)
Return PersistentFieldInfo object for the given pkey field.
|
Set |
getPkeyFields()
Return the Set of primary key fields.
|
Class |
getPrimaryKeyClass()
Get this bean's primary key class.
|
Set |
getQueriedMethods()
Get all methods for which setQueryFor was done
|
QueryDescriptor |
getQueryFor(Method method) |
QueryDescriptor |
getQueryFor(MethodDescriptor method) |
Set |
getRelationships()
Get all CMR fields of this bean.
|
Class |
getStateClass() |
Class |
getTypeFor(String field) |
void |
invalidate()
Ensures that persistence descriptor will regenerate its
derived information after changes have been made to
persistent characteristics.
|
boolean |
isCMPField(String field)
Has the supplied field object been deemed persistent.
|
boolean |
isPkeyField(FieldDescriptor fieldDesc) |
boolean |
isPkeyField(String field)
Is the supplied field object one of the pkey fields.
|
boolean |
primaryKeyFieldsAllPrimitive() |
boolean |
primaryKeyIsOneField() |
boolean |
primaryKeyIsSpecified() |
void |
print(StringBuilder toStringBuilder)
Return my formatted string representation.
|
void |
removeCMPField(FieldDescriptor fieldDesc) |
void |
removeCMPField(String field) |
void |
removeQueryFor(MethodDescriptor method) |
void |
setCMPFields(Set cmpFields)
Set the FieldDescriptor objects that the EJB container will persist
for this bean.
|
void |
setFkeyFields(PersistentFieldInfo[] fkeyFields)
Set the array of PersistentFieldInfo objects representing the
foreign key fields of this bean.
|
void |
setParentDescriptor(EjbCMPEntityDescriptor parentDesc) |
void |
setPkeyFields(Set pkeyFields)
Set the FieldDescriptor objects for primary key fields
for this bean.
|
void |
setQueryFor(MethodDescriptor method,
QueryDescriptor query) |
void |
setQueryFor(Method method,
QueryDescriptor query) |
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visitaddExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic PersistenceDescriptor()
public PersistenceDescriptor(PersistenceDescriptor pers)
public boolean classesChanged()
public void setParentDescriptor(EjbCMPEntityDescriptor parentDesc)
public Descriptor getParentDescriptor()
public EjbBundleDescriptorImpl getEjbBundleDescriptor()
public Set getRelationships()
public CMRFieldInfo[] getCMRFieldInfo()
public CMRFieldInfo getCMRFieldInfoByName(String fieldName)
public void invalidate()
public void clearCMPFields()
public void addCMPField(String field)
public void addCMPField(FieldDescriptor fieldDesc)
public void removeCMPField(String field)
public void removeCMPField(FieldDescriptor fieldDesc)
public void setCMPFields(Set cmpFields)
public boolean isCMPField(String field)
public Set<FieldDescriptor> getCMPFields()
public void setPkeyFields(Set pkeyFields)
public Set getPkeyFields()
public boolean isPkeyField(String field)
public boolean isPkeyField(FieldDescriptor fieldDesc)
public boolean primaryKeyIsOneField()
public boolean primaryKeyIsSpecified()
public boolean primaryKeyFieldsAllPrimitive()
public Class getPrimaryKeyClass()
public Class getPersistentClass()
public Class getStateClass()
public void setFkeyFields(PersistentFieldInfo[] fkeyFields)
public PersistentFieldInfo[] getFkeyFields()
public PersistentFieldInfo[] getPersistentFieldInfo()
public PersistentFieldInfo getPersistentFieldInfoByName(String fieldName)
public PersistentFieldInfo[] getNonPkeyPersFieldInfo()
public PersistentFieldInfo[] getPkeyFieldInfo()
public PersistentFieldInfo getPkeyFieldInfoByName(String fieldName)
public Field[] getPkeyClassFields()
public Class getTypeFor(String field)
public void setQueryFor(MethodDescriptor method, QueryDescriptor query)
public QueryDescriptor getQueryFor(MethodDescriptor method)
public void removeQueryFor(MethodDescriptor method)
public void setQueryFor(Method method, QueryDescriptor query)
public QueryDescriptor getQueryFor(Method method)
public Set getQueriedMethods()
public Set getAllPossibleQueriedMethods()
public void print(StringBuilder toStringBuilder)
print in class DescriptorCopyright © 2019. All rights reserved.