com.zphinx.spine.data.impl
Class EJBProxy

java.lang.Object
  extended by com.zphinx.spine.data.AbstractDataProxy
      extended by com.zphinx.spine.data.impl.EJBProxy

public class EJBProxy
extends AbstractDataProxy

EJBProxy serves as a proxy for DataAccessObjects which use EJBs for data access
Incomplete implementation!!

Version:
1.0

copyright © Zphinx Software Solutions

Author:
David Ladapo

Field Summary
 
Fields inherited from class com.zphinx.spine.data.AbstractDataProxy
DATA_DATABASE, DATA_EJB, DATA_HIBERNATE, DATA_JAVASPACE, DATA_LDAP, DATA_PROPERTIES_FILE
 
Constructor Summary
EJBProxy()
           
 
Method Summary
 void close(DataAccessObject dao)
          Close and dispose of all opened resources
protected  DataAccessObject open(Object obj1, String className, DaoConstructor daoCons)
           
protected  DataAccessObject open(Object obj, String s, DAOInput daoCons)
          Open the datastore and fetch the correct type of persistence
 
Methods inherited from class com.zphinx.spine.data.AbstractDataProxy
createDataAccessImpl, execute, getDataAccessObject, getInstance, getStoreType, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBProxy

public EJBProxy()
Method Detail

open

protected DataAccessObject open(Object obj1,
                                String className,
                                DaoConstructor daoCons)

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

open

protected DataAccessObject open(Object obj,
                                String s,
                                DAOInput daoCons)
                         throws SpineApplicationException
Description copied from class: AbstractDataProxy
Open the datastore and fetch the correct type of persistence

Specified by:
open in class AbstractDataProxy
Parameters:
obj - Arbitary object to pass to this method
s - 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:
SpineApplicationException