Skip navigation links

Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-04


oracle.express.olapi.transaction
Class PrepareLockException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byoracle.olapi.transaction.NotCommittableException
              extended byoracle.express.olapi.transaction.PrepareLockException

All Implemented Interfaces:
HasLocalizedMessage, java.io.Serializable

public class PrepareLockException
extends NotCommittableException
implements HasLocalizedMessage

Indicates that another Transaction must be prepared and committed before the current Transaction can be prepared. This exception occurs when, for example, you create a child Transaction, t2, of a parent Transaction, t1, then create a child Transaction, t3, of t2, and then you try to prepare and commit t2 before you prepare and commit t3. You must either prepare and commit, or rollback, the child Transaction t3 before you can prepare and commit the parent Transaction t2.

See Also:
Serialized Form

Method Summary
 java.lang.String getLocalizedMessage()
          Gets a message in the language of the default Locale for the Java Virtual Machine in which the OLAP API application is running.
 java.lang.String getLocalizedMessage(java.util.Locale locale)
          Gets a message in the language of the specified Locale.
 Transaction getLockTransaction()
          Gets the Transaction that must be prepared and committed or rolled back before you can prepare and commit the Transaction returned by the getSubtransaction method.
 java.lang.String getMessage()
          Gets a message in the language of the default Locale for the Java Virtual Machine in which the OLAP API application is running.
 Transaction getSubtransaction()
          Gets the Transaction the preparation of which caused this exception to occur.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale)
                                     throws java.util.MissingResourceException
Gets a message in the language of the specified Locale.
Specified by:
getLocalizedMessage in interface HasLocalizedMessage
Parameters:
locale - The Locale that specifies the language of the message.
Returns:
A message in the language of the specified Locale.
Throws:
java.util.MissingResourceException

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Gets a message in the language of the default Locale for the Java Virtual Machine in which the OLAP API application is running.
Returns:
A message in the language of the default Locale.

getMessage

public java.lang.String getMessage()
Gets a message in the language of the default Locale for the Java Virtual Machine in which the OLAP API application is running. This method returns the same message as the getLocalizedMessage method with no Locale parameter specified.
Returns:
A message in the language of the default Locale.

getSubtransaction

public Transaction getSubtransaction()
Gets the Transaction the preparation of which caused this exception to occur.
Returns:
The Transaction the preparation of which failed.

getLockTransaction

public Transaction getLockTransaction()
Gets the Transaction that must be prepared and committed or rolled back before you can prepare and commit the Transaction returned by the getSubtransaction method.
Returns:
The Transaction that was already prepared.

Skip navigation links

Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-04


Copyright © 2002, 2007, Oracle. All rights reserved.