|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.j256.ormlite.table.TableInfo<T>
public class TableInfo<T>
Information about a database table including the associated tableName, class, constructor, and the included fields.
| Constructor Summary | |
|---|---|
TableInfo(DatabaseType databaseType,
Class<T> dataClass)
Creates a holder of information about a table/class. |
|
TableInfo(DatabaseType databaseType,
DatabaseTableConfig<T> tableConfig)
Creates a holder of information about a table/class. |
|
| Method Summary | |
|---|---|
T |
createObject()
Create and return an object of this type using our reflection constructor. |
Class<T> |
getDataClass()
Return the class associated with this object-info. |
FieldType[] |
getFieldTypes()
Return the array of field types associated with the object. |
FieldType |
getIdField()
Return the id-field associated with the object. |
String |
getTableName()
Return the name of the table associated with the object. |
FieldType |
nameToFieldType(String columnName)
Return the FieldType associated with the columnName. |
String |
objectToString(T object)
Return a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableInfo(DatabaseType databaseType,
Class<T> dataClass)
throws SQLException
databaseType - Database type we are storing the class in.dataClass - Class that we are holding information about.
SQLException
public TableInfo(DatabaseType databaseType,
DatabaseTableConfig<T> tableConfig)
throws SQLException
databaseType - Database type we are storing the class in.tableConfig - Configuration for our table.
SQLException| Method Detail |
|---|
public Class<T> getDataClass()
public String getTableName()
public FieldType[] getFieldTypes()
public FieldType nameToFieldType(String columnName)
FieldType associated with the columnName.
public FieldType getIdField()
public String objectToString(T object)
public T createObject()
throws SQLException
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||