com.uwyn.rife.cmf.dam.contentstores
Class DatabaseContentStore
java.lang.Object
com.uwyn.rife.database.DbQueryManager
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
| 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 interface com.uwyn.rife.cmf.dam.ContentStore |
deleteContentData, getContentForHtml, getContentType, getFormatter, getSize, hasContentData, install, remove, serveContentData, storeContentData, useContentData |
DatabaseContentStore
public DatabaseContentStore(Datasource datasource)
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.