org.openanzo.jdbc.utils.opgen
Class RdbStatementSet.Context

java.lang.Object
  extended by org.openanzo.jdbc.utils.opgen.RdbStatementSet.Context
Enclosing class:
RdbStatementSet

public static class RdbStatementSet.Context
extends java.lang.Object

Overall context for a set of statement sets


Constructor Summary
RdbStatementSet.Context(java.lang.String javaClassName, java.lang.String javaPackage, java.lang.String rethrowExceptionName, boolean rethrowSQLException, RdbStatementSet preparedStatements)
          Create a new context
 
Method Summary
 java.lang.String getClassName()
          Get the classname for a set of statements
 RdbStatementSet getDescriptorList()
          Get the list of prepared statements
 java.lang.String getPackageName()
          Get the package name for this class
 java.lang.String getRethrowExceptionName()
          Get the name of the exception for which to wrap exceptions
 boolean getRethrowSQLException()
          True if SQLExceptions should be rethrown, else they are wrapped
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdbStatementSet.Context

public RdbStatementSet.Context(java.lang.String javaClassName,
                               java.lang.String javaPackage,
                               java.lang.String rethrowExceptionName,
                               boolean rethrowSQLException,
                               RdbStatementSet preparedStatements)
Create a new context

Parameters:
javaClassName - classname for set of statements
javaPackage - package for class
rethrowExceptionName - Name of exception type for which wrap exceptions
rethrowSQLException - Should SQLExceptions be rethrown or wrapped
preparedStatements - set of prepared statements
Method Detail

getClassName

public java.lang.String getClassName()
Get the classname for a set of statements

Returns:
the classname for a set of statements

getPackageName

public java.lang.String getPackageName()
Get the package name for this class

Returns:
the package name for this class

getDescriptorList

public RdbStatementSet getDescriptorList()
Get the list of prepared statements

Returns:
the list of prepared statements

getRethrowExceptionName

public java.lang.String getRethrowExceptionName()
Get the name of the exception for which to wrap exceptions

Returns:
the name of the exception for which to wrap exceptions

getRethrowSQLException

public boolean getRethrowSQLException()
True if SQLExceptions should be rethrown, else they are wrapped

Returns:
if SQLExceptions should be rethrown, else they are wrapped


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.