|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.datasource.relational.ColumnModel<T>
public abstract class ColumnModel<T>
ColumnModel describes columns in a relational model. It is used to determine how data fields are transformed into properties, and/or to define fields for use in creating relationships between tables.
| Field Summary | |
|---|---|
protected EntityModel |
entityModel
|
| Constructor Summary | |
|---|---|
ColumnModel(EntityModel model)
|
|
| Method Summary | |
|---|---|
T |
convert(String ob)
Convert an object into an object of the specified type. |
String |
getAlias()
Gets the name of the property that this column will produce, or null, if the name is the same as the colum name. |
EntityModel |
getEntityModel()
|
String |
getName()
Get the name of this ColumnModel. |
Class<T> |
getType()
Get the type of data this ColumnModel represents. |
boolean |
isKey()
Determine if the column represented by this NodeColumnModel is an ID key. |
boolean |
isProperty()
Determine if this column should be used as a property in the datasource. |
void |
setAlias(String alias)
Sets the name of the property that this column will produce. |
void |
setKey(boolean b)
Set whether or not the column represented by this column is an ID key. |
void |
setName(String s)
Set the name of this column |
void |
setProperty(boolean b)
Set whether or not this column should be used as a property in the datasource. |
void |
setType(Class<T> c)
Set the type of data this column represents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EntityModel entityModel
| Constructor Detail |
|---|
public ColumnModel(EntityModel model)
| Method Detail |
|---|
public Class<T> getType()
public void setType(Class<T> c)
c - typepublic String getName()
public void setName(String s)
s - namepublic boolean isProperty()
public void setProperty(boolean b)
b - true if this column represents a propertypublic boolean isKey()
public void setKey(boolean b)
b - true if this column should be an ID keypublic String getAlias()
public void setAlias(String alias)
alias - the name of the property that this column will produce.public EntityModel getEntityModel()
public T convert(String ob)
ob - object to convertc - desired type
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||