|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IDataSerice is an IService that defines an abstract interface for generic
database or other structured information access. The interface uses the CEL
package and its defined structures to define, map and contain the information
that are distributed using the interface.
Note the central importance of the IDataTransaction interface that defines
data transaction abilities for the IDataService interface. If it is not
possible for the underlaying data structure to provide trasaction management
then the newTransaction() method should return null.
Method Summary | |
void |
delete(IEntity entity)
Deletes a single entity object to the database. |
IDataSourceDescriptor |
getDataSourceDescriptor()
This method provides access to the IDataSourceDescriptor that describes the entity meta structure of the information source that a specific data service provides access to. |
IEntity |
load(IEntityDescriptor entityDescriptor,
Qualifier identityQualifier)
The load method returnes a single entity object intentified by the provided indentity qualifier that must be able to uniquely identify a single entity instance. |
ISelection |
loadSelection(DataQuery dataQuery)
Loads a selection of entities identyfied by the provided reusable dataQuery object. |
ISelection |
loadSelection(IEntityDescriptor entityDescriptor,
Qualifier qualifier)
Loads a selection of entities identyfied by the provided qualifier. |
IDataTransaction |
newTransaction()
Returns a new IDataTransaction object that can be used to batch data operations and wrap them in a transaction. |
void |
refresh(IEntity entity)
Reloads a single entity object from the database. |
void |
store(IEntity entity)
Stores a single entity object to the database. |
Methods inherited from interface org.caleigo.service.IService |
finalizeService, getCustomProxyService, getServiceIdentity, getServiceInterface, getServiceInterfaceClass, getServiceType, hasCustomProxyService, initializeService, ping |
Method Detail |
public IDataSourceDescriptor getDataSourceDescriptor()
public IEntity load(IEntityDescriptor entityDescriptor, Qualifier identityQualifier) throws DataServiceException
DataServiceException
public ISelection loadSelection(IEntityDescriptor entityDescriptor, Qualifier qualifier) throws DataServiceException
DataServiceException
public ISelection loadSelection(DataQuery dataQuery) throws DataServiceException
DataServiceException
public void store(IEntity entity) throws DataServiceException
DataServiceException
public void delete(IEntity entity) throws DataServiceException
DataServiceException
public void refresh(IEntity entity) throws DataServiceException
DataServiceException
public IDataTransaction newTransaction()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |