org.paneris.melati.site.model
Class PageTable

java.lang.Object
  extended by org.melati.poem.JdbcTable
      extended by org.paneris.melati.site.model.SiteTable
          extended by org.paneris.melati.site.model.generated.PageTableBase
              extended by org.paneris.melati.site.model.PageTable
All Implemented Interfaces:
org.melati.poem.Selectable, org.melati.poem.Table

public class PageTable
extends PageTableBase

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

Description: A Page.

Field summary for SQL table Page
NameTypeDescription
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

PageTable

public PageTable(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

ensurePage

public Page ensurePage(java.lang.String displayName)
Create or retrieve existing page by name.

Returns:
the existing or newly created object

ensure

public Page ensure(java.lang.String displayName)
Parameters:
displayName - long name of page
Returns:
existing or newly minted Page

ensure

public Page ensure(java.lang.String displayName,
                   Template template)
Parameters:
displayName - long name of page
template - special template
Returns:
existing or newly minted Page

ensure

public Page ensure(java.lang.String displayName,
                   Page parent)
Parameters:
displayName - long name of page
parent - the page's parent
Returns:
existing or newly minted Page

ensure

public Page ensure(java.lang.String displayName,
                   Page parent,
                   java.lang.String divSubject,
                   java.lang.String divContent)
Parameters:
displayName - long name of page
parent - the page's parent
divSubject - name of Div to create
divContent - Div content
Returns:
existing or newly minted Page

deSpace

public static java.lang.String deSpace(java.lang.String s)
Remove spaces from a string.

Parameters:
s - the string
Returns:
without spaces


Copyright © 1997-2008 PanEris. All Rights Reserved.