com.zphinx.spine.data.impl
Class DataBaseProxy
java.lang.Object
com.zphinx.spine.data.AbstractDataProxy
com.zphinx.spine.data.impl.DataBaseProxy
public class DataBaseProxy
- extends AbstractDataProxy
DataBaseProxy acts as a proxy object to DataAccessObjects driven by Databases. it initiates and closes the necessary connections used by the DataAccessObject leaving the dao free to perform it's predefined functionality without the overhead of opening and closing connections
- Version:
- 1.0
Copyright ©Zphinx Software Solutions
- Author:
- David Ladapo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataBaseProxy
public DataBaseProxy()
open
protected DataAccessObject open(Object obj1,
String className,
DAOInput daoCons)
- Initialize a Data Abstract storage object. Open the datastore and fetch the correct type of persistence
- Specified by:
open in class AbstractDataProxy
- Parameters:
obj1 - Arbitary object to pass to this methodclassName - A String representing the type of DAO to create.daoCons - The DaoConstructor passed to this object
- Returns:
- A suitable DataAccessObject object if the operation succeeds
- Throws:
Throws - a SpineApplicationException if unable to load a the appropriate DataAbstract Object
close
public void close(DataAccessObject dao)
- Description copied from class:
AbstractDataProxy
- Close and dispose of all opened resources
- Specified by:
close in class AbstractDataProxy
- Parameters:
dao - The DataAccessObject associated with this proxy