|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.JdbcTable org.paneris.melati.site.model.SiteTable org.paneris.melati.site.model.generated.PageTableBase org.paneris.melati.site.model.PageTable
public class PageTable
Melati POEM generated, programmer modifiable stub
for a PageTable
object.
Description: A Page.
Field summary for SQL table Page
| ||
---|---|---|
Name | Type | Description |
id | Integer | |
name | String | A file system name, no spaces or special characters |
displayname | String | The full name used in the TITLE. |
displayorder | Integer | A rank determining where the page appears in a list |
deleted | Boolean | Whether or not to include this Unit |
lastencached | Timestamp | When the unit was encached; cleared when the unit is updated |
parent | Page | The organisation to which this is affiliated, if any. |
template | Template | The name of the layout for this page |
style | Style | The name of the CSS class for this page |
messageboard | Board | A messageboard on which this unit can be discussed |
Constructor Summary | |
---|---|
PageTable(org.melati.poem.Database database,
java.lang.String name,
org.melati.poem.DefinitionSource definitionSource)
Constructor. |
Method Summary | |
---|---|
static java.lang.String |
deSpace(java.lang.String s)
Remove spaces from a string. |
Page |
ensure(java.lang.String displayName)
|
Page |
ensure(java.lang.String displayName,
Page parent)
|
Page |
ensure(java.lang.String displayName,
Page parent,
java.lang.String divSubject,
java.lang.String divContent)
|
Page |
ensure(java.lang.String displayName,
Template template)
|
Page |
ensurePage(java.lang.String displayName)
Create or retrieve existing page by name. |
Methods inherited from class org.paneris.melati.site.model.generated.PageTableBase |
---|
_newPersistent, defaultCategory, defaultDescription, defaultDisplayOrder, defaultRememberAllTroids, getDeletedColumn, getDisplayColumn, getDisplaynameColumn, getDisplayorderColumn, getIdColumn, getLastencachedColumn, getNameColumn, getPageObject, getPageObject, getParentColumn, getSiteDatabaseTables, getStyleColumn, getTemplateColumn, 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, 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 |
---|
public PageTable(org.melati.poem.Database database, java.lang.String name, org.melati.poem.DefinitionSource definitionSource) throws org.melati.poem.PoemException
database
- the POEM database we are usingname
- the name of this Table
definitionSource
- which definition is being used
org.melati.poem.PoemException
- if anything goes wrongMethod Detail |
---|
public Page ensurePage(java.lang.String displayName)
public Page ensure(java.lang.String displayName)
displayName
- long name of page
public Page ensure(java.lang.String displayName, Template template)
displayName
- long name of pagetemplate
- special template
public Page ensure(java.lang.String displayName, Page parent)
displayName
- long name of pageparent
- the page's parent
public Page ensure(java.lang.String displayName, Page parent, java.lang.String divSubject, java.lang.String divContent)
displayName
- long name of pageparent
- the page's parentdivSubject
- name of Div to createdivContent
- Div content
public static java.lang.String deSpace(java.lang.String s)
s
- the string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |