com.metamatrix.platform.security.authorization.spi.jdbc
Class JDBCAuthorizationTransactionFactory

java.lang.Object
  extended by com.metamatrix.platform.security.authorization.spi.jdbc.JDBCAuthorizationTransactionFactory
All Implemented Interfaces:
TransactionFactory

public class JDBCAuthorizationTransactionFactory
extends java.lang.Object
implements TransactionFactory


Constructor Summary
JDBCAuthorizationTransactionFactory()
           
JDBCAuthorizationTransactionFactory(java.util.Properties env)
           
 
Method Summary
 ManagedConnection createConnection(java.util.Properties env, java.lang.String userName)
          Create a new instance of a metadata connection.
 TransactionInterface createTransaction(ManagedConnection connection, boolean readonly)
          Create a new instance of a transaction for a managed connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCAuthorizationTransactionFactory

public JDBCAuthorizationTransactionFactory()

JDBCAuthorizationTransactionFactory

public JDBCAuthorizationTransactionFactory(java.util.Properties env)
Method Detail

createConnection

public ManagedConnection createConnection(java.util.Properties env,
                                          java.lang.String userName)
                                   throws ManagedConnectionException
Create a new instance of a metadata connection.

Specified by:
createConnection in interface TransactionFactory
Parameters:
env - the environment properties for the new connection.
userName - is the name of the one creating the connection
Throws:
ManagedConnectionException - if there is an error creating the connection.

createTransaction

public TransactionInterface createTransaction(ManagedConnection connection,
                                              boolean readonly)
                                       throws ManagedConnectionException
Create a new instance of a transaction for a managed connection.

Specified by:
createTransaction in interface TransactionFactory
Parameters:
connection - the connection that should be used and that was created using this factory's createConnection method (thus the transaction subclass may cast to the type created by the createConnection method.
readonly - true if the transaction is to be readonly, or false otherwise
Throws:
ManagedConnectionException - if there is an error creating the transaction.


Copyright © 2009. All Rights Reserved.