|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.backend.hibernate.MCRHIBXMLStore
public class MCRHIBXMLStore
This class implements the MCRXMLInterface.
| Field Summary | |
|---|---|
(package private) static Logger |
logger
|
| Constructor Summary | |
|---|---|
MCRHIBXMLStore()
The constructor for the class MCRHIBXMLStore. |
|
| Method Summary | |
|---|---|
void |
create(String mcrid,
byte[] xml,
Date lastModified)
The method create a new item in the datastore. |
void |
delete(String mcrid)
The method remove a item for the MCRObjectID from the datastore. |
boolean |
exists(String mcrid)
This method check that the MCRObjectID exist in this store. |
int |
getHighestStoredID()
This method returns the highest stored ID number for a given MCRObjectID base, or 0 if no object is stored for this type and project. |
void |
init(String type)
The initializer for the class MCRHIBXMLStore. |
List<MCRObjectIDDate> |
listObjectDates(String type)
lists objects of the specified type and their last modified date. |
InputStream |
retrieve(String mcrid)
The method retrieve a dataset for the given MCRObjectID and returns the corresponding XML file as byte array. |
List<String> |
retrieveAllIDs()
The method return a Array list with all stored MCRObjectID's of the XML table. |
static void |
test()
|
void |
update(String mcrid,
byte[] xml,
Date lastModified)
The method update an item in the datastore. |
| 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 MCRHIBXMLStore()
| Method Detail |
|---|
public final void init(String type)
throws MCRPersistenceException
init in interface MCRXMLTableInterfacetype - the type String of the MCRObjectID
MCRPersistenceException - if the type is not correct
public final void create(String mcrid,
byte[] xml,
Date lastModified)
throws MCRPersistenceException
create in interface MCRXMLTableInterfacemcrid - a MCRObjectIDxml - a byte array with the XML fileversion - the version of the XML Blob as integer
MCRPersistenceException - the method arguments are not correct
public final void delete(String mcrid)
throws MCRPersistenceException
delete in interface MCRXMLTableInterfacemcrid - a MCRObjectIDversion - the version of the XML Blob as integer
MCRPersistenceException - the method argument is not correct
public final void update(String mcrid,
byte[] xml,
Date lastModified)
throws MCRPersistenceException
update in interface MCRXMLTableInterfacemcrid - a MCRObjectIDxml - a byte array with the XML fileversion - the version of the XML Blob as integer
MCRPersistenceException - the method arguments are not correct
public final InputStream retrieve(String mcrid)
throws MCRPersistenceException
retrieve in interface MCRXMLTableInterfacemcrid - a MCRObjectIDversion - the version of the XML Blob as integer
MCRPersistenceException - the method arguments are not correct
public final int getHighestStoredID()
throws MCRPersistenceException
getHighestStoredID in interface MCRXMLTableInterfaceMCRPersistenceException - if a persistence problem is occuredpublic final boolean exists(String mcrid)
exists in interface MCRXMLTableInterfacemcrid - a MCRObjectIDversion - the version of the XML Blob as integer
public List<String> retrieveAllIDs()
retrieveAllIDs in interface MCRXMLTableInterfacetype - a MCRObjectID type string
public static void test()
public List<MCRObjectIDDate> listObjectDates(String type)
MCRXMLTableInterfacetype and their last modified date.
listObjectDates in interface MCRXMLTableInterfacetype - type of object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||