org.melati.example.contacts
Class ContactTable

Package class diagram package ContactTable
java.lang.Object
  extended by org.melati.poem.JdbcTable
      extended by org.melati.example.contacts.ContactsTable
          extended by org.melati.example.contacts.generated.ContactTableBase
              extended by org.melati.example.contacts.ContactTable
All Implemented Interfaces:
Selectable, Table

public class ContactTable
extends ContactTableBase

Melati POEM generated, programmer modifiable stub for a ContactTable object.

Description: A Contact.

Field summary for SQL table Contact
NameTypeDescription
id Integer  
name String Contact Name
owner Contact Contact who owns this contact
address String Contact Address
updates Integer How many times has this record been updated?
lastupdated Date When was this last updated?
lastupdateuser User Who last updated this?

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

Constructor Summary
ContactTable(Database database, String name, DefinitionSource definitionSource)
          Constructor.
 
Method Summary
 Contact ensure(String name, Contact owner, String address)
           
 
Methods inherited from class org.melati.example.contacts.generated.ContactTableBase
_newPersistent, defaultCategory, defaultDescription, defaultDisplayOrder, getAddressColumn, getContactObject, getContactObject, getContactsDatabaseTables, getIdColumn, getLastupdatedColumn, getLastupdateuserColumn, getNameColumn, getOwnerColumn, getUpdatesColumn, 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, 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

ContactTable

public ContactTable(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 Contact ensure(String name,
                      Contact owner,
                      String address)
Returns:
the existing or newly created Contact


Copyright © 2000-2010 PanEris. All Rights Reserved.