| java.lang.Object org.deegree.io.datastore.schema.content.MappingField
All known Subclasses: org.deegree.io.datastore.schema.content.MappingGeometryField,
MappingField | public class MappingField implements SimpleContent(Code) | | Encapsulates a field of the backend (e.g. an SQL table column).
author: Markus Schneider author: last edited by: $Author: apoth $ version: $Revision: 9342 $, $Date: 2007-12-27 04:32:57 -0800 (Thu, 27 Dec 2007) $ |
Constructor Summary | |
public | MappingField(String table, String field, int type, boolean auto) Creates a new instance of MappingField from the given parameters. | public | MappingField(String table, String field, int type) Creates a new instance of MappingField from the given parameters with no
automatic generation of values. |
Method Summary | |
public String | getField() Returns the name of the backend's (e.g. | public String | getTable() Returns the name of the backend's (e.g. | public int | getType() Returns the SQL type code of the field. | public boolean | isAuto() Returns whether the backend generates the value automatically on insert. | public boolean | isNumeric() Returns true if the field has a numerical type. | public boolean | isSortable() Returns true, because a db field is (in general) suitable as a sort criterion. | public boolean | isUpdateable() Returns true, because a db field may be updated. | public void | setTable(String table) Sets the table to the given table name. | public String | toString() |
MappingField | public MappingField(String table, String field, int type, boolean auto)(Code) | | Creates a new instance of MappingField from the given parameters.
Parameters: table - Parameters: field - Parameters: type - type code Parameters: auto - See Also: java.sql.Types |
MappingField | public MappingField(String table, String field, int type)(Code) | | Creates a new instance of MappingField from the given parameters with no
automatic generation of values.
Parameters: table - Parameters: field - Parameters: type - See Also: java.sql.Types |
getField | public String getField()(Code) | | Returns the name of the backend's (e.g. database) field.
the field name |
getTable | public String getTable()(Code) | | Returns the name of the backend's (e.g. database) table.
the table name |
getType | public int getType()(Code) | | Returns the SQL type code of the field.
the SQL type code See Also: java.sql.Types |
isAuto | public boolean isAuto()(Code) | | Returns whether the backend generates the value automatically on insert.
true, if a value for this field is generated automatically, false otherwise |
isNumeric | public boolean isNumeric()(Code) | | Returns true if the field has a numerical type.
See Also: java.sql.Types true if the field has a numerical type, false otherwise |
isSortable | public boolean isSortable()(Code) | | Returns true, because a db field is (in general) suitable as a sort criterion.
true, because a db field is (in general) suitable as a sort criterion |
isUpdateable | public boolean isUpdateable()(Code) | | Returns true, because a db field may be updated.
true, because a db field may be updated |
setTable | public void setTable(String table)(Code) | | Sets the table to the given table name. This is currently needed, as
MappedGMLSchema must be able to resolve unspecified (null) table names.
Parameters: table - table name to set |
|
|