Package rife.cmf.dam.contentstores
Class DatabaseContentStore
java.lang.Object
rife.database.DbQueryManager
rife.cmf.dam.contentstores.DatabaseContentStore
- All Implemented Interfaces:
Cloneable,ContentStore
- Direct Known Subclasses:
DatabaseImageStore,DatabaseTextStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean_deleteContentData(Delete deleteContentData, int id) protected intprotected boolean_hasContentData(Select hasContentData, int id) protected boolean_install(CreateTable createTableContentStore) protected booleanprotected void_serveContentData(Select retrieveContent, Context context, int id) protected voidaddMimeType(MimeType mimeType) Returns the collection of mime types that the content store supports.protected abstract voidoutputContentColumn(ResultSet resultSet, OutputStream os) Methods inherited from class rife.database.DbQueryManager
clone, executeFetchAll, executeFetchAll, executeFetchAll, executeFetchAll, executeFetchAllBeans, executeFetchAllBeans, executeFetchFirst, executeFetchFirst, 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, executeResultQuery, executeUpdate, executeUpdate, executeUpdate, executeUseFirstAsciiStream, executeUseFirstAsciiStream, executeUseFirstBinaryStream, executeUseFirstBinaryStream, executeUseFirstCharacterStream, executeUseFirstCharacterStream, fetch, fetch, fetch, fetchAll, fetchAll, getConnection, getDatasource, inTransaction, inTransaction, reserveConnectionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface rife.cmf.dam.ContentStore
deleteContentData, getContentForHtml, getContentType, getFormatter, getSize, hasContentData, install, remove, serveContentData, storeContentData, useContentData, useContentDataResult
-
Constructor Details
-
DatabaseContentStore
-
-
Method Details
-
addMimeType
-
getSupportedMimeTypes
Description copied from interface:ContentStoreReturns the collection of mime types that the content store supports.- Specified by:
getSupportedMimeTypesin interfaceContentStore- Returns:
- the collection of supported mime types
-
_install
- Throws:
ContentManagerException
-
_remove
- Throws:
ContentManagerException
-
_deleteContentData
protected boolean _deleteContentData(Delete deleteContentData, int id) throws ContentManagerException - Throws:
ContentManagerException
-
_getSize
- Throws:
ContentManagerException
-
_hasContentData
- Throws:
ContentManagerException
-
_serveContentData
protected void _serveContentData(Select retrieveContent, Context context, int id) throws ContentManagerException - Throws:
ContentManagerException
-
outputContentColumn
protected abstract void outputContentColumn(ResultSet resultSet, OutputStream os) throws SQLException - Throws:
SQLException
-