Class CacheReflectionTmLookup
- java.lang.Object
- 
- org.apache.ignite.cache.jta.reflect.CacheReflectionTmLookup
 
- 
- All Implemented Interfaces:
- CacheTmLookup
 
 public class CacheReflectionTmLookup extends Object implements CacheTmLookup Implementation ofCacheTmLookupinterface that attempts to obtain JTA manager by calling static method on the class.
- 
- 
Constructor SummaryConstructors Constructor Description CacheReflectionTmLookup()Creates uninitialized reflection TM lookup.CacheReflectionTmLookup(String cls, String mtd)Creates generic TM lookup with given class and method name.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()Gets class name to use.StringgetMethodName()Gets method name.javax.transaction.TransactionManagergetTm()Gets Transaction Manager (TM).voidsetClassName(String cls)Sets class name to use.voidsetMethodName(String mtd)Sets method name.
 
- 
- 
- 
Method Detail- 
getClassNamepublic String getClassName() Gets class name to use.- Returns:
- Class name to use.
 
 - 
setClassNamepublic void setClassName(String cls) Sets class name to use.- Parameters:
- cls- Class name to use.
 
 - 
getMethodNamepublic String getMethodName() Gets method name.- Returns:
- Method name to use.
 
 - 
setMethodNamepublic void setMethodName(String mtd) Sets method name.- Parameters:
- mtd- Method name to use.
 
 - 
getTmpublic javax.transaction.TransactionManager getTm() throws IgniteExceptionGets Transaction Manager (TM).- Specified by:
- getTmin interface- CacheTmLookup
- Returns:
- TM or nullif TM cannot be looked up.
- Throws:
- IgniteException- In case of error.
 
 
- 
 
-