|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.ifs.MCRContentStore
org.mycore.backend.hibernate.MCRHIBCStore
public class MCRHIBCStore
This class implements the MCRContentStore interface.
| Field Summary | |
|---|---|
(package private) static Logger |
logger
|
| Fields inherited from class org.mycore.datamodel.ifs.MCRContentStore |
|---|
formatter, lastTimestamp, prefix, slotDirDepth, storeID |
| Constructor Summary | |
|---|---|
MCRHIBCStore()
|
|
| Method Summary | |
|---|---|
protected void |
doDeleteContent(String ID)
Deletes the content of an MCRFile object that is stored under the given Storage ID in this store instance. |
protected InputStream |
doRetrieveContent(MCRFileReader file)
Retrieves the content of an MCRFile. |
protected void |
doRetrieveContent(MCRFileReader file,
OutputStream target)
Retrieves the content of an MCRFile to an OutputStream. |
protected String |
doStoreContent(MCRFileReader file,
MCRContentInputStream source)
Stores the content of an MCRFile by reading from an MCRContentInputStream. |
void |
init(String storeID)
Initializes the store and sets its unique store ID. |
| Methods inherited from class org.mycore.datamodel.ifs.MCRContentStore |
|---|
buildNextID, buildNextTimestamp, buildSlotPath, deleteContent, getID, retrieveContent, retrieveContent, storeContent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static Logger logger
| Constructor Detail |
|---|
public MCRHIBCStore()
| Method Detail |
|---|
public void init(String storeID)
MCRContentStore
init in class MCRContentStorestoreID - the non-null unique store ID for this store instance
protected String doStoreContent(MCRFileReader file,
MCRContentInputStream source)
throws Exception
MCRContentStore
doStoreContent in class MCRContentStorefile - the MCRFile thats content is to be storedsource - the ContentInputStream where the file content is read from
Exception
protected void doDeleteContent(String ID)
throws Exception
MCRContentStore
doDeleteContent in class MCRContentStoreID - the storage ID of the MCRFile object
Exception
protected void doRetrieveContent(MCRFileReader file,
OutputStream target)
throws Exception
MCRContentStore
doRetrieveContent in class MCRContentStorefile - the MCRFile thats content should be retrievedtarget - the OutputStream to write the file content to
Exception
protected InputStream doRetrieveContent(MCRFileReader file)
throws Exception
MCRContentStore
doRetrieveContent in class MCRContentStorefile - the MCRFile thats content should be retrieved
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||