public class Column extends Object implements IReplicable<Column>, IMergeable<Column>, IResetableExtended
| Constructor and Description |
|---|
Column() |
| Modifier and Type | Method and Description |
|---|---|
Column |
copy()
A clone of the object.
|
String |
getAlias()
Get the table alias.
|
List<String> |
getArguments()
Get the list of arguments.
|
IComparator |
getComparator()
Get the column comparator.
|
IConverter |
getConverter()
Get the column converter.
|
IAbstraction |
getDefaultExpression()
Get the column default value expression.
|
Object |
getDefaultValue()
Get the column default value.
|
IFormatter |
getFormatter()
Get formatter.
|
List<String> |
getFormatterArguments()
Get formatter arguments.
|
String |
getName()
Get the table name.
|
Table |
getParent()
Get the column table.
|
String |
getPointer()
Get the column pointer to a column with the type of this virtual
register.
|
IReader |
getReader()
Get the column reader.
|
String |
getSequence()
Get sequence name, is column is a sequence.
|
String |
getTable()
Get column table reference.
|
String |
getTableOrAlias()
If column has table attribute returns it, otherwise return alias.
|
void |
initialize(IContext context) |
boolean |
isDate()
Get if the column is a date.
|
boolean |
isEnum()
Check if a column is a enumeration.
|
boolean |
isKey()
Get the key information.
|
boolean |
isReference()
Check if a given column values can be used as a reference for foreign
references.
|
boolean |
isSequence()
Check if the column is a sequence.
|
boolean |
isVirtual()
Check if a given column must be resolved using virtual keys produced on
demand by
getGenerateKeys(). |
void |
merge(Column other)
Merge two objects.
|
Column |
setAlias(String alias)
Set the table alias.
|
Column |
setArguments(List<String> arguments)
Set the list of arguments.
|
Column |
setComparator(IComparator comparator)
Set the column comparator.
|
Column |
setConverter(IConverter converter)
Set the column converter.
|
Column |
setDate(boolean date)
Set date flag.
|
Column |
setDefaultExpression(IAbstraction defaultExpression)
Set the column default value expression.
|
Column |
setDefaultValue(Object defaultValue)
Set the column default value.
|
Column |
setFormatter(IFormatter formatter)
The column formatter.
|
Column |
setFormatterArguments(List<String> formatterArguments)
Set column formatter.
|
Column |
setKey(boolean key)
Set the key flag.
|
Column |
setName(String name)
Set the table name.
|
Column |
setParent(Table parent)
Set the table.
|
Column |
setPointer(String pointer)
Set the pointer reference.
|
Column |
setReader(IReader reader)
Set the column reader.
|
Column |
setReference(boolean reference)
The reference flag.
|
Column |
setSequence(String sequence)
Set sequence name.
|
Column |
setTable(String table)
Set table property.
|
Column |
setVirtual(boolean virtual)
Set virtual flag.
|
public Table getParent()
public Column setParent(Table parent)
parent - The table.public String getAlias()
public Column setAlias(String alias)
alias - The alias.public String getName()
public Column setName(String name)
name - The name.public String getTable()
public Column setTable(String table)
table - A table name.public String getTableOrAlias()
public boolean isKey()
public Column setKey(boolean key)
key - The value.public String getSequence()
public Column setSequence(String sequence)
sequence - The sequence.public boolean isSequence()
public boolean isDate()
public Column setDate(boolean date)
date - The flag.public IReader getReader()
public Column setReader(IReader reader)
reader - The reader.public IConverter getConverter()
public Column setConverter(IConverter converter)
converter - The converter.public Column setArguments(List<String> arguments)
arguments - List of arguments.public boolean isEnum()
public IComparator getComparator()
public Column setComparator(IComparator comparator)
comparator - The comparator.public IFormatter getFormatter()
public Column setFormatter(IFormatter formatter)
formatter - A formatter.public List<String> getFormatterArguments()
public Column setFormatterArguments(List<String> formatterArguments)
formatterArguments - Formatter arguments.public IAbstraction getDefaultExpression()
public Column setDefaultExpression(IAbstraction defaultExpression)
defaultExpression - The expression.public Object getDefaultValue()
public Column setDefaultValue(Object defaultValue)
defaultValue - The value.public boolean isReference()
public Column setReference(boolean reference)
reference - The flag.public boolean isVirtual()
getGenerateKeys(). When this flag is on, in the
specification there must be a previous table with naming matching this
column name and the value must match that column reference field.public Column setVirtual(boolean virtual)
virtual - The virtual flag.public String getPointer()
public Column setPointer(String pointer)
pointer - A pointer.public Column copy()
IReplicablecopy in interface IReplicable<Column>public void merge(Column other)
IMergeablemerge in interface IMergeable<Column>other - The object to be merged.public void initialize(IContext context)
initialize in interface IResetableExtendedCopyright © 2017. All rights reserved.