|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MCRXMLTableInterface
This interface is designed to choose the Persistence for the XML tables.
| 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, or 0 if no object is stored for this type and project. |
void |
init(String type)
The initializer for the class MCRSQLXMLStore. |
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 InputStream. |
List<String> |
retrieveAllIDs()
The method return a Array list with all stored MCRObjectID's of the XML table. |
void |
update(String mcrid,
byte[] xml,
Date lastModified)
The method update an item in the datastore. |
| Method Detail |
|---|
void init(String type)
throws MCRPersistenceException
type - the type String of the MCRObjectID
MCRPersistenceException - throws if the type is not correct
void create(String mcrid,
byte[] xml,
Date lastModified)
throws MCRPersistenceException
mcrid - a MCRObjectIDxml - a byte array with the XML file
MCRPersistenceException - if the method arguments are not correct
void delete(String mcrid)
throws MCRPersistenceException
mcrid - a MCRObjectID
MCRPersistenceException - if the method argument is not correct
void update(String mcrid,
byte[] xml,
Date lastModified)
throws MCRPersistenceException
mcrid - a MCRObjectIDxml - a byte array with the XML file
MCRPersistenceException - if the method arguments are not correct
InputStream retrieve(String mcrid)
throws MCRPersistenceException
mcrid - a MCRObjectID
MCRPersistenceException - if the method arguments are not correct
int getHighestStoredID()
throws MCRPersistenceException
MCRPersistenceException - if a persistence problem is occuredboolean exists(String mcrid)
mcrid - a MCRObjectID
List<String> retrieveAllIDs()
List<MCRObjectIDDate> listObjectDates(String type)
type and their last modified date.
type - type of object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||