Package org.h2.jdbc

Interface JdbcStatementBackwardsCompat

All Known Implementing Classes:
JdbcCallableStatement, JdbcPreparedStatement, JdbcStatement

public interface JdbcStatementBackwardsCompat
Allows us to compile on older platforms, while still implementing the methods from the newer JDBC API.
  • Method Summary

    Modifier and Type
    Method
    Description
    enquoteIdentifier(String identifier, boolean alwaysQuote)
    Enquotes the specified identifier.
    boolean
    Checks if specified identifier may be used without quotes.
  • Method Details

    • enquoteIdentifier

      String enquoteIdentifier(String identifier, boolean alwaysQuote) throws SQLException
      Enquotes the specified identifier.
      Parameters:
      identifier - identifier to quote if required
      alwaysQuote - if true identifier will be quoted unconditionally
      Returns:
      specified identifier quoted if required or explicitly requested
      Throws:
      SQLException - on failure
    • isSimpleIdentifier

      boolean isSimpleIdentifier(String identifier) throws SQLException
      Checks if specified identifier may be used without quotes.
      Parameters:
      identifier - identifier to check
      Returns:
      is specified identifier may be used without quotes
      Throws:
      SQLException - on failure