Class PostgreSQLTable

    • Constructor Detail

      • PostgreSQLTable

        protected PostgreSQLTable​(JdbcTemplate jdbcTemplate,
                                  PostgreSQLDatabase database,
                                  PostgreSQLSchema schema,
                                  String name)
        Creates a new PostgreSQL table.
        Parameters:
        jdbcTemplate - The Jdbc Template for communicating with the DB.
        database - The database-specific support.
        schema - The schema this table lives in.
        name - The name of the table.
    • Method Detail

      • doLock

        protected void doLock()
                       throws SQLException
        Description copied from class: BaseTable
        Locks this table in this schema using a read/write pessimistic lock until the end of the current transaction. Note that unlock() still needs to be called even if your database unlocks the table implicitly (in which case doUnlock() may be a no-op) in order to maintain the lock count correctly.
        Specified by:
        doLock in class BaseTable
        Throws:
        SQLException - when this table in this schema could not be locked.