Class H2Table

    • Constructor Detail

      • H2Table

        public H2Table​(JdbcTemplate jdbcTemplate,
                       H2Database database,
                       H2Schema schema,
                       String name)
        Creates a new H2 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.