|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface MappedEntry
used for DBEntry classes that can be automatically mapped using annotations.
Note that a class annotated with MappedEntry must have a constructor that takes an object that serves as the id
(that constructor need not to be public)!
Alternatively, there can be a constructor with a single parameter where the type is not Object but identical to
the mapped type from the database.
MappedEntryMapper,
MappedColumn| Optional Element Summary | |
|---|---|
String |
displayColumn
(optional) specifies the name for the display column used for Stub objects (defaults to an empty string, meaning the id column is used) |
String |
idColumn
(optional) specifies the ID column of the table; defaults to "id" |
String |
query
(optional) specifies an SQL-query to select the data (defaults to an empty string, meaning no query is used) |
String |
table
(optional) denotes the name of the table (defaults to an empty string, which is interpreted as the simple name of the class) |
public abstract String table
MappedEntryMapper.getTableName(Class)public abstract String idColumn
public abstract String query
public abstract String displayColumn
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||