com.zphinx.spine.data
Interface DataAccessObject

All Known Implementing Classes:
AbstractDataBaseDAO, AbstractFileDAO, AbstractHibernateDAO, AbstractLdapDAO, DataAbstract, EjbAbstract

public interface DataAccessObject

An Interface used to define suitable methods available to an object which is used to access a suitable data store.

Version:
1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo (davidl@zphinx.com)

Method Summary
 boolean close()
          Call all the actions to be performed before closing the datastore
 Object fetchData(DataTransferObject obj)
          Open a connection to the data storage system and return a suitable object
 String getErrors()
          Get the total errors generated by this implementation
 int getStoreType()
          The type of persistence system in use by this system.
 void setErrors(String errors)
          Set the errors generated by this implementation
 

Method Detail

fetchData

Object fetchData(DataTransferObject obj)
Open a connection to the data storage system and return a suitable object

Parameters:
obj - A DataTransferObject to parse
Returns:
A value object containing data

getErrors

String getErrors()
Get the total errors generated by this implementation

Returns:
The concatenation of all the generated errors

setErrors

void setErrors(String errors)
Set the errors generated by this implementation

Parameters:
errors - The error to add to the total errors

getStoreType

int getStoreType()
The type of persistence system in use by this system. Presently properties and database.

Returns:
The concatenation of all the generated errors

close

boolean close()
Call all the actions to be performed before closing the datastore

Returns:
True if the operation succeeds