Oracle OLAP Java API Reference
10g Release 1 (10.1)

B10994-01

oracle.express.olapi.transaction
Class PrepareLockException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--oracle.olapi.transaction.NotCommittableException
                    |
                    +--oracle.express.olapi.transaction.PrepareLockException

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.
 oracle.express.olapi.transaction.ExpressTransaction getLockTransaction()
          Gets the ExpressTransaction that must be prepared and committed or rolled back before you can prepare and commit the ExpressTransaction 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.
 oracle.express.olapi.transaction.ExpressTransaction getSubtransaction()
          Gets the ExpressTransaction the preparation of which caused this exception to occur.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, printStackTrace, printStackTrace, printStackTrace, 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.

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.
Overrides:
getLocalizedMessage in class java.lang.Throwable

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.
Overrides:
getMessage in class java.lang.Throwable

getSubtransaction

public oracle.express.olapi.transaction.ExpressTransaction getSubtransaction()
Gets the ExpressTransaction the preparation of which caused this exception to occur.
Returns:
The ExpressTransaction the preparation of which failed.

getLockTransaction

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

Oracle OLAP Java API Reference
10g Release 1 (10.1)

B10994-01

Copyright © 2002, 2003, Oracle. All Rights Reserved.