Package rife.cmf.dam.contentmanagers
Class DatabaseContent
java.lang.Object
rife.database.DbQueryManager
rife.cmf.dam.contentmanagers.DatabaseContent
- All Implemented Interfaces:
Cloneable,ContentManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final HashMap<MimeType,ContentStore> protected final ArrayList<ContentStore> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean_containsRepository(Select containsContentRepository, String name) protected boolean_createRepository(SequenceValue getContentRepositoryId, Insert storeContentRepository, String name) protected boolean_deleteContent(Select getContentInfo, Delete deleteContentInfo, Delete deleteContentAttributes, Delete deleteContentProperties, String location) protected String_getContentForHtml(String location, Context context, Route route) protected DatabaseContentInfo_getContentInfo(Select getContentInfo, Select getContentAttributes, Select getContentProperties, String location) protected boolean_hasContentData(Select retrieveContent, String location) protected boolean_install(CreateSequence createSequenceContentRepository, CreateSequence createSequenceContentInfo, CreateTable createTableContentRepository, CreateTable createTableContentInfo, CreateTable createTableContentAttribute, CreateTable createTableContentProperty) protected boolean_remove(DropSequence dropSequenceContentRepository, DropSequence dropSequenceContentInfo, DropTable dropTableContentRepository, DropTable dropTableContentInfo, DropTable dropTableContentAttribute, DropTable dropTableContentProperty) protected void_serveContentData(Context context, String location) protected boolean_storeContent(SequenceValue getContentId, Select getContentRepositoryId, Insert storeContentInfo, Insert storeContentAttribute, Insert storeContentProperty, String location, Content content, ContentTransformer transformer) protected void_useContentData(Select retrieveContent, String location, ContentDataUserWithoutResult user) protected <ResultType>
ResultType_useContentDataResult(Select retrieveContent, String location, ContentDataUser<ResultType> user) abstract DatabaseContentInfogetContentInfo(String location) Retrieves the content info from a certain location.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.ContentManager
containsRepository, createRepository, deleteContent, getContentForHtml, hasContentData, install, remove, serveContentData, storeContent, useContentData, useContentDataResult
-
Field Details
-
stores_
-
mimeMapping_
-
-
Constructor Details
-
DatabaseContent
-
-
Method Details
-
getContentInfo
Description copied from interface:ContentManagerRetrieves the content info from a certain location.- Specified by:
getContentInfoin interfaceContentManager- Parameters:
location- the location whose content info has to be retrieved- Returns:
- an instance of
ContentInfo; ornullif no content is present at the location - Throws:
ContentManagerException- if an expected error occurred
-
_install
protected boolean _install(CreateSequence createSequenceContentRepository, CreateSequence createSequenceContentInfo, CreateTable createTableContentRepository, CreateTable createTableContentInfo, CreateTable createTableContentAttribute, CreateTable createTableContentProperty) throws ContentManagerException - Throws:
ContentManagerException
-
_remove
protected boolean _remove(DropSequence dropSequenceContentRepository, DropSequence dropSequenceContentInfo, DropTable dropTableContentRepository, DropTable dropTableContentInfo, DropTable dropTableContentAttribute, DropTable dropTableContentProperty) throws ContentManagerException - Throws:
ContentManagerException
-
_createRepository
protected boolean _createRepository(SequenceValue getContentRepositoryId, Insert storeContentRepository, String name) throws ContentManagerException - Throws:
ContentManagerException
-
_containsRepository
protected boolean _containsRepository(Select containsContentRepository, String name) throws ContentManagerException - Throws:
ContentManagerException
-
_storeContent
protected boolean _storeContent(SequenceValue getContentId, Select getContentRepositoryId, Insert storeContentInfo, Insert storeContentAttribute, Insert storeContentProperty, String location, Content content, ContentTransformer transformer) throws ContentManagerException - Throws:
ContentManagerException
-
_deleteContent
protected boolean _deleteContent(Select getContentInfo, Delete deleteContentInfo, Delete deleteContentAttributes, Delete deleteContentProperties, String location) throws ContentManagerException - Throws:
ContentManagerException
-
_useContentData
protected void _useContentData(Select retrieveContent, String location, ContentDataUserWithoutResult user) throws ContentManagerException - Throws:
ContentManagerException
-
_useContentDataResult
protected <ResultType> ResultType _useContentDataResult(Select retrieveContent, String location, ContentDataUser<ResultType> user) throws ContentManagerException - Throws:
ContentManagerException
-
_hasContentData
protected boolean _hasContentData(Select retrieveContent, String location) throws ContentManagerException - Throws:
ContentManagerException
-
_getContentInfo
protected DatabaseContentInfo _getContentInfo(Select getContentInfo, Select getContentAttributes, Select getContentProperties, String location) throws ContentManagerException - Throws:
ContentManagerException
-
_serveContentData
- Throws:
ContentManagerException
-
_getContentForHtml
protected String _getContentForHtml(String location, Context context, Route route) throws ContentManagerException - Throws:
ContentManagerException
-