uk.nominet.catnap.dao
Class CatnapSessionData

java.lang.Object
  extended byuk.nominet.catnap.dao.CatnapSessionData

public class CatnapSessionData
extends java.lang.Object

Handy wrapper class to bundle up into a single unit the common data objects defined within the catnap session which are required by all of the worker classes.


Constructor Summary
CatnapSessionData(CatnapSession session, javax.sql.DataSource dataSource, Schema schema, java.util.Map interceptors, java.util.Map sessionParameters)
           
 
Method Summary
 javax.sql.DataSource getDataSource()
          Get the data source in use by the current session
 java.util.List getInterceptors(java.lang.String entityName)
          Get the catnap interceptor for an entity (null if non defined)
 Schema getSchema()
          Get the catnap schema in use by the current session
 CatnapSession getSession()
          Get the catnap session object for the current session
 java.util.Map getSessionParameters()
          Get the session parameters set on execute of the method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatnapSessionData

public CatnapSessionData(CatnapSession session,
                         javax.sql.DataSource dataSource,
                         Schema schema,
                         java.util.Map interceptors,
                         java.util.Map sessionParameters)
Method Detail

getSession

public CatnapSession getSession()
Get the catnap session object for the current session

Returns:

getDataSource

public javax.sql.DataSource getDataSource()
Get the data source in use by the current session

Returns:

getSchema

public Schema getSchema()
Get the catnap schema in use by the current session

Returns:

getInterceptors

public java.util.List getInterceptors(java.lang.String entityName)
Get the catnap interceptor for an entity (null if non defined)

Parameters:
entityName -
Returns:

getSessionParameters

public java.util.Map getSessionParameters()
Get the session parameters set on execute of the method

Returns: