public class CapabilityTable<T extends Capability> extends CapabilityTableBase<T>
Table of Capabilitys.
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.
| Name | Type | Description |
|---|---|---|
| id | Integer | The Table Row Object ID |
| name | String | A human-readable name for the capability |
| Constructor and Description |
|---|
CapabilityTable(Database database,
String name,
DefinitionSource definitionSource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Capability |
ensure(String name)
Make sure that a record exists.
|
Capability |
get(String name)
Retrieve a
Capability by name. |
void |
unifyWithDB(ResultSet colDescs,
String troidColumnName)
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. |
defaultCategory, defaultDescription, defaultDisplayOrder, defaultRememberAllTroids, getCapabilityObject, getCapabilityObject, getIdColumn, getNameColumn, getPoemDatabaseTables, initpostInitialiseaddColumnAndCommit, addListener, appendWhereClause, cachedCount, cachedCount, cachedCount, cachedCount, cachedCount, cachedCount, cachedExists, cachedSelection, cachedSelectionField, cachedSelectionType, canDeleteColumn, canReadColumn, canSelectColumn, canWriteColumn, clearColumnInfoCaches, cnfWhereClause, cnfWhereClause, columns, columnWithColumnInfoID, count, count, count, count, countSQL, countSQL, create, create, createTableInfo, dbAddConstraints, dbModifyStructure, defaultCacheLimit, defaultDisplayName, defaultOrderByClause, defineColumn, delete_unsafe, delete, deleteColumnAndCommit, deletedColumn, displayColumn, displayColumns, displayColumnsCount, dump, dump, dumpCacheAnalysis, equals, exists, exists, extrasCount, firstSelection, getCacheInfo, getCanCreate, getCategory, getColumn, getColumns, getColumnsCount, getDatabase, getDbmsTableType, getDefaultCanDelete, getDefaultCanRead, getDefaultCanWrite, getDescription, getDetailDisplayColumns, getDetailDisplayColumnsCount, getDisplayName, getInfo, getMostRecentTroid, getName, getNextExtrasIndex, getObject, getObject, getRecordDisplayColumns, getRecordDisplayColumnsCount, getSearchCriterionColumns, getSearchCriterionColumnsCount, getSummaryDisplayColumns, getSummaryDisplayColumnsCount, getTableInfo, hashCode, invalidateTransactionStuffs, load, maybeFirst, newPersistent, notifyColumnInfo, notifyTouched, primaryCriterionColumn, quotedName, readLock, referencesTo, referencesTo, rememberAllTroids, selection, selection, selection, selection, selection, selection, selectionSQL, serial, setCacheLimit, setDisplayColumn, setSearchColumn, setTableInfo, tableInfoID, toString, trimCache, troidColumn, troidFor, troidSelection, troidSelection, troidSelection, uncache, unifyWithColumnInfo, unifyWithMetadata, whereClause, whereClause, writeDownpublic CapabilityTable(Database database, String name, DefinitionSource definitionSource) throws PoemException
database - the POEM database we are usingname - the name of this TabledefinitionSource - which definition is being usedPoemException - if anything goes wrongpublic void unifyWithDB(ResultSet colDescs, String troidColumnName) 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<T extends Capability>unifyWithDB in class JdbcTable<T extends Capability>colDescs - the Column descriptionstroidColumnName - name of primary key columnPoemExceptionTable.defineColumn(Column)public Capability get(String name)
Capability by name.name - the name of the Capability to returnCapabilitypublic Capability ensure(String name)
ensure in class CapabilityTableBase<T extends Capability>name - the name of the Capability to ensureCapabilityCopyright © 2000–2021 PanEris. All rights reserved.