|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.io.datastore.schema.content.MappingField
public class MappingField
Encapsulates a field of the backend (e.g. an SQL table column).
| Constructor Summary | |
|---|---|
MappingField(java.lang.String table,
java.lang.String field,
int type)
Creates a new instance of MappingField from the given parameters with no automatic generation of
values. |
|
MappingField(java.lang.String table,
java.lang.String field,
int type,
boolean auto)
Creates a new instance of MappingField from the given parameters. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getField()
Returns the name of the backend's (e.g. database) field. |
java.lang.String |
getTable()
Returns the name of the backend's (e.g. database) table. |
int |
getType()
Returns the SQL type code of the field. |
boolean |
isAuto()
Returns whether the backend generates the value automatically on insert. |
boolean |
isNumeric()
Returns true if the field has a numerical type. |
boolean |
isSortable()
Returns true, because a db field is (in general) suitable as a sort criterion. |
boolean |
isUpdateable()
Returns true, because a db field may be updated. |
void |
setTable(java.lang.String table)
Sets the table to the given table name. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MappingField(java.lang.String table,
java.lang.String field,
int type,
boolean auto)
MappingField from the given parameters.
table - field - type - type codeauto - Types
public MappingField(java.lang.String table,
java.lang.String field,
int type)
MappingField from the given parameters with no automatic generation of
values.
table - field - type - Types| Method Detail |
|---|
public boolean isUpdateable()
isUpdateable in interface SimpleContentpublic boolean isSortable()
isSortable in interface SimpleContentpublic java.lang.String getTable()
public void setTable(java.lang.String table)
MappedGMLSchema must be able to
resolve unspecified (null) table names.
table - table name to setpublic java.lang.String getField()
public int getType()
Typespublic boolean isAuto()
public boolean isNumeric()
true if the field has a numerical type.
true if the field has a numerical type, false otherwiseTypespublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org