| java.lang.Object org.castor.ddlgen.schemaobject.AbstractSchemaObject org.castor.ddlgen.schemaobject.Field
All known Subclasses: org.castor.ddlgen.engine.db2.Db2Field, org.castor.ddlgen.engine.postgresql.PostgresqlField, org.castor.ddlgen.engine.pointbase.PointBaseField, org.castor.ddlgen.engine.derby.DerbyField, org.castor.ddlgen.engine.mysql.MysqlField, org.castor.ddlgen.engine.hsql.HsqlField, org.castor.ddlgen.schemaobject.DefaultField, org.castor.ddlgen.engine.sybase.SybaseField, org.castor.ddlgen.engine.mssql.MssqlField,
Field | abstract public class Field extends AbstractSchemaObject (Code) | | Abstract base class of all field implementations.
author: Le Duc Bao author: Ralf Joachim version: $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $ since: 1.1 |
getDecimals | final public Integer getDecimals()(Code) | | Get decimals parameter from mapping of sql field.
Returns null as it is not supported yet.
decimals Decimals parameter from mapping of sql field. |
getKeyGenerator | final public KeyGenerator getKeyGenerator()(Code) | | Get key generator for this field.
Key generator for this field. |
getLength | final public Integer getLength()(Code) | | Get length parameter from mapping of sql field.
Returns null as it is not supported yet.
length Length parameter from mapping of sql field. |
getPrecision | final public Integer getPrecision()(Code) | | Get precision parameter from mapping of sql field.
Returns null as it is not supported yet.
precision Precision parameter from mapping of sql field. |
getTable | final public Table getTable()(Code) | | Get table which contains this field.
Table which contains this field. |
getType | final public TypeInfo getType()(Code) | | Get type information of this field.
Type information of this field. |
hashCode | final public int hashCode()(Code) | | |
isIdentity | final public boolean isIdentity()(Code) | | Get if this field is part of the identity?
true if the field is part of the identity,true otherwise. |
isRequired | final public boolean isRequired()(Code) | | Get if this field is a required one?
true if the field is required, true otherwise. |
merge | final public void merge(Field field) throws GeneratorException(Code) | | Check if given field can be merged with this one.
Parameters: field - Field to check if it is able to be merged. throws: GeneratorException - If fields cannot be merged. |
setIdentity | final public void setIdentity(boolean isIdentity)(Code) | | Set if this field is part of the identity?
Parameters: isIdentity - true if the field is part of the identity,true otherwise. |
setKeyGenerator | final public void setKeyGenerator(KeyGenerator keyGenerator)(Code) | | Set key generator for this field. null if the field has no key
generator.
Parameters: keyGenerator - Key generator for this field. |
setRequired | final public void setRequired(boolean isRequired)(Code) | | Set if this field is a required one?
Parameters: isRequired - true if the field is required, true otherwise. |
setTable | final public void setTable(Table table)(Code) | | Set table which contains this field.
Parameters: table - Table which contains this field. |
setType | final public void setType(TypeInfo type)(Code) | | Set type information of this field.
Parameters: type - Type information of this field. |
Fields inherited from org.castor.ddlgen.schemaobject.AbstractSchemaObject | final protected static int HASHFACTOR(Code)(Java Doc)
|
|
|