|
||||||||||
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.ValueInfoBase org.melati.poem.ValueInfo org.melati.poem.generated.ColumnInfoBase org.melati.poem.ColumnInfo
public class ColumnInfo
All the data defining a Column
; actually a Persistent
from the ColumnInfoTable
.
Melati POEM generated, programmer modifiable stub
for a Persistent
ColumnInfo
object.
Description: Configuration information about a column in the database.
Field summary for SQL table ColumnInfo
| ||
---|---|---|
Name | Type | Description |
id | Integer | |
tableinfo | TableInfo | The table to which the field belongs |
name | String | A code-name for the field |
displayorder | Integer | A rank determining where the field appears in lists |
usercreateable | Boolean | Whether it makes sense for the user to initialise the field's value |
displaylevel | DisplayLevel | A category determining what granularity of report the field appears in |
searchability | Searchability | A category determining what level of searching this field supports |
displayorderpriority | Integer | If present, the level at which lists of records are sorted by the field |
sortdescending | Boolean | Whether when sorting by this column, the sort order should be reversed |
indexed | Boolean | Whether the field is indexed (ignored if the field is marked `unique') |
unique | Boolean | Whether the field is unique (implies that it's `indexed') |
integrityfix | StandardIntegrityFix | How referential integrity is maintained, what to do when the object referred to is deleted |
Field Summary |
---|
Fields inherited from class org.melati.poem.generated.ColumnInfoBase |
---|
displaylevel, displayorder, displayorderpriority, id, indexed, integrityfix, name, searchability, sortdescending, tableinfo, unique, usercreateable |
Fields inherited from class org.melati.poem.generated.ValueInfoBase |
---|
description, displayname, height, nullable, precision, rangelimit_string, rangelow_string, renderinfo, scale, size, typefactory, usereditable, width |
Fields inherited from class org.melati.poem.transaction.Transactioned |
---|
valid |
Constructor Summary | |
---|---|
ColumnInfo()
|
Method Summary | |
---|---|
void |
assertCanRead(AccessToken token)
Allow reading by not throwing an exception. |
Enumeration |
getDsdQualifiers()
Only those fields which are relevant to this column and legal as a field qualifier in the DSD. |
void |
setDisplaylevelIndex(Integer index)
Set the DisplaylevelIndex value. |
void |
setName(String name)
Set the name if it is not set. |
void |
setTableinfoTroid(Integer raw)
Set the TableInfo reference. |
Methods inherited from class org.melati.poem.ValueInfo |
---|
fieldAttributesRenamedAs, getRangelimit_stringField, getRangelow_stringField, getType, setRangelimit_string, setRangelow_string, toTypeParameter |
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 ColumnInfo()
Method Detail |
---|
public void assertCanRead(AccessToken token)
Although this check can in theory be quite time-consuming, in practice this isn't a problem, because the most recent access token for which the check succeeded is cached; repeat accesses from within the same transaction are therefore quick.
Application programmers can override this method to implement their own programmatic access policies. For instance, POEM's own TableInfo class overrides it with an empty method in order to disable all read protection on TableInfo objects. More interestingly, you could implement a check that depends on the values of the object's fields: for example, you could allow read access to an invoice record to its issuing and receiving parties.
assertCanRead
in interface Persistent
assertCanRead
in class JdbcPersistent
token
- the access token on the basis of which readability is
being claimedPersistent.assertCanRead(org.melati.poem.AccessToken)
public void setName(String name)
setName
in class ColumnInfoBase
name
- the name to setpublic void setTableinfoTroid(Integer raw) throws AccessPoemException
setTableinfoTroid
in class ColumnInfoBase
raw
- the troid value to set
AccessPoemException
- if the current AccessToken
does not confer write access rightspublic void setDisplaylevelIndex(Integer index)
setDisplaylevelIndex
in class ColumnInfoBase
index
- the DisplaylevelIndex value to setpublic Enumeration getDsdQualifiers()
Field
s
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |