Package org.h2.jdbc
Class JdbcSavepoint
- java.lang.Object
-
- org.h2.message.TraceObject
-
- org.h2.jdbc.JdbcSavepoint
-
- All Implemented Interfaces:
java.sql.Savepoint
public final class JdbcSavepoint extends org.h2.message.TraceObject implements java.sql.SavepointA savepoint is a point inside a transaction to where a transaction can be rolled back. The tasks that where done before the savepoint are not rolled back in this case.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSavepointId()Get the generated id of this savepoint.java.lang.StringgetSavepointName()Get the name of this savepoint.java.lang.StringtoString()INTERNAL-
Methods inherited from class org.h2.message.TraceObject
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupported
-
-
-
-
Method Detail
-
getSavepointId
public int getSavepointId() throws java.sql.SQLExceptionGet the generated id of this savepoint.- Specified by:
getSavepointIdin interfacejava.sql.Savepoint- Returns:
- the id
- Throws:
java.sql.SQLException
-
getSavepointName
public java.lang.String getSavepointName() throws java.sql.SQLExceptionGet the name of this savepoint.- Specified by:
getSavepointNamein interfacejava.sql.Savepoint- Returns:
- the name
- Throws:
java.sql.SQLException
-
toString
public java.lang.String toString()
INTERNAL- Overrides:
toStringin classjava.lang.Object
-
-