org.melati.poem
Class GroupCapabilityTable

Package class diagram package GroupCapabilityTable
java.lang.Object
  extended by org.melati.poem.JdbcTable
      extended by org.melati.poem.PoemTable
          extended by org.melati.poem.generated.GroupCapabilityTableBase
              extended by org.melati.poem.GroupCapabilityTable
All Implemented Interfaces:
Selectable, Table

public class GroupCapabilityTable
extends GroupCapabilityTableBase

The Table of GroupCapabilitys. Every Melati DB has this table. This table will contain at least the tuple Melati database administrators:_administer_. Melati POEM generated, programmer modifiable stub for a GroupCapabilityTable object.

Description: A record that users belonging to a given group possess a given capability.

Field summary for SQL table GroupCapability
NameTypeDescription
id Integer The Table Row Object ID
group Group The user-group which has the capability
capability Capability The capability

Generator
org.melati.poem.prepro.TableDef#generateTableMainJava

Constructor Summary
GroupCapabilityTable(Database database, String name, DefinitionSource definitionSource)
          Constructor.
 
Method Summary
 GroupCapability ensure(Group group, Capability capability)
          Make sure that a record exists.
 void postInitialise()
          Apply default protection to this table if it has not already been protected.
 
Methods inherited from class org.melati.poem.generated.GroupCapabilityTableBase
_newPersistent, defaultCategory, defaultDescription, defaultDisplayName, defaultDisplayOrder, getCapabilityColumn, getGroupCapabilityObject, getGroupCapabilityObject, getGroupColumn, getIdColumn, getPoemDatabaseTables, init
 
Methods inherited from class org.melati.poem.JdbcTable
_getColumn, addColumnAndCommit, addListener, appendWhereClause, 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, defaultOrderByClause, defaultRememberAllTroids, defineColumn, delete_unsafe, delete, deleteColumnAndCommit, deletedColumn, displayColumn, displayColumns, displayColumnsCount, dump, dump, dumpCacheAnalysis, equals, exists, exists, extrasCount, firstSelection, getCacheInfo, getCanCreate, getCategory, getColumn, getColumnsCount, getDatabase, getDbmsTableType, getDefaultCanDelete, getDefaultCanRead, getDefaultCanWrite, getDescription, getDetailDisplayColumns, getDetailDisplayColumnsCount, getDisplayName, getDsdName, getInfo, getMostRecentTroid, getName, getNextExtrasIndex, getObject, getObject, getRecordDisplayColumns, getRecordDisplayColumnsCount, getSearchCriterionColumns, getSearchCriterionColumnsCount, getSummaryDisplayColumns, getSummaryDisplayColumnsCount, getTableInfo, hashCode, invalidateTransactionStuffs, load, 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, unifyWithDB, whereClause, whereClause, writeDown
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupCapabilityTable

public GroupCapabilityTable(Database database,
                            String name,
                            DefinitionSource definitionSource)
                     throws PoemException
Constructor.

Parameters:
database - the POEM database we are using
name - the name of this Table
definitionSource - which definition is being used
Throws:
PoemException - if anything goes wrong
Generator
org.melati.poem.prepro.TableDef#generateTableMainJava
Method Detail

postInitialise

public void postInitialise()
Description copied from class: PoemTable
Apply default protection to this table if it has not already been protected.

Specified by:
postInitialise in interface Table
Overrides:
postInitialise in class PoemTable
See Also:
JdbcTable.notifyColumnInfo(ColumnInfo), JdbcTable.clearColumnInfoCaches()

ensure

public GroupCapability ensure(Group group,
                              Capability capability)
Make sure that a record exists.

Returns:
the existing or newly created GroupCapability


Copyright © 2000-2010 PanEris. All Rights Reserved.