|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.transaction.Transactioned org.melati.poem.JdbcPersistent org.melati.poem.generated.TableInfoBase org.melati.poem.TableInfo
public class TableInfo
All the data defining a Table
; actually a Persistent
from the TableInfoTable
.
Melati POEM generated, programmer modifiable stub
for a Persistent
TableInfo
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 |
Field Summary |
---|
Fields inherited from class org.melati.poem.generated.TableInfoBase |
---|
cachelimit, cancreate, category, defaultcandelete, defaultcanread, defaultcanwrite, description, displayname, displayorder, id, name, seqcached |
Fields inherited from class org.melati.poem.transaction.Transactioned |
---|
valid |
Constructor Summary | |
---|---|
TableInfo()
Constructor for a Persistent TableInfo object. |
|
TableInfo(JdbcTable table)
Constructor creates a TableInfo from a Table . |
Method Summary | |
---|---|
Table |
actualTable()
Get the Table this is about. |
void |
assertCanRead(AccessToken token)
Allow this object to be read by anyone. |
void |
setCachelimit(Integer limit)
Set here and in table we represent. |
void |
setName(String name)
Overridden to disallow table renaming. |
void |
setSeqcached(Boolean b)
Set here and in table we represent. |
Methods inherited from class org.melati.poem.transaction.Transactioned |
---|
markValid, reset, setTransactionPool, transactionPool, unSee |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableInfo()
Persistent
TableInfo
object.
Description: Configuration information about a table in the database.
public TableInfo(JdbcTable table)
TableInfo
from a Table
.
Note This must be overridden if you extend TableInfo in your DSD.
table
- from which to get metadataMethod Detail |
---|
public Table actualTable()
Table
this is about.
public void assertCanRead(AccessToken token)
assertCanRead
in interface Persistent
assertCanRead
in class JdbcPersistent
token
- any AccessToken
Persistent.assertCanRead(org.melati.poem.AccessToken)
public void setName(String name)
setName
in class TableInfoBase
name
- a validated int
TableInfoBase.setName(java.lang.String)
public void setSeqcached(Boolean b) throws AccessPoemException
setSeqcached
in class TableInfoBase
b
- a validated int
AccessPoemException
- if the current AccessToken
does not confer write access rightsTableInfoBase.setSeqcached(java.lang.Boolean)
public void setCachelimit(Integer limit) throws AccessPoemException
setCachelimit
in class TableInfoBase
limit
- a validated int
AccessPoemException
- if the current AccessToken
does not confer write access rightsTableInfoBase.setCachelimit(java.lang.Integer)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |