public class ColumnWrapperImpl extends Object implements ColumnWrapper
| Constructor and Description |
|---|
ColumnWrapperImpl(MetaColumn column,
Key key) |
ColumnWrapperImpl(MetaColumn column,
String tableAlias) |
ColumnWrapperImpl(MetaColumn column,
String tableAlias,
Key key)
Basic constructor
|
| Modifier and Type | Method and Description |
|---|---|
TableWrapper |
buildTableWrapper()
Build new table wrapper
|
boolean |
equals(Object relation)
Two models are the same if its key names have
the same for the same domain type
with the same table alias.
|
Key |
getKey()
Returns an original Key
|
MetaColumn |
getModel()
Returns an original column model
|
String |
getName()
Returns an original colum name
|
String |
getTableAlias()
Returns always the NonNull alias of the related database table
|
int |
hashCode()
The hashCode form the Key name
|
boolean |
isCompositeKey()
Is it a composite Key?
|
String |
toString()
Returns the Key
|
public ColumnWrapperImpl(MetaColumn column, String tableAlias)
public ColumnWrapperImpl(MetaColumn column, Key key)
public ColumnWrapperImpl(MetaColumn column, String tableAlias, Key key)
column - Required columntableAlias - Optional tablekey - Optional Keypublic MetaColumn getModel()
getModel in interface ColumnWrapperpublic String getName()
getName in interface ColumnWrapperpublic String getTableAlias()
getTableAlias in interface ColumnWrapperpublic TableWrapper buildTableWrapper()
public Key getKey()
getKey in interface ColumnWrapperpublic boolean isCompositeKey()
isCompositeKey in interface ColumnWrapperpublic boolean equals(Object relation)
equals in interface ColumnWrapperequals in class ObjectCopyright 2013, Pavel Ponec