| Modifier and Type | Field and Description |
|---|---|
| private static final JooqLogger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static final @NotNull SQLDialect | Returns: The appropriateSQLDialect or SQLDialect#DEFAULT
if no dialect could be derived from the connection. Never
null."Guess" the |
| public static final @NotNull SQLDialect | Returns: The appropriateSQLDialect or SQLDialect#DEFAULT
if no dialect could be derived from the connection. Never
null."Guess" the |
| public static final @NotNull SQLDialect | Returns: The appropriateSQLDialect or SQLDialect#DEFAULT
if no dialect could be derived from the connection. Never
null."Guess" the |
| private static final @NotNull SQLDialect | |
| public static final @NotNull SQLDialect | Returns: The appropriateSQLDialect or SQLDialect#DEFAULT
if no dialect could be derived from the connection. Never
null."Guess" the |
| private static SQLDialect | |
| public static final @NotNull String | Returns: The appropriate JDBC driver class or"java.sql.Driver" if no driver class could be
derived from the URL. Never null."Guess" the JDBC driver from a |
| public static final @NotNull String | |
| private static final SQLDialect | |
| private static final SQLDialect | |
| private static final SQLDialect | |
| private static final SQLDialect | |
| private static final SQLDialect | |
| public static final void | |
| public static final void | |
| public static final void | |
| public static final void | safeClose(ResultSet resultSet, PreparedStatement statement)
Safely close a result set and / or a statement. |
| public static final void | |
| public static final void | |
| public static final void | |
| public static final void | |
| public static final void | |
| public static final void | |
| public static final <T> T | |
| public static final <T extends Number> T | |
| public static final Boolean | |
| public static final <T> T | |
| public static final <T extends Number> T | |
| public static final Boolean | |
| public static final <T> T | wasNull(CallableStatement
The data source from which a value was read statement, T The value that was read value)Convenient way to check if a JDBC-originated record was |
| public static final <T extends Number> T | wasNull(CallableStatement
The data source from which a value was read statement, T The value that was read value)Convenient way to check if a JDBC-originated record was |
| public static final Boolean | wasNull(CallableStatement
The data source from which a value was read statement, Boolean The value that was read value)Convenient way to check if a JDBC-originated record was |
| log | back to summary |
|---|---|
| private static final JooqLogger log | |
| JDBCUtils | back to summary |
|---|---|
| private JDBCUtils() No instances. | |
| dialect | back to summary |
|---|---|
| public static final @NotNull SQLDialect dialect(Connection connection) "Guess" the
This method tries to guess the
| |
| dialect | back to summary |
|---|---|
| public static final @NotNull SQLDialect dialect(ConnectionFactory connection) "Guess" the
This method tries to guess the
| |
| dialect | back to summary |
|---|---|
| public static final @NotNull SQLDialect dialect(Connection connection) "Guess" the
This method tries to guess the
| |
| dialect | back to summary |
|---|---|
private static final @NotNull SQLDialect dialect(String url, int majorVersion, int minorVersion, String productVersion)
| |
| dialect | back to summary |
|---|---|
| public static final @NotNull SQLDialect dialect(String url) "Guess" the
| |
| dialectFromProductName | back to summary |
|---|---|
| private static SQLDialect dialectFromProductName(String product) | |
| driver | back to summary |
|---|---|
| public static final @NotNull String driver(SQLDialect dialect) "Guess" the JDBC driver from a | |
| driver | back to summary |
|---|---|
| public static final @NotNull String driver(String url) "Guess" the JDBC driver from a connection URL. | |
| firebirdDialect | back to summary |
|---|---|
| private static final SQLDialect firebirdDialect(int majorVersion) | |
| h2Dialect | back to summary |
|---|---|
| private static final SQLDialect h2Dialect(int majorVersion, int minorVersion, String productVersion) | |
| mariadbDialect | back to summary |
|---|---|
| private static final SQLDialect mariadbDialect(int majorVersion, int minorVersion) | |
| mysqlDialect | back to summary |
|---|---|
| private static final SQLDialect mysqlDialect(int majorVersion, int minorVersion, String productVersion) | |
| postgresDialect | back to summary |
|---|---|
| private static final SQLDialect postgresDialect(int majorVersion, int minorVersion) | |
| safeClose | back to summary |
|---|---|
| public static final void safeClose(Connection connection) Safely close a connection.
This method will silently ignore if | |
| safeClose | back to summary |
|---|---|
| public static final void safeClose(Statement statement) Safely close a statement.
This method will silently ignore if | |
| safeClose | back to summary |
|---|---|
| public static final void safeClose(ResultSet resultSet) Safely close a result set.
This method will silently ignore if | |
| safeClose | back to summary |
|---|---|
| public static final void safeClose(ResultSet resultSet, PreparedStatement statement) Safely close a result set and / or a statement.
This method will silently ignore if | |
| safeClose | back to summary |
|---|---|
| public static final void safeClose(Closeable closeable) Safely close a closeable.
This method will silently ignore if | |
| safeClose | back to summary |
|---|---|
| public static final void safeClose(AutoCloseable closeable) Safely close a closeable.
This method will silently ignore if | |
| safeFree | back to summary |
|---|---|
| public static final void safeFree(Blob blob) Safely free a blob.
This method will silently ignore if | |
| safeFree | back to summary |
|---|---|
| public static final void safeFree(Clob clob) Safely free a clob.
This method will silently ignore if | |
| safeFree | back to summary |
|---|---|
| public static final void safeFree(SQLXML xml) Safely free an XML object.
This method will silently ignore if | |
| safeFree | back to summary |
|---|---|
| public static final void safeFree(Array array) Safely free an Array object.
This method will silently ignore if | |
| wasNull | back to summary |
|---|---|
| public static final <T> T wasNull(SQLInput stream, T value) throws SQLException Convenient way to check if a JDBC-originated record was This is useful to check if primitive types obtained from the JDBC API were actually SQL NULL values.
| |
| wasNull | back to summary |
|---|---|
| public static final <T extends Number> T wasNull(SQLInput stream, T value) throws SQLException Convenient way to check if a JDBC-originated record was This is useful to check if primitive types obtained from the JDBC API were actually SQL NULL values.
| |
| wasNull | back to summary |
|---|---|
| public static final Boolean wasNull(SQLInput stream, Boolean value) throws SQLException Convenient way to check if a JDBC-originated record was This is useful to check if primitive types obtained from the JDBC API were actually SQL NULL values.
| |
| wasNull | back to summary |
|---|---|
| public static final <T> T wasNull(ResultSet rs, T value) throws SQLException Convenient way to check if a JDBC-originated record was This is useful to check if primitive types obtained from the JDBC API were actually SQL NULL values.
| |
| wasNull | back to summary |
|---|---|
| public static final <T extends Number> T wasNull(ResultSet rs, T value) throws SQLException Convenient way to check if a JDBC-originated record was This is useful to check if primitive types obtained from the JDBC API were actually SQL NULL values.
| |
| wasNull | back to summary |
|---|---|
| public static final Boolean wasNull(ResultSet rs, Boolean value) throws SQLException Convenient way to check if a JDBC-originated record was This is useful to check if primitive types obtained from the JDBC API were actually SQL NULL values.
| |
| wasNull | back to summary |
|---|---|
| public static final <T> T wasNull(CallableStatement statement, T value) throws SQLException Convenient way to check if a JDBC-originated record was This is useful to check if primitive types obtained from the JDBC API were actually SQL NULL values.
| |
| wasNull | back to summary |
|---|---|
| public static final <T extends Number> T wasNull(CallableStatement statement, T value) throws SQLException Convenient way to check if a JDBC-originated record was This is useful to check if primitive types obtained from the JDBC API were actually SQL NULL values.
| |
| wasNull | back to summary |
|---|---|
| public static final Boolean wasNull(CallableStatement statement, Boolean value) throws SQLException Convenient way to check if a JDBC-originated record was This is useful to check if primitive types obtained from the JDBC API were actually SQL NULL values.
| |