Class Connection.MariaDbSavepoint

  • All Implemented Interfaces:
    java.sql.Savepoint
    Enclosing class:
    Connection

    class Connection.MariaDbSavepoint
    extends java.lang.Object
    implements java.sql.Savepoint
    Internal Savepoint implementation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Integer id  
      private java.lang.String name  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getSavepointId()
      Retrieves the generated ID for the savepoint that this Savepoint object represents.
      java.lang.String getSavepointName()
      Retrieves the name of the savepoint that this Savepoint object represents.
      java.lang.String rawValue()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
      • id

        private final java.lang.Integer id
    • Constructor Detail

      • MariaDbSavepoint

        public MariaDbSavepoint​(java.lang.String name)
      • MariaDbSavepoint

        public MariaDbSavepoint​(int savepointId)
    • Method Detail

      • getSavepointId

        public int getSavepointId()
                           throws java.sql.SQLException
        Retrieves the generated ID for the savepoint that this Savepoint object represents.
        Specified by:
        getSavepointId in interface java.sql.Savepoint
        Returns:
        the numeric ID of this savepoint
        Throws:
        java.sql.SQLException
      • getSavepointName

        public java.lang.String getSavepointName()
                                          throws java.sql.SQLException
        Retrieves the name of the savepoint that this Savepoint object represents.
        Specified by:
        getSavepointName in interface java.sql.Savepoint
        Returns:
        the name of this savepoint
        Throws:
        java.sql.SQLException
      • rawValue

        public java.lang.String rawValue()