org.melati.poem
Class TableCategoryTable

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

public class TableCategoryTable
extends TableCategoryTableBase

A Table which holds TableCategorys. Melati POEM generated, programmer modifiable stub for a TableCategoryTable object.

Description: A category under which a table can be classified.

Field summary for SQL table TableCategory
NameTypeDescription
id Integer The Table Row Object ID
name String A human-readable name for the category

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

Field Summary
static TableCategory NORMAL
          The category for ordinary data tables.
static String normalTableCategoryName
          Category name for normal tables.
 
Constructor Summary
TableCategoryTable(Database database, String name, DefinitionSource definitionSource)
          Constructor.
 
Method Summary
 TableCategory ensure(String name)
          Create an entry with the given name if it doesn't exist.
 void postInitialise()
          Setup default access capabilities and ensure that the Normal category exists.
 
Methods inherited from class org.melati.poem.generated.TableCategoryTableBase
_newPersistent, defaultCacheLimit, defaultCategory, defaultDescription, defaultDisplayName, defaultDisplayOrder, defaultRememberAllTroids, getIdColumn, getNameColumn, getPoemDatabaseTables, getTableCategoryObject, getTableCategoryObject, 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, defaultOrderByClause, 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
 

Field Detail

normalTableCategoryName

public static final String normalTableCategoryName
Category name for normal tables.

See Also:
Constant Field Values

NORMAL

public static TableCategory NORMAL
The category for ordinary data tables.

Constructor Detail

TableCategoryTable

public TableCategoryTable(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

ensure

public TableCategory ensure(String name)
Create an entry with the given name if it doesn't exist.

Parameters:
name - the name of the Category
Returns:
the existing or newly created TableCategory

postInitialise

public void postInitialise()
Setup default access capabilities and ensure that the Normal category exists.

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


Copyright © 2000-2010 PanEris. All Rights Reserved.