com.uwyn.rife.cmf.dam.contentstores
Class DatabaseContentStore

java.lang.Object
  extended by com.uwyn.rife.database.DbQueryManager
      extended by com.uwyn.rife.cmf.dam.contentstores.DatabaseContentStore
All Implemented Interfaces:
ContentStore, Cloneable
Direct Known Subclasses:
DatabaseImageStore, DatabaseTextStore

public abstract class DatabaseContentStore
extends DbQueryManager
implements ContentStore


Constructor Summary
DatabaseContentStore(Datasource datasource)
           
 
Method Summary
protected  boolean _deleteContentData(Delete deleteContentData, int id)
           
protected  int _getSize(Select retrieveSize, int id)
           
protected  boolean _hasContentData(Select hasContentData, int id)
           
protected  boolean _install(CreateTable createTableContentStore)
           
protected  boolean _remove(DropTable dropTableContentStore)
           
protected  void _serveContentData(Select retrieveContent, ElementSupport element, int id)
           
protected  void addMimeType(MimeType mimeType)
           
protected  String getContentSizeColumnName()
           
 Collection<MimeType> getSupportedMimeTypes()
          Returns the collection of mime types that the content store supports.
protected abstract  void outputContentColumn(ResultSet resultSet, OutputStream os)
           
 
Methods inherited from class com.uwyn.rife.database.DbQueryManager
clone, executeFetchAll, executeFetchAll, executeFetchAllBeans, executeFetchAllBeans, executeFetchFirst, executeFetchFirst, executeFetchFirstBean, executeFetchFirstBean, executeGetFirstBoolean, executeGetFirstBoolean, executeGetFirstByte, executeGetFirstByte, executeGetFirstBytes, executeGetFirstBytes, executeGetFirstDate, executeGetFirstDate, executeGetFirstDate, executeGetFirstDate, executeGetFirstDouble, executeGetFirstDouble, executeGetFirstFloat, executeGetFirstFloat, executeGetFirstInt, executeGetFirstInt, executeGetFirstLong, executeGetFirstLong, executeGetFirstShort, executeGetFirstShort, executeGetFirstString, executeGetFirstString, executeGetFirstTime, executeGetFirstTime, executeGetFirstTime, executeGetFirstTime, executeGetFirstTimestamp, executeGetFirstTimestamp, executeGetFirstTimestamp, executeGetFirstTimestamp, executeHasResultRows, executeHasResultRows, executeQuery, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUseFirstAsciiStream, executeUseFirstAsciiStream, executeUseFirstBinaryStream, executeUseFirstBinaryStream, executeUseFirstCharacterStream, executeUseFirstCharacterStream, fetch, fetch, fetchAll, getConnection, getDatasource, inTransaction, reserveConnection
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.uwyn.rife.cmf.dam.ContentStore
deleteContentData, getContentForHtml, getContentType, getFormatter, getSize, hasContentData, install, remove, serveContentData, storeContentData, useContentData
 

Constructor Detail

DatabaseContentStore

public DatabaseContentStore(Datasource datasource)
Method Detail

addMimeType

protected void addMimeType(MimeType mimeType)

getSupportedMimeTypes

public Collection<MimeType> getSupportedMimeTypes()
Description copied from interface: ContentStore
Returns the collection of mime types that the content store supports.

Specified by:
getSupportedMimeTypes in interface ContentStore
Returns:
the collection of supported mime types

_install

protected boolean _install(CreateTable createTableContentStore)
                    throws ContentManagerException
Throws:
ContentManagerException

_remove

protected boolean _remove(DropTable dropTableContentStore)
                   throws ContentManagerException
Throws:
ContentManagerException

_deleteContentData

protected boolean _deleteContentData(Delete deleteContentData,
                                     int id)
                              throws ContentManagerException
Throws:
ContentManagerException

_getSize

protected int _getSize(Select retrieveSize,
                       int id)
                throws ContentManagerException
Throws:
ContentManagerException

_hasContentData

protected boolean _hasContentData(Select hasContentData,
                                  int id)
                           throws ContentManagerException
Throws:
ContentManagerException

getContentSizeColumnName

protected String getContentSizeColumnName()

_serveContentData

protected void _serveContentData(Select retrieveContent,
                                 ElementSupport element,
                                 int id)
                          throws ContentManagerException
Throws:
ContentManagerException

outputContentColumn

protected abstract void outputContentColumn(ResultSet resultSet,
                                            OutputStream os)
                                     throws SQLException
Throws:
SQLException


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.