Interface Session

    • Method Detail

      • getCurrentSchema

        Schema getCurrentSchema()
        Retrieves the current schema, which is the default owner of new database objects. In many databases, the current schema is also used to lookup tables whenever the schema qualifier is omitted.
      • getSchema

        Schema getSchema​(String name)
        Retrieves the schema with this name in the database.
      • changeCurrentSchemaTo

        void changeCurrentSchemaTo​(Schema schema)
        Sets the current schema, which is the default owner of new database objects. In many databases, the current schema is also used to lookup tables whenever the schema qualifier is omitted.
      • lock

        <T> T lock​(Table table,
                   Callable<T> callable)
        Locks this table and executes this callable.
        Returns:
        The result of the callable.
      • restoreOriginalState

        void restoreOriginalState()
        Undoes all changes to database settings and variables whose scope is bound to the lifetime of the JDBC connection. An example of such state is the search_path setting of PostgreSQL. Methods that may change state are:

        Will only undo changes that have been made through this object. Changes made by migration scripts are not accounted for.

      • getJdbcConnection

        Connection getJdbcConnection()