|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MappingInfo
provides basic information about the mapping of a class
BaseRowMapper,
JDBCRowStore,
Database.queryStoreForInterface(Class, Class),
DefaultMappingInfo,
ForeignKeyMappingInfo| Method Summary | |
|---|---|
String[] |
getColumnNames()
returns all the columns that are retrieved by the mapper when querying the database); the column names for the ID column and display column are included in the returned array. |
String[] |
getColumnsForTopic(Object topic)
allows to determine whether there are any columns that are applicable for the given topic |
int |
getColumnSize(String column)
allows to determine the size of the given column name. |
String |
getDisplayColumn()
for use in stubs (in case a single column is used as a display value) |
String |
getDisplayNameForColumn(String column)
returns a name suitable for display in a GUI if different from the column name used in the database |
String |
getIDColumn()
specifies the column where the ID of the entry is mapped to |
String |
getMappingForTopic(Object topic)
allows to determine whether a specific given topic maps to a distinct table, query or column name. |
int |
getSQLTypeforColumn(String column)
allows to determine the SQL-type for a given column name |
String |
getTableName()
provides the name of the table that stores the data for the store |
String |
getTableQuery()
if querying involves something different than just selecting all columns of the table, this method returns the string used to replace the table name in a query. |
| Method Detail |
|---|
String getTableName()
getTableQuery()String getTableQuery()
getTableName() is used in all cases.
If non-null, this variable would have a value like '(select a.field1, b.* from a, b where a.id=b.id) as t1'.
getTableName()String getIDColumn()
String getDisplayColumn()
String getMappingForTopic(Object topic)
String[] getColumnsForTopic(Object topic)
String[] getColumnNames()
getTableName(),
getTableQuery(),
getIDColumn(),
getDisplayColumn()String getDisplayNameForColumn(String column)
int getSQLTypeforColumn(String column)
throws IllegalArgumentException
IllegalArgumentException - if the given column is not knownTypes
int getColumnSize(String column)
throws IllegalArgumentException
IllegalArgumentException - if the given column is not known
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||