public class RolledBackUpdateException extends MetaModelException
JdbcDataContext.executeUpdate(org.apache.metamodel.UpdateScript)
which was
rolled back at the JDBC layer. This particular exception type can typically be catched and the update can be retried
to retry the transaction (assuming that the script is designed in a way that makes it idempotent and has not
side-effects on state outside of the JdbcDataContext
).
Note that the cause of this will always be a SQLException
since it only applies to JDBC.Constructor and Description |
---|
RolledBackUpdateException(SQLException cause) |
RolledBackUpdateException(String message,
SQLException cause) |
Modifier and Type | Method and Description |
---|---|
SQLException |
getCause() |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RolledBackUpdateException(SQLException cause)
public RolledBackUpdateException(String message, SQLException cause)
public SQLException getCause()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.