|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.JdbcTable org.melati.poem.PoemTable org.melati.poem.generated.TableInfoTableBase org.melati.poem.TableInfoTable
public class TableInfoTable
A Table
which holds information about all Table
s in
the Database.
If a database does not contain a table called tableinfo
it will be created during the unification phase of startup.
see Database#unifyWithDB
Note that when overriding you need to override defaultTableInfoFor.
Melati POEM generated, programmer modifiable stub
for a TableInfoTable
object.
Description: Configuration information about a table in the database.
Field summary for SQL table TableInfo
| ||
---|---|---|
Name | Type | Description |
id | Integer | The Table Row Object ID |
name | String | A code-name for the table |
displayname | String | A user-friendly name for the table |
description | String | A brief description of the table's function |
displayorder | Integer | A rank determining where the table appears in the list of all tables |
defaultcanread | Capability | The capability required, by default, for reading the table's records |
defaultcanwrite | Capability | The capability required, by default, for updating the table's records |
defaultcandelete | Capability | The capability required, by default, for deleting the table's records |
cancreate | Capability | The capability required, by default, for creating records in the table |
cachelimit | Integer | The maximum number of records from the table to keep in the cache |
seqcached | Boolean | Whether the display sequence for the table's records is cached |
category | TableCategory | Which category the table falls into |
Constructor Summary | |
---|---|
TableInfoTable(Database database,
String name,
DefinitionSource definitionSource)
Constructor. |
Method Summary | |
---|---|
protected TableInfo |
defaultTableInfoFor(Table table)
Create a TableInfo of the correct type for our DB. |
Methods inherited from class org.melati.poem.PoemTable |
---|
postInitialise |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableInfoTable(Database database, String name, DefinitionSource definitionSource) throws PoemException
database
- the POEM database we are usingname
- the name of this Table
definitionSource
- which definition is being used
PoemException
- if anything goes wrongMethod Detail |
---|
protected TableInfo defaultTableInfoFor(Table table)
TableInfo
of the correct type for our DB.
NOTE you should override this if you extend TableInfo in your own db.
table
- the Table to get metadata from.
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |