|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jenkov.mrpersister.scope.ScopeFactory
public class ScopeFactory
Field Summary | |
---|---|
protected ScopingDataSource |
scopingDataSource
|
Constructor Summary | |
---|---|
ScopeFactory(javax.sql.DataSource dataSource)
Creates a new ScopeFactory. |
|
ScopeFactory(ScopingDataSource dataSource)
Creates a new ScopeFactory. |
Method Summary | |
---|---|
IScopeBoundary |
createConnectionScope()
Creates a connection scope object. |
java.lang.Object |
createConnectionScope(java.lang.Object scopeTarget)
Creates a connection scope object that wraps a connection scope around methods of the scopeTarget object. |
IScopeBoundary |
createTransactionScope()
Creates a transaction scope object. |
java.lang.Object |
createTransactionScope(java.lang.Object scopeTarget)
Creates a transaction scope object that wraps a transaction scope around methods of the scopeTarget object. |
protected static java.lang.Class[] |
getInterfacesForObject(java.lang.Object object)
Returns all interfaces implemented by this objects class. |
ScopingDataSource |
getScopingDataSource()
Returns the ScopingDataSource used by this IScopeFactory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ScopingDataSource scopingDataSource
Constructor Detail |
---|
public ScopeFactory(javax.sql.DataSource dataSource)
dataSource
- public ScopeFactory(ScopingDataSource dataSource)
dataSource
- The ScopingDataSource to use by this ScopeFactory.Method Detail |
---|
public ScopingDataSource getScopingDataSource()
IScopeFactory
getScopingDataSource
in interface IScopeFactory
public IScopeBoundary createConnectionScope()
IScopeFactory
createConnectionScope
in interface IScopeFactory
public java.lang.Object createConnectionScope(java.lang.Object scopeTarget)
IScopeFactory
createConnectionScope
in interface IScopeFactory
public IScopeBoundary createTransactionScope()
IScopeFactory
createTransactionScope
in interface IScopeFactory
public java.lang.Object createTransactionScope(java.lang.Object scopeTarget)
IScopeFactory
createTransactionScope
in interface IScopeFactory
protected static java.lang.Class[] getInterfacesForObject(java.lang.Object object)
object
- The object to return the interfaces of.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |