org.paneris.bibliomania
Class Book

java.lang.Object
  extended by org.melati.poem.transaction.Transactioned
      extended by org.melati.poem.JdbcPersistent
          extended by org.paneris.bibliomania.generated.UnitBase
              extended by org.paneris.bibliomania.Unit
                  extended by org.paneris.bibliomania.generated.BookBase
                      extended by org.paneris.bibliomania.Book
All Implemented Interfaces:
java.lang.Cloneable, org.melati.admin.AdminSpecialised, org.melati.poem.Persistable, org.melati.poem.Persistent, org.melati.poem.Treeable, Text

public class Book
extends BookBase
implements org.melati.admin.AdminSpecialised, Text


Nested Class Summary
 class Book.TooManyBooksException
           
 
Nested classes/interfaces inherited from class org.paneris.bibliomania.Unit
Unit.NoSourceDirException
 
Field Summary
 org.melati.poem.Treeable[] children
           
static java.lang.String frontPageFileName
           
static java.lang.String frontPageSourceFileName
           
 
Fields inherited from class org.paneris.bibliomania.generated.BookBase
advert, author, authorsequence, fulltitleifdifferent, hasnofrontpage, id, lastbookshopsearch, metatag_description, metatag_keywords, nonstandard, overridecanreadcontent, paginated, section, summary, title
 
Fields inherited from class org.paneris.bibliomania.generated.UnitBase
deleted, lastencached, layout, messageboard, path
 
Fields inherited from class org.melati.poem.transaction.Transactioned
valid
 
Constructor Summary
Book()
           
 
Method Summary
 java.lang.String adminHandle(org.melati.Melati melati, org.melati.template.MarkupLanguage markupLanguage)
           
 java.lang.String adminSpecialFacilities(org.melati.Melati melati, org.melati.template.MarkupLanguage markupLanguage)
           
 void appendCacheSubpath(java.lang.StringBuffer buffer)
           
 java.io.InputStream body()
           
 java.io.InputStream bodyForFragment()
           
 Chapter chapter(int sequence)
           
 void encache()
           
 long ftiTextID_limit()
           
 long ftiTextID_start()
           
 long ftiTextID()
           
 org.melati.poem.Capability getCanReadContent()
           
 java.lang.String getCha0JS()
           
 Chapter getChapter0()
           
 java.util.Enumeration getChapters()
           
 org.melati.poem.Treeable[] getChildren()
           
 java.lang.String getDisplayName()
           
 java.io.File getFrontPageFile()
           
 java.lang.String getFulltitle()
           
 java.util.Enumeration getMembersSlowly()
           
 java.lang.String getName()
           
 Unit getParentUnit()
           
 java.util.Enumeration getProductAssociations()
           
 SectionGroup getReadArea()
           
 java.io.File getSourceDir()
           
 boolean hasTOC()
           
 void index()
           
 void readKeyDotTxt()
           
 void setAuthor(Author author)
          Set the Author.
 void setAuthorsequence(java.lang.Integer s)
          Sets the Authorsequence value, with checking, for this Book Persistent.
 void setSection(Section section)
          Set the Section.
protected  java.util.Hashtable speciallyTreatedInCache()
           
 
Methods inherited from class org.paneris.bibliomania.generated.BookBase
getAdvert_unsafe, getAdvert, getAdvertField, getAdvertTroid, getAuthor_unsafe, getAuthor, getAuthorField, getAuthorsequence_unsafe, getAuthorsequence, getAuthorsequenceField, getAuthorTroid, getBibliomaniaDatabaseTables, getBookTable, getFulltitleifdifferent_unsafe, getFulltitleifdifferent, getFulltitleifdifferentField, getHasnofrontpage_unsafe, getHasnofrontpage, getHasnofrontpageField, getId_unsafe, getId, getIdField, getLastbookshopsearch_unsafe, getLastbookshopsearch, getLastbookshopsearchField, getMetatag_description_unsafe, getMetatag_description, getMetatag_descriptionField, getMetatag_keywords_unsafe, getMetatag_keywords, getMetatag_keywordsField, getNonstandard_unsafe, getNonstandard, getNonstandardField, getOverridecanreadcontent_unsafe, getOverridecanreadcontent, getOverridecanreadcontentField, getOverridecanreadcontentTroid, getPaginated_unsafe, getPaginated, getPaginatedField, getSection_unsafe, getSection, getSectionField, getSectionTroid, getSummary_unsafe, getSummary, getSummaryField, getTitle_unsafe, getTitle, getTitleField, setAdvert_unsafe, setAdvert, setAdvertTroid, setAuthor_unsafe, setAuthorsequence_unsafe, setAuthorsequence, setAuthorTroid, setFulltitleifdifferent_unsafe, setFulltitleifdifferent, setHasnofrontpage_unsafe, setHasnofrontpage, setHasnofrontpage, setId_unsafe, setId, setId, setLastbookshopsearch_unsafe, setLastbookshopsearch, setMetatag_description_unsafe, setMetatag_description, setMetatag_keywords_unsafe, setMetatag_keywords, setNonstandard_unsafe, setNonstandard, setNonstandard, setOverridecanreadcontent_unsafe, setOverridecanreadcontent, setOverridecanreadcontentTroid, setPaginated_unsafe, setPaginated, setPaginated, setSection_unsafe, setSectionTroid, setSummary_unsafe, setSummary, setTitle_unsafe, setTitle
 
Methods inherited from class org.paneris.bibliomania.Unit
appendCachePath, getAncestors, getBibliomaniaDatabase, getBoardName, getCachePath, getProductAssociations, getRelatedProducts, getURLSubpath, getURLSubpathReally, getWMTemplet, paginate, writeLock
 
Methods inherited from class org.paneris.bibliomania.generated.UnitBase
getDeleted_unsafe, getDeleted, getDeletedField, getLastencached_unsafe, getLastencached, getLastencachedField, getLayout_unsafe, getLayout, getLayoutField, getLayoutTroid, getMessageboard_unsafe, getMessageboard, getMessageboardField, getMessageboardTroid, getPath_unsafe, getPath, getPathField, getUnitTable, setDeleted_unsafe, setDeleted, setDeleted, setLastencached_unsafe, setLastencached, setLayout_unsafe, setLayout, setLayoutTroid, setMessageboard_unsafe, setMessageboard, setMessageboardTroid, setPath_unsafe, setPath
 
Methods inherited from class org.melati.poem.JdbcPersistent
assertCanCreate, assertCanCreate, assertCanDelete, assertCanDelete, assertCanRead, assertCanRead, assertCanWrite, assertCanWrite, clone, commit, countMatchSQL, delete_unsafe, delete, delete, deleteAndCommit, deleteAndCommit, deleteLock, displayString, displayString, displayString, dump, dump, duplicated, duplicatedFloating, equals, existenceLock, existenceLock, fieldsOfColumns, fromClause, getCanDelete, getCanRead, getCanSelect, getCanWrite, getCooked, getCookedString, getDatabase, getDetailDisplayFields, getField, getFields, getPrimaryDisplayField, getRaw, getRawString, getReadable, getRecordDisplayFields, getSearchCriterionFields, getSummaryDisplayFields, getTable, getTroid, hashCode, invalidate, isDirty, load, makePersistent, postEdit, postInsert, postModify, postWrite, preEdit, readLock, readLock, readLock, rollback, setCooked, setDirty, setRaw, setRawString, statusExistent, statusNonexistent, toString, troid, upToDate, writeDown, writeLock, writeLock
 
Methods inherited from class org.melati.poem.transaction.Transactioned
markValid, reset, setTransactionPool, transactionPool, unSee
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

frontPageFileName

public static final java.lang.String frontPageFileName
See Also:
Constant Field Values

frontPageSourceFileName

public static final java.lang.String frontPageSourceFileName
See Also:
Constant Field Values

children

public org.melati.poem.Treeable[] children
Constructor Detail

Book

public Book()
Method Detail

getFulltitle

public java.lang.String getFulltitle()

getSourceDir

public java.io.File getSourceDir()

setAuthorsequence

public void setAuthorsequence(java.lang.Integer s)
Description copied from class: BookBase
Sets the Authorsequence value, with checking, for this Book Persistent. Field description: An internal number used to distinguish between books by the same author in creating textIDs for the full text indexing subsystem

Overrides:
setAuthorsequence in class BookBase
Parameters:
s - a validated int

setAuthor

public void setAuthor(Author author)
Description copied from class: BookBase
Set the Author.

Overrides:
setAuthor in class BookBase
Parameters:
author - a validated Author

getChapters

public java.util.Enumeration getChapters()

getProductAssociations

public java.util.Enumeration getProductAssociations()
Specified by:
getProductAssociations in class Unit

getMembersSlowly

public java.util.Enumeration getMembersSlowly()
Specified by:
getMembersSlowly in class Unit

chapter

public Chapter chapter(int sequence)

getChapter0

public Chapter getChapter0()

getCha0JS

public java.lang.String getCha0JS()

setSection

public void setSection(Section section)
Description copied from class: BookBase
Set the Section.

Overrides:
setSection in class BookBase
Parameters:
section - a validated Section

getCanReadContent

public org.melati.poem.Capability getCanReadContent()

adminHandle

public java.lang.String adminHandle(org.melati.Melati melati,
                                    org.melati.template.MarkupLanguage markupLanguage)
                             throws java.lang.Exception
Specified by:
adminHandle in interface org.melati.admin.AdminSpecialised
Throws:
java.lang.Exception

adminSpecialFacilities

public java.lang.String adminSpecialFacilities(org.melati.Melati melati,
                                               org.melati.template.MarkupLanguage markupLanguage)
                                        throws java.lang.Exception
Specified by:
adminSpecialFacilities in interface org.melati.admin.AdminSpecialised
Throws:
java.lang.Exception

ftiTextID

public long ftiTextID()
Specified by:
ftiTextID in interface Text

body

public java.io.InputStream body()
                         throws java.io.IOException
Specified by:
body in interface Text
Throws:
java.io.IOException

bodyForFragment

public java.io.InputStream bodyForFragment()
                                    throws java.io.IOException
Specified by:
bodyForFragment in interface Text
Throws:
java.io.IOException

ftiTextID_start

public long ftiTextID_start()
Specified by:
ftiTextID_start in class Unit

ftiTextID_limit

public long ftiTextID_limit()
Specified by:
ftiTextID_limit in class Unit

getParentUnit

public Unit getParentUnit()
Specified by:
getParentUnit in class Unit

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in class Unit

appendCacheSubpath

public void appendCacheSubpath(java.lang.StringBuffer buffer)
Specified by:
appendCacheSubpath in class Unit

readKeyDotTxt

public void readKeyDotTxt()
Overrides:
readKeyDotTxt in class Unit

speciallyTreatedInCache

protected java.util.Hashtable speciallyTreatedInCache()
Overrides:
speciallyTreatedInCache in class Unit

getFrontPageFile

public java.io.File getFrontPageFile()

hasTOC

public boolean hasTOC()

index

public void index()
           throws java.io.IOException
Overrides:
index in class Unit
Throws:
java.io.IOException

encache

public void encache()
             throws java.lang.Exception
Overrides:
encache in class Unit
Throws:
java.lang.Exception

getReadArea

public SectionGroup getReadArea()
Specified by:
getReadArea in class Unit

getChildren

public org.melati.poem.Treeable[] getChildren()
Specified by:
getChildren in interface org.melati.poem.Treeable
Overrides:
getChildren in class org.melati.poem.JdbcPersistent

getName

public java.lang.String getName()
Specified by:
getName in interface org.melati.poem.Treeable
Specified by:
getName in class Unit


Copyright © 2000-2009 PanEris. All Rights Reserved.