|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.model.mapping.impl.MappingElementImpl
com.sun.jdo.api.persistence.model.mapping.impl.MappingMemberElementImpl
com.sun.jdo.api.persistence.model.mapping.impl.MappingFieldElementImpl
public class MappingFieldElementImpl
| Field Summary | |
|---|---|
static int |
CLONE_DEEP
|
static int |
CLONE_FIELD
|
static int |
CLONE_MASK
|
static int |
IN_CONCURRENCY_CHECK
|
static int |
LOG_ON_ACCESS
|
static int |
LOG_ON_MASK
|
static int |
LOG_ON_UPDATE
|
static int |
MOD_BI_ON_UPDATE
|
static int |
OBSERVE_ON_ACCESS
|
static int |
READ_ONLY
|
static int |
RECORD_ON_UPDATE
|
static int |
REF_INTEGRITY_UPDATES
|
static int |
SEND_BEFORE_IMAGE
|
static int |
XLATE_FIELD
|
| Fields inherited from interface com.sun.jdo.api.persistence.model.mapping.MappingFieldElement |
|---|
GROUP_DEFAULT, GROUP_INDEPENDENT, GROUP_NONE |
| Fields inherited from interface com.sun.jdo.api.persistence.model.mapping.MappingElementProperties |
|---|
PROP_ASSOCIATED_COLUMNS, PROP_COLUMNS, PROP_CONSISTENCY, PROP_DATABASE_ROOT, PROP_FETCH_GROUP, PROP_FIELDS, PROP_IN_CONCURRENCY_CHECK, PROP_KEY_COLUMNS, PROP_MODIFIED, PROP_NAME, PROP_NAVIGABLE, PROP_READ_ONLY, PROP_REFERENCING_KEYS, PROP_TABLE, PROP_TABLES, PROP_VERSION_FIELD |
| Constructor Summary | |
|---|---|
MappingFieldElementImpl()
Create new MappingFieldElementImpl with no corresponding name or declaring class. |
|
MappingFieldElementImpl(String name,
MappingClassElement declaringClass)
Create new MappingFieldElementImpl with the corresponding name and declaring class. |
|
| Method Summary | |
|---|---|
void |
addColumn(org.netbeans.modules.dbschema.DBMemberElement column)
Adds a column to the list of columns mapped by this mapping field. |
int |
getCloneDepth()
|
ArrayList |
getColumnObjects()
Returns the list of columns (ColumnElements) to which this mapping field is mapped. |
ArrayList |
getColumns()
Returns the list of column names to which this mapping field is mapped. |
ConcurrencyGroupElement[] |
getConcurrencyGroups()
Returns the array of concurrency groups to which this field belongs. |
int |
getFetchGroup()
Get the fetch group of this field element. |
int |
getFieldNumber()
Computes the field number of this field element. |
boolean |
getLogOnAccess()
|
boolean |
getLogOnUpdate()
|
boolean |
getModifyBeforeImageOnUpdate()
|
boolean |
getObserveOnAccess()
|
int |
getProperties()
|
boolean |
getRecordOnUpdate()
|
boolean |
getReferentialIntegrityUpdates()
|
boolean |
getSendBeforeImage()
|
boolean |
isInConcurrencyCheck()
Determines whether this field element is in a concurrency check or not. |
protected boolean |
isMappedToTable(MappingTableElement table)
|
boolean |
isReadOnly()
Determines whether this field element is read only or not. |
boolean |
isVersion()
Determines whether this field element is a version field or not. |
void |
removeColumn(String columnName)
Removes a column from the list of columns mapped by this mapping field. |
void |
setCloneDepth(int cloneDepth)
|
void |
setFetchGroup(int group)
Set the fetch group of this field element. |
protected void |
setFetchGroupInternal(int group)
Set the fetch group of this field element. |
void |
setInConcurrencyCheck(boolean flag)
Set whether this field element is in a concurrency check or not. |
void |
setLogOnAccess(boolean flag)
|
void |
setLogOnUpdate(boolean flag)
|
void |
setModifyBeforeImageOnUpdate(boolean flag)
|
void |
setObserveOnAccess(boolean flag)
|
void |
setProperty(boolean flag,
int propertyBit)
|
void |
setReadOnly(boolean flag)
Set whether this field element is read only or not. |
void |
setRecordOnUpdate(boolean flag)
|
void |
setReferentialIntegrityUpdates(boolean flag)
|
void |
setSendBeforeImage(boolean flag)
|
void |
setVersion(boolean flag)
Set whether this field element is a version field or not. |
protected void |
stripSchemaName()
Boston to Pilsen conversion. |
| Methods inherited from class com.sun.jdo.api.persistence.model.mapping.impl.MappingMemberElementImpl |
|---|
equals, firePropertyChange, fireVetoableChange, getDeclaringClass, hashCode, setDeclaringClass |
| Methods inherited from class com.sun.jdo.api.persistence.model.mapping.impl.MappingElementImpl |
|---|
addPropertyChangeListener, addVetoableChangeListener, compareTo, getMessages, getName, removePropertyChangeListener, removeVetoableChangeListener, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.jdo.api.persistence.model.mapping.MappingMemberElement |
|---|
getDeclaringClass |
| Methods inherited from interface com.sun.jdo.api.persistence.model.mapping.MappingElement |
|---|
addPropertyChangeListener, addVetoableChangeListener, getName, removePropertyChangeListener, removeVetoableChangeListener, setName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
public static final int CLONE_FIELD
public static final int CLONE_DEEP
public static final int CLONE_MASK
public static final int LOG_ON_ACCESS
public static final int LOG_ON_MASK
public static final int LOG_ON_UPDATE
public static final int MOD_BI_ON_UPDATE
public static final int OBSERVE_ON_ACCESS
public static final int RECORD_ON_UPDATE
public static final int SEND_BEFORE_IMAGE
public static final int READ_ONLY
public static final int REF_INTEGRITY_UPDATES
public static final int IN_CONCURRENCY_CHECK
public static final int XLATE_FIELD
| Constructor Detail |
|---|
public MappingFieldElementImpl()
public MappingFieldElementImpl(String name,
MappingClassElement declaringClass)
name - the name of the elementdeclaringClass - the class to attach to| Method Detail |
|---|
public boolean isReadOnly()
isReadOnly in interface MappingFieldElementtrue if the field is read only,
false otherwise
public void setReadOnly(boolean flag)
throws ModelException
setReadOnly in interface MappingFieldElementflag - - if true, the field element is marked as
read only; otherwise, it is not
ModelException - if impossiblepublic boolean isInConcurrencyCheck()
isInConcurrencyCheck in interface MappingFieldElementtrue if the field is in a concurrency check,
false otherwise
public void setInConcurrencyCheck(boolean flag)
throws ModelException
setInConcurrencyCheck in interface MappingFieldElementflag - - if true, the field element is marked as
being in a concurrency check; otherwise, it is not
ModelException - if impossiblepublic boolean isVersion()
isVersion in interface MappingFieldElementtrue if the field is a version field,
false otherwise
public void setVersion(boolean flag)
throws ModelException
setVersion in interface MappingFieldElementflag - - if true, the field element is marked
as a version field; otherwise, it is not
ModelException - if impossiblepublic int getFetchGroup()
getFetchGroup in interface MappingFieldElementMappingFieldElement.GROUP_DEFAULT,
MappingFieldElement.GROUP_NONE, or anything less than or equal to
MappingFieldElement.GROUP_INDEPENDENT
public void setFetchGroup(int group)
throws ModelException
setFetchGroup in interface MappingFieldElementgroup - - an integer indicating the fetch group, one of:
MappingFieldElement.GROUP_DEFAULT, MappingFieldElement.GROUP_NONE, or anything less than or
equal to MappingFieldElement.GROUP_INDEPENDENT
ModelException - if impossibleprotected void setFetchGroupInternal(int group)
group - - an integer indicating the fetch group, one of:
MappingFieldElement.GROUP_DEFAULT, MappingFieldElement.GROUP_NONE, or anything less than or
equal to MappingFieldElement.GROUP_INDEPENDENTpublic ArrayList getColumns()
getColumns in interface MappingFieldElement
public void addColumn(org.netbeans.modules.dbschema.DBMemberElement column)
throws ModelException
addColumn in interface MappingFieldElementcolumn - column element to be added to the mapping
ModelException - if impossible
public void removeColumn(String columnName)
throws ModelException
removeColumn in interface MappingFieldElementcolumnName - the relative name of the column to be removed from
the mapping
ModelException - if impossibleprotected boolean isMappedToTable(MappingTableElement table)
public ArrayList getColumnObjects()
public int getFieldNumber()
public ConcurrencyGroupElement[] getConcurrencyGroups()
PersistenceClassElement.getConcurrencyGroups()
public void setProperty(boolean flag,
int propertyBit)
public int getProperties()
public boolean getLogOnAccess()
public void setLogOnAccess(boolean flag)
public boolean getLogOnUpdate()
public void setLogOnUpdate(boolean flag)
public boolean getObserveOnAccess()
public void setObserveOnAccess(boolean flag)
public boolean getRecordOnUpdate()
public void setRecordOnUpdate(boolean flag)
public boolean getModifyBeforeImageOnUpdate()
public void setModifyBeforeImageOnUpdate(boolean flag)
public boolean getReferentialIntegrityUpdates()
public void setReferentialIntegrityUpdates(boolean flag)
public boolean getSendBeforeImage()
public void setSendBeforeImage(boolean flag)
public int getCloneDepth()
public void setCloneDepth(int cloneDepth)
protected void stripSchemaName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||