|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BasicDataFactory
Basic operations to perform with the data object in the persistence store. It just defines retrieve, create and delete operations since these are the basic we need to perform any kind of data populations as well as tests with data.
| Method Summary | |
|---|---|
int |
create(java.util.Collection colDataObject)
Create collection of data objects. |
DataObject |
create(DataObject data)
Create data object in the persistance store. |
void |
delete(int iId,
int iDomainId)
Delete specified data. |
| Methods inherited from interface org.opensubsystems.core.persist.DataFactory |
|---|
get, getDataType |
| Method Detail |
|---|
DataObject create(DataObject data)
throws OSSException
data - - data to create
OSSException - - an error while creating data
int create(java.util.Collection colDataObject)
throws OSSException
colDataObject - - collection of data objects that will be created
OSSException - - error during create
void delete(int iId,
int iDomainId)
throws OSSException
iId - - id of the data object to be deletediDomainId - - if the data object exists in a domain then by specifying
the domain id it allows the persistance store to limit
the data that will be searched and also possibly
enforce in what domain the id can possibly exist. This
allows to enforce security on the persistance layer
that by ensuring that if the data object doesn't exist
in the domain where it is expected to exist, it will
not be even deleted. If the data object doesnt exist
in the domain, you can pass DataObject.NEW_ID here
since it won't be used.
OSSException - - an error has occured deleting data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||