|
||||||||||
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.CapabilityTableBase org.melati.poem.CapabilityTable
public class CapabilityTable
The Table
of Capability
s.
Every Melati DB has this table.
This table will contain at least _administer_
.
Melati POEM generated, programmer modifiable stub
for a CapabilityTable
object.
Description: A capability which users can be required to possess before accessing data.
Field summary for SQL table Capability
| ||
---|---|---|
Name | Type | Description |
id | Integer | The Table Row Object ID |
name | String | A human-readable name for the capability |
Constructor Summary | |
---|---|
CapabilityTable(Database database,
String name,
DefinitionSource definitionSource)
Constructor. |
Method Summary | |
---|---|
Capability |
ensure(String name)
Make sure that a record exists. |
Capability |
get(String name)
Retrieve a Capability by name. |
void |
unifyWithDB(ResultSet colDescs)
Ensure that the _administer_ Capability
exists and apply it to this table, also create canRead,
canWrite, candelete and canSelect
as they are referrred to in column definition. |
Methods inherited from class org.melati.poem.generated.CapabilityTableBase |
---|
_newPersistent, defaultCategory, defaultDescription, defaultDisplayOrder, defaultRememberAllTroids, getCapabilityObject, getCapabilityObject, getIdColumn, getNameColumn, getPoemDatabaseTables, init |
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 CapabilityTable(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 |
---|
public void unifyWithDB(ResultSet colDescs) throws PoemException
Capability
exists and apply it to this table, also create canRead,
canWrite, candelete and canSelect
as they are referrred to in column definition.
unifyWithDB
in interface Table
unifyWithDB
in class JdbcTable
colDescs
- the Column
descriptions
PoemException
org.melati.poem.Table#defineColumn(Column, boolean)
public Capability get(String name)
Capability
by name.
name
- the name of the Capability
to return
Capability
public Capability ensure(String name)
name
- the name of the Capability
to ensure
Capability
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |