public interface MappingFieldElement extends MappingMemberElement
| Modifier and Type | Field and Description |
|---|---|
static int |
GROUP_DEFAULT
Constant representing the jdo default fetch group.
|
static int |
GROUP_INDEPENDENT
Constant representing an independent fetch group.
|
static int |
GROUP_NONE
Constant representing no fetch group.
|
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| 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.
|
ArrayList |
getColumns()
Returns the list of column names to which this mapping field is
mapped.
|
int |
getFetchGroup()
Get the fetch group of this field element.
|
boolean |
isInConcurrencyCheck()
Determines whether this field element is in a concurrency check or not.
|
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 |
setFetchGroup(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 |
setReadOnly(boolean flag)
Set whether this field element is read only or not.
|
void |
setVersion(boolean flag)
Set whether this field element is a version field or not.
|
getDeclaringClassaddPropertyChangeListener, addVetoableChangeListener, getName, removePropertyChangeListener, removeVetoableChangeListener, setNamecompareTostatic final int GROUP_DEFAULT
static final int GROUP_NONE
static final int GROUP_INDEPENDENT
boolean isReadOnly()
true if the field is read only,
false otherwisevoid setReadOnly(boolean flag)
throws ModelException
flag - - if true, the field element is marked as
read only; otherwise, it is notModelException - if impossibleboolean isInConcurrencyCheck()
true if the field is in a concurrency check,
false otherwisevoid setInConcurrencyCheck(boolean flag)
throws ModelException
flag - - if true, the field element is marked as
being in a concurrency check; otherwise, it is notModelException - if impossibleboolean isVersion()
true if the field is a version field,
false otherwisevoid setVersion(boolean flag)
throws ModelException
flag - - if true, the field element is marked
as a version field; otherwise, it is notModelException - if impossibleint getFetchGroup()
GROUP_DEFAULT,
GROUP_NONE, or anything less than or equal to
GROUP_INDEPENDENTvoid setFetchGroup(int group)
throws ModelException
group - - an integer indicating the fetch group, one of:
GROUP_DEFAULT, GROUP_NONE, or anything less than or
equal to GROUP_INDEPENDENTModelException - if impossibleArrayList getColumns()
void addColumn(org.netbeans.modules.dbschema.DBMemberElement column)
throws ModelException
column - column element to be added to the mappingModelException - if impossiblevoid removeColumn(String columnName) throws ModelException
columnName - the relative name of the column to be removed from
the mappingModelException - if impossibleCopyright © 2013. All Rights Reserved.