public class UserTable<T extends User> extends UserTableBase<T>
Table of registered Users.
Every Melati DB has this table.
This table will contain at least a _guest_
and _administrator_ User.
Melati POEM generated, programmer modifiable stub
for a UserTable object.
Description: A registered user of the database.
| Name | Type | Description |
|---|---|---|
| id | Integer | The Table Row Object ID |
| name | String | The user's real name |
| login | String | The user's login name |
| password | String | The user's password |
| Constructor and Description |
|---|
UserTable(Database database,
String name,
DefinitionSource definitionSource)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
User |
administratorUser() |
Capability |
canReadPasswords()
Defaults to the db's administrator capability.
|
Capability |
canWritePasswords()
Defaults to the db's administraor capability.
|
User |
guestUser() |
void |
postInitialise()
Apply default protection to this table
if it has not already been protected.
|
void |
unifyWithDB(ResultSet colDescs,
String troidColumnName)
Create guestUser and administratorUser.
|
defaultCategory, defaultDescription, defaultDisplayOrder, defaultRememberAllTroids, ensure, getIdColumn, getLoginColumn, getNameColumn, getPasswordColumn, getPoemDatabaseTables, getUserObject, getUserObject, initaddColumnAndCommit, addListener, appendWhereClause, cachedCount, 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, defineColumn, delete_unsafe, delete, deleteColumnAndCommit, deletedColumn, displayColumn, displayColumns, displayColumnsCount, dump, dump, dumpCacheAnalysis, equals, exists, exists, extrasCount, firstSelection, getCacheInfo, getCanCreate, getCategory, getColumn, getColumns, getColumnsCount, getDatabase, getDbmsTableType, getDefaultCanDelete, getDefaultCanRead, getDefaultCanWrite, getDescription, getDetailDisplayColumns, getDetailDisplayColumnsCount, getDisplayName, getInfo, getMostRecentTroid, getName, getNextExtrasIndex, getObject, getObject, getRecordDisplayColumns, getRecordDisplayColumnsCount, getSearchCriterionColumns, getSearchCriterionColumnsCount, getSummaryDisplayColumns, getSummaryDisplayColumnsCount, getTableInfo, hashCode, invalidateTransactionStuffs, load, maybeFirst, 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, unifyWithMetadata, whereClause, whereClause, writeDownpublic UserTable(Database database, String name, DefinitionSource definitionSource) throws PoemException
database - the POEM database we are usingname - the name of this TabledefinitionSource - which definition is being usedPoemException - if anything goes wrongpublic User guestUser()
public User administratorUser()
public Capability canReadPasswords()
public Capability canWritePasswords()
public void unifyWithDB(ResultSet colDescs, String troidColumnName) throws PoemException
TableInfounifyWithDB in interface Table<T extends User>unifyWithDB in class JdbcTable<T extends User>colDescs - a JDBC ResultSet describing the columns with cursor at current rowtroidColumnName - name of primary key columnPoemExceptionTable.unifyWithDB(java.sql.ResultSet, java.lang.String)public void postInitialise()
PoemTablepostInitialise in interface Table<T extends User>postInitialise in class PoemTable<T extends User>JdbcTable.notifyColumnInfo(ColumnInfo),
JdbcTable.clearColumnInfoCaches()Copyright © 2000–2021 PanEris. All rights reserved.