SchemaObject
Db2Field
, DefaultField
, DerbyField
, HsqlField
, MssqlField
, MysqlField
, PointBaseField
, PostgresqlField
, SybaseField
public abstract class Field extends AbstractSchemaObject
HASHFACTOR
Constructor | Description |
---|---|
Field() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object other) |
|
java.lang.Integer |
getDecimals() |
Get decimals parameter from mapping of sql field.
|
KeyGenerator |
getKeyGenerator() |
Get key generator for this field.
|
java.lang.Integer |
getLength() |
Get length parameter from mapping of sql field.
|
java.lang.Integer |
getPrecision() |
Get precision parameter from mapping of sql field.
|
Table |
getTable() |
Get table which contains this field.
|
TypeInfo |
getType() |
Get type information of this field.
|
int |
hashCode() |
|
boolean |
isIdentity() |
Get if this field is part of the identity?
|
boolean |
isRequired() |
Get if this field is a required one?
|
void |
merge(Field field) |
Check if given field can be merged with this one.
|
void |
setIdentity(boolean isIdentity) |
Set if this field is part of the identity?
|
void |
setKeyGenerator(KeyGenerator keyGenerator) |
Set key generator for this field.
|
void |
setRequired(boolean isRequired) |
Set if this field is a required one?
|
void |
setTable(Table table) |
Set table which contains this field.
|
void |
setType(TypeInfo type) |
Set type information of this field.
|
void |
toDropDDL(DDLWriter writer) |
Build drop script for the schema object.
|
equals, getConfiguration, getName, setConfiguration, setName
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
toCreateDDL
public final void setKeyGenerator(KeyGenerator keyGenerator)
null
if the field has no key
generator.keyGenerator
- Key generator for this field.public final KeyGenerator getKeyGenerator()
public final void setIdentity(boolean isIdentity)
isIdentity
- true
if the field is part of the identity,
true
otherwise.public final boolean isIdentity()
true
if the field is part of the identity,
true
otherwise.public final void setRequired(boolean isRequired)
isRequired
- true
if the field is required, true
otherwise.public final boolean isRequired()
true
if the field is required, true
otherwise.public final void setType(TypeInfo type)
type
- Type information of this field.public final TypeInfo getType()
public final void setTable(Table table)
table
- Table which contains this field.public final Table getTable()
public final java.lang.Integer getLength()
null
as it is not supported yet.public final java.lang.Integer getPrecision()
null
as it is not supported yet.public final java.lang.Integer getDecimals()
null
as it is not supported yet.public final void toDropDDL(DDLWriter writer)
writer
- DDLWriter to write schema objects to.public final void merge(Field field) throws GeneratorException
field
- Field to check if it is able to be merged.GeneratorException
- If fields cannot be merged.public final boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com