org.paneris.melati.site.model
Class TemplateTable

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.UploadedFileTableBase
              extended by org.paneris.melati.site.model.UploadedFileTable
                  extended by org.paneris.melati.site.model.generated.TemplateTableBase
                      extended by org.paneris.melati.site.model.TemplateTable
All Implemented Interfaces:
org.melati.poem.Selectable, org.melati.poem.Table

public class TemplateTable
extends TemplateTableBase

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

Description: A page template, used to control HTML fragment layout.

Field summary for SQL table Template
NameTypeDescription
id Integer  
displayname String The layout's name
pathname String Path in the file system relative to template root


Constructor Summary
TemplateTable(org.melati.poem.Database database, java.lang.String name, org.melati.poem.DefinitionSource definitionSource)
          Constructor.
 
Method Summary
 Template ensure(java.lang.String displayName, java.lang.String url)
          Create or retrieve existing Template by name.
 
Methods inherited from class org.paneris.melati.site.model.generated.TemplateTableBase
_newPersistent, defaultCategory, defaultDescription, defaultDisplayName, defaultDisplayOrder, defaultRememberAllTroids, getIdColumn, getSiteDatabaseTables, getTemplateObject, getTemplateObject, getUrlColumn, init
 
Methods inherited from class org.paneris.melati.site.model.UploadedFileTable
create, getRelativeUrl
 
Methods inherited from class org.paneris.melati.site.model.generated.UploadedFileTableBase
defaultCacheLimit, getDeletedColumn, getDescriptionColumn, getDisplaynameColumn, getSizeColumn, getTypeColumn, getUploadedbyColumn, getUploadedFileObject, getUploadedFileObject, getWhenColumn
 
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, 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

TemplateTable

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

ensure

public Template ensure(java.lang.String displayName,
                       java.lang.String url)
Create or retrieve existing Template by name.

Returns:
the existing or newly created object


Copyright © 1997-2008 PanEris. All Rights Reserved.