org.castor.ddlgen.schemaobject
Class Field
- SchemaObject
public abstract class Field
Abstract base class of all field implementations.
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
equals
public final boolean equals(Object other)
getDecimals
public final Integer getDecimals()
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
public final KeyGenerator getKeyGenerator()
Get key generator for this field.
- Key generator for this field.
getLength
public final Integer getLength()
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
public final Integer getPrecision()
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
public final Table getTable()
Get table which contains this field.
- Table which contains this field.
getType
public final TypeInfo getType()
Get type information of this field.
- Type information of this field.
hashCode
public final int hashCode()
isIdentity
public final boolean isIdentity()
Get if this field is part of the identity?
true
if the field is part of the identity,
true
otherwise.
isRequired
public final boolean isRequired()
Get if this field is a required one?
true
if the field is required, true
otherwise.
merge
public final void merge(Field field)
throws GeneratorException
Check if given field can be merged with this one.
field
- Field to check if it is able to be merged.
setIdentity
public final void setIdentity(boolean isIdentity)
Set if this field is part of the identity?
isIdentity
- true
if the field is part of the identity,
true
otherwise.
setKeyGenerator
public final void setKeyGenerator(KeyGenerator keyGenerator)
Set key generator for this field. null
if the field has no key
generator.
keyGenerator
- Key generator for this field.
setRequired
public final void setRequired(boolean isRequired)
Set if this field is a required one?
isRequired
- true
if the field is required, true
otherwise.
setTable
public final void setTable(Table table)
Set table which contains this field.
table
- Table which contains this field.
setType
public final void setType(TypeInfo type)
Set type information of this field.
type
- Type information of this field.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com