org.paneris.rimauresq.model
Class UserTable

java.lang.Object
  extended by org.melati.poem.JdbcTable
      extended by org.melati.poem.PoemTable
          extended by org.melati.poem.generated.UserTableBase
              extended by org.melati.poem.UserTable
                  extended by org.paneris.rimauresq.model.generated.UserTableBase
                      extended by org.paneris.rimauresq.model.UserTable
All Implemented Interfaces:
org.melati.poem.Selectable, org.melati.poem.Table

public class UserTable
extends UserTableBase

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

Description: A WVM User.

Field summary for SQL table User
NameTypeDescription
email String The user's email address
title String User's title or role
address String  
town String  
postcode String Order postcode
country String  
tel String User's telephone number
fax String User's fax number
mobile String User's mobile number
news Boolean Does the user want to receive the email newsletter?


Field Summary
 
Fields inherited from class org.melati.poem.UserTable
administratorUser, guestUser
 
Constructor Summary
UserTable(org.melati.poem.Database database, java.lang.String name, org.melati.poem.DefinitionSource definitionSource)
          Constructor.
 
Method Summary
protected  org.melati.poem.JdbcPersistent _newPersistent()
           
 void create(org.melati.poem.Persistent persistent)
           
 User ensure(java.lang.String name, java.lang.String title, java.lang.String tel, java.lang.String email)
           
 void init()
           
 void postInitialise()
           
 
Methods inherited from class org.paneris.rimauresq.model.generated.UserTableBase
defaultCategory, defaultDescription, defaultDisplayOrder, getAddressColumn, getCountryColumn, getEmailColumn, getFaxColumn, getMobileColumn, getNewsColumn, getPostcodeColumn, getRimauresqDatabaseTables, getTelColumn, getTitleColumn, getTownColumn, getUserObject, getUserObject
 
Methods inherited from class org.melati.poem.UserTable
administratorUser, canReadPasswords, canWritePasswords, guestUser, unifyWithDB
 
Methods inherited from class org.melati.poem.generated.UserTableBase
defaultRememberAllTroids, getIdColumn, getLoginColumn, getNameColumn, getPasswordColumn, getPoemDatabaseTables
 
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, 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, 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, whereClause, whereClause, writeDown
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserTable

public UserTable(org.melati.poem.Database database,
                 java.lang.String name,
                 org.melati.poem.DefinitionSource definitionSource)
          throws org.melati.poem.PoemException
Constructor.

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

init

public void init()
          throws org.melati.poem.PoemException
Specified by:
init in interface org.melati.poem.Table
Overrides:
init in class UserTableBase
Throws:
org.melati.poem.PoemException

postInitialise

public void postInitialise()
Specified by:
postInitialise in interface org.melati.poem.Table
Overrides:
postInitialise in class org.melati.poem.UserTable

ensure

public User ensure(java.lang.String name,
                   java.lang.String title,
                   java.lang.String tel,
                   java.lang.String email)
Returns:
the existing or newly minted user

_newPersistent

protected org.melati.poem.JdbcPersistent _newPersistent()
Overrides:
_newPersistent in class UserTableBase

create

public void create(org.melati.poem.Persistent persistent)
            throws org.melati.poem.AccessPoemException,
                   org.melati.poem.ValidationPoemException,
                   org.melati.poem.InitialisationPoemException
Specified by:
create in interface org.melati.poem.Table
Overrides:
create in class org.melati.poem.JdbcTable
Throws:
org.melati.poem.AccessPoemException
org.melati.poem.ValidationPoemException
org.melati.poem.InitialisationPoemException


Copyright © 2000-2009 PanEris. All Rights Reserved.