org.melati.example.odmg.generated
Class ChildTableBase

Package class diagram package ChildTableBase
java.lang.Object
  extended by org.melati.poem.JdbcTable
      extended by org.melati.example.odmg.OdmgTable
          extended by org.melati.example.odmg.generated.ChildTableBase
All Implemented Interfaces:
Selectable, Table
Direct Known Subclasses:
ChildTable

public class ChildTableBase
extends OdmgTable

Melati POEM generated base class for Table Child.

See Also:
TableDef.generateTableBaseJava(java.io.Writer)

Constructor Summary
ChildTableBase(Database database, String name, DefinitionSource definitionSource)
          Constructor.
 
Method Summary
protected  JdbcPersistent _newPersistent()
          A freshly minted, and uninitialised, Persistent object for the table.
protected  int defaultDisplayOrder()
           
 Child getChildObject(int troid)
          Retrieve the Child as a Child.
 Child getChildObject(Integer troid)
          Retrieve the Child as a Child.
 Column getIdColumn()
          Retrieves the Id Column for this Child Table.
 Column getNameColumn()
          Retrieves the Name Column for this Child Table.
 OdmgDatabaseTables getOdmgDatabaseTables()
          Get the database tables.
 Column getParentColumn()
          Retrieves the Parent Column for this Child Table.
 void init()
          Override this to perform pre-unification initialisation.
 
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, defaultCategory, defaultDescription, defaultDisplayName, 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, postInitialise, 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

ChildTableBase

public ChildTableBase(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
See Also:
TableDef.generateTableBaseJava(java.io.Writer)
Method Detail

getOdmgDatabaseTables

public OdmgDatabaseTables getOdmgDatabaseTables()
Get the database tables.

Returns:
the database tables
See Also:
TableDef.generateTableBaseJava(java.io.Writer)

init

public void init()
          throws PoemException
Description copied from class: JdbcTable
Override this to perform pre-unification initialisation.

Specified by:
init in interface Table
Overrides:
init in class JdbcTable
Throws:
PoemException

getIdColumn

public final Column getIdColumn()
Retrieves the Id Column for this Child Table.

Returns:
the id Column
See Also:
FieldDef.generateColAccessor(java.io.Writer)

getNameColumn

public final Column getNameColumn()
Retrieves the Name Column for this Child Table.

Returns:
the name Column
See Also:
FieldDef.generateColAccessor(java.io.Writer)

getParentColumn

public final Column getParentColumn()
Retrieves the Parent Column for this Child Table.

Returns:
the parent Column
See Also:
FieldDef.generateColAccessor(java.io.Writer)

getChildObject

public Child getChildObject(Integer troid)
Retrieve the Child as a Child.

Parameters:
troid - a Table Row Oject ID
Returns:
the Persistent identified by the troid
See Also:
TableDef.generateTableBaseJava(java.io.Writer)

getChildObject

public Child getChildObject(int troid)
Retrieve the Child as a Child.

Parameters:
troid - a Table Row Object ID
Returns:
the Persistent identified
See Also:
TableDef.generateTableBaseJava(java.io.Writer)

_newPersistent

protected JdbcPersistent _newPersistent()
Description copied from class: JdbcTable
A freshly minted, and uninitialised, Persistent object for the table. You don't ever have to call this and there is no point in doing so This method is overridden in application-specialised Table subclasses derived from the Data Structure Definition.

Overrides:
_newPersistent in class JdbcTable

defaultDisplayOrder

protected int defaultDisplayOrder()
Overrides:
defaultDisplayOrder in class JdbcTable


Copyright © 2000-2010 PanEris. All Rights Reserved.