org.objectweb.cjdbc.common.exceptions
Class NoMoreBackendException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.sql.SQLException
              extended byorg.objectweb.cjdbc.common.exceptions.NoMoreBackendException
All Implemented Interfaces:
java.io.Serializable

public class NoMoreBackendException
extends java.sql.SQLException

This class defines a NoMoreBackendException. This means that a controller does not have any backend left to execute the query. The exception might carry an optional identifier of the request that failed. This is useful to unlog a remote request that has failed since each controller has its own local id for each distributed request.

Version:
1.0
Author:
Nicolas Modrzyk , Emmanuel Cecchet
See Also:
Serialized Form

Field Summary
private  java.lang.String login
           
private  long recoveryLogId
           
private static long serialVersionUID
           
 
Fields inherited from class java.sql.SQLException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NoMoreBackendException()
          Creates a new NoMoreBackendException object
NoMoreBackendException(java.lang.String reason)
          Creates a new NoMoreBackendException object
NoMoreBackendException(java.lang.String reason, java.lang.String sqlState)
          Creates a new NoMoreBackendException object
NoMoreBackendException(java.lang.String reason, java.lang.String sqlState, int vendorCode)
          Creates a new NoMoreBackendException object
 
Method Summary
 java.lang.String getLogin()
          Returns the login of the request that failed.
 long getRecoveryLogId()
          Returns the recovery log id of the request that failed.
 void setLogin(java.lang.String login)
          Sets the login of the request that failed.
 void setRecoveryLogId(long recoveryLogId)
          Sets the recovery log id of the request that failed.
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

recoveryLogId

private long recoveryLogId

login

private java.lang.String login
Constructor Detail

NoMoreBackendException

public NoMoreBackendException()
Creates a new NoMoreBackendException object


NoMoreBackendException

public NoMoreBackendException(java.lang.String reason)
Creates a new NoMoreBackendException object

Parameters:
reason - the error message

NoMoreBackendException

public NoMoreBackendException(java.lang.String reason,
                              java.lang.String sqlState)
Creates a new NoMoreBackendException object

Parameters:
reason - the error message
sqlState - the SQL state

NoMoreBackendException

public NoMoreBackendException(java.lang.String reason,
                              java.lang.String sqlState,
                              int vendorCode)
Creates a new NoMoreBackendException object

Parameters:
reason - the error message
sqlState - the SQL state
vendorCode - vendor specific code
Method Detail

getRecoveryLogId

public long getRecoveryLogId()
Returns the recovery log id of the request that failed.

Returns:
Returns the recoveryLogId.

setRecoveryLogId

public void setRecoveryLogId(long recoveryLogId)
Sets the recovery log id of the request that failed.

Parameters:
recoveryLogId - The recoveryLogId to set.

getLogin

public java.lang.String getLogin()
Returns the login of the request that failed.

Returns:
Returns the login.

setLogin

public void setLogin(java.lang.String login)
Sets the login of the request that failed.

Parameters:
login - The login to set.


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.