Save This Page
Home » openejb-3.0-src » org.apache » openejb » core » transaction » [javadoc | source]
org.apache.openejb.core.transaction
abstract public class: TransactionPolicy [javadoc | source]
java.lang.Object
   org.apache.openejb.core.transaction.TransactionPolicy

Direct Known Subclasses:
    StatelessBeanManagedTxPolicy, TxMandatory, TxRequiresNew, MessageDrivenBeanManagedTxPolicy, TxNever, SessionSynchronizationTxPolicy, TxRequired, TxNotSupported, StatefulContainerManagedTxPolicy, TxSupports, StatefulBeanManagedTxPolicy

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Nested Class Summary:
public static enum class  TransactionPolicy.Type   
Field Summary
protected final  TransactionContainer container     
protected static final  Logger logger     
protected static final  Logger txLogger     
Constructor:
 public TransactionPolicy(TransactionPolicy.Type policyType,
    TransactionContainer container) 
Method from org.apache.openejb.core.transaction.TransactionPolicy Summary:
afterInvoke,   beforeInvoke,   beginTransaction,   commitTransaction,   discardBeanInstance,   getContainer,   getPolicyType,   handleApplicationException,   handleCallbackException,   handleSystemException,   logSystemException,   markTxRollbackOnly,   policyToString,   resumeTransaction,   rollbackTransaction,   suspendTransaction,   throwAppExceptionToServer,   throwExceptionToServer,   throwTxExceptionToServer
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openejb.core.transaction.TransactionPolicy Detail:
 abstract public  void afterInvoke(Object bean,
    TransactionContext context) throws SystemException, ApplicationException
 abstract public  void beforeInvoke(Object bean,
    TransactionContext context) throws SystemException, ApplicationException
 protected  void beginTransaction(TransactionContext context) throws SystemException 
 protected  void commitTransaction(TransactionContext context,
    Transaction tx) throws SystemException, ApplicationException 
 protected  void discardBeanInstance(Object instance,
    ThreadContext callContext) 
 public TransactionContainer getContainer() 
 public TransactionPolicy.Type getPolicyType() 
 abstract public  void handleApplicationException(Throwable appException,
    boolean rollback,
    TransactionContext context) throws SystemException, ApplicationException
 protected  void handleCallbackException() 
 abstract public  void handleSystemException(Throwable sysException,
    Object instance,
    TransactionContext context) throws SystemException, ApplicationException
 protected  void logSystemException(Throwable sysException,
    TransactionContext context) 
 protected  void markTxRollbackOnly(Transaction tx) throws SystemException 
 public String policyToString() 
 protected  void resumeTransaction(TransactionContext context,
    Transaction tx) throws SystemException 
 protected  void rollbackTransaction(TransactionContext context,
    Transaction tx) throws SystemException 
 protected Transaction suspendTransaction(TransactionContext context) throws SystemException 
 protected  void throwAppExceptionToServer(Throwable appException) throws ApplicationException 
 protected  void throwExceptionToServer(Throwable sysException) throws ApplicationException 
 protected  void throwTxExceptionToServer(Throwable sysException) throws ApplicationException