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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
_deleteContentData
(Delete deleteContentData, int id) protected int
protected boolean
_hasContentData
(Select hasContentData, int id) protected boolean
_install
(CreateTable createTableContentStore) protected boolean
protected void
_serveContentData
(Select retrieveContent, Context context, int id) protected void
addMimeType
(MimeType mimeType) Returns the collection of mime types that the content store supports.protected abstract void
outputContentColumn
(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, reserveConnection
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ContentStore
Returns the collection of mime types that the content store supports.- Specified by:
getSupportedMimeTypes
in 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
-