public class MappingFieldElementImpl extends MappingMemberElementImpl implements MappingFieldElement
Modifier and Type | Field and Description |
---|---|
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 |
GROUP_DEFAULT, GROUP_INDEPENDENT, GROUP_NONE
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
equals, firePropertyChange, fireVetoableChange, getDeclaringClass, hashCode, setDeclaringClass
addPropertyChangeListener, addVetoableChangeListener, compareTo, getMessages, getName, removePropertyChangeListener, removeVetoableChangeListener, setName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDeclaringClass
addPropertyChangeListener, addVetoableChangeListener, getName, removePropertyChangeListener, removeVetoableChangeListener, setName
compareTo
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
public MappingFieldElementImpl()
public MappingFieldElementImpl(String name, MappingClassElement declaringClass)
name
- the name of the elementdeclaringClass
- the class to attach topublic boolean isReadOnly()
isReadOnly
in interface MappingFieldElement
true
if the field is read only,
false
otherwisepublic void setReadOnly(boolean flag) throws ModelException
setReadOnly
in interface MappingFieldElement
flag
- - if true
, the field element is marked as
read only; otherwise, it is notModelException
- if impossiblepublic boolean isInConcurrencyCheck()
isInConcurrencyCheck
in interface MappingFieldElement
true
if the field is in a concurrency check,
false
otherwisepublic void setInConcurrencyCheck(boolean flag) throws ModelException
setInConcurrencyCheck
in interface MappingFieldElement
flag
- - if true
, the field element is marked as
being in a concurrency check; otherwise, it is notModelException
- if impossiblepublic boolean isVersion()
isVersion
in interface MappingFieldElement
true
if the field is a version field,
false
otherwisepublic void setVersion(boolean flag) throws ModelException
setVersion
in interface MappingFieldElement
flag
- - if true
, the field element is marked
as a version field; otherwise, it is notModelException
- if impossiblepublic int getFetchGroup()
getFetchGroup
in interface MappingFieldElement
MappingFieldElement.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 MappingFieldElement
group
- - 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_INDEPENDENT
public ArrayList getColumns()
getColumns
in interface MappingFieldElement
public void addColumn(org.netbeans.modules.dbschema.DBMemberElement column) throws ModelException
addColumn
in interface MappingFieldElement
column
- column element to be added to the mappingModelException
- if impossiblepublic void removeColumn(String columnName) throws ModelException
removeColumn
in interface MappingFieldElement
columnName
- the relative name of the column to be removed from
the mappingModelException
- 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()
Copyright © 2021. All rights reserved.