-
- All Superinterfaces:
AutoCloseable
,DSLContext
,Scope
- All Known Implementing Classes:
DefaultCloseableDSLContext
public interface CloseableDSLContext extends DSLContext, AutoCloseable
A resourcefulDSLContext
that should be closed in a try-with-resources statement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close the underlying resources, if any resources have been allocated when constructing thisDSLContext
.-
Methods inherited from interface org.jooq.DSLContext
alterDatabase, alterDatabase, alterDatabase, alterDatabaseIfExists, alterDatabaseIfExists, alterDatabaseIfExists, alterDomain, alterDomain, alterDomain, alterDomainIfExists, alterDomainIfExists, alterDomainIfExists, alterIndex, alterIndex, alterIndex, alterIndexIfExists, alterIndexIfExists, alterIndexIfExists, alterSchema, alterSchema, alterSchema, alterSchemaIfExists, alterSchemaIfExists, alterSchemaIfExists, alterSequence, alterSequence, alterSequence, alterSequenceIfExists, alterSequenceIfExists, alterSequenceIfExists, alterTable, alterTable, alterTable, alterTableIfExists, alterTableIfExists, alterTableIfExists, alterType, alterType, alterView, alterView, alterView, alterViewIfExists, alterViewIfExists, alterViewIfExists, attach, attach, batch, batch, batch, batch, batch, batch, batch, batch, batchDelete, batchDelete, batched, batchedResult, batchInsert, batchInsert, batchMerge, batchMerge, batchStore, batchStore, batchUpdate, batchUpdate, begin, begin, bind, bindContext, commentOnColumn, commentOnColumn, commentOnTable, commentOnTable, commentOnTable, commentOnView, commentOnView, commentOnView, connection, connectionResult, createDatabase, createDatabase, createDatabase, createDatabaseIfNotExists, createDatabaseIfNotExists, createDatabaseIfNotExists, createDomain, createDomain, createDomain, createDomainIfNotExists, createDomainIfNotExists, createDomainIfNotExists, createGlobalTemporaryTable, createGlobalTemporaryTable, createGlobalTemporaryTable, createIndex, createIndex, createIndex, createIndex, createIndexIfNotExists, createIndexIfNotExists, createIndexIfNotExists, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createSchema, createSchema, createSchema, createSchemaIfNotExists, createSchemaIfNotExists, createSchemaIfNotExists, createSequence, createSequence, createSequence, createSequenceIfNotExists, createSequenceIfNotExists, createSequenceIfNotExists, createTable, createTable, createTable, createTableIfNotExists, createTableIfNotExists, createTableIfNotExists, createTemporaryTable, createTemporaryTable, createTemporaryTable, createTemporaryTableIfNotExists, createTemporaryTableIfNotExists, createTemporaryTableIfNotExists, createType, createType, createUniqueIndex, createUniqueIndex, createUniqueIndex, createUniqueIndex, createUniqueIndexIfNotExists, createUniqueIndexIfNotExists, createUniqueIndexIfNotExists, createView, createView, createView, createView, createView, createView, createView, createView, createView, createViewIfNotExists, createViewIfNotExists, createViewIfNotExists, createViewIfNotExists, createViewIfNotExists, createViewIfNotExists, createViewIfNotExists, createViewIfNotExists, createViewIfNotExists, currval, currval, currval, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, ddl, delete, deleteFrom, deleteQuery, diagnosticsConnection, diagnosticsDataSource, dropDatabase, dropDatabase, dropDatabase, dropDatabaseIfExists, dropDatabaseIfExists, dropDatabaseIfExists, dropDomain, dropDomain, dropDomain, dropDomainIfExists, dropDomainIfExists, dropDomainIfExists, dropIndex, dropIndex, dropIndex, dropIndexIfExists, dropIndexIfExists, dropIndexIfExists, dropSchema, dropSchema, dropSchema, dropSchemaIfExists, dropSchemaIfExists, dropSchemaIfExists, dropSequence, dropSequence, dropSequence, dropSequenceIfExists, dropSequenceIfExists, dropSequenceIfExists, dropTable, dropTable, dropTable, dropTableIfExists, dropTableIfExists, dropTableIfExists, dropTemporaryTable, dropTemporaryTable, dropTemporaryTable, dropTemporaryTableIfExists, dropTemporaryTableIfExists, dropTemporaryTableIfExists, dropType, dropType, dropType, dropType, dropType, dropTypeIfExists, dropTypeIfExists, dropTypeIfExists, dropTypeIfExists, dropTypeIfExists, dropView, dropView, dropView, dropViewIfExists, dropViewIfExists, dropViewIfExists, execute, execute, execute, execute, execute, executeDelete, executeDelete, executeInsert, executeUpdate, executeUpdate, explain, extractBindValues, extractParam, extractParams, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchAny, fetchAny, fetchAny, fetchAny, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchAsync, fetchByExample, fetchCount, fetchCount, fetchCount, fetchCount, fetchCount, fetchExists, fetchExists, fetchExists, fetchExists, fetchExists, fetchFromCSV, fetchFromCSV, fetchFromCSV, fetchFromCSV, fetchFromHTML, fetchFromJSON, fetchFromStringData, fetchFromStringData, fetchFromStringData, fetchFromTXT, fetchFromTXT, fetchFromXML, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchMany, fetchMany, fetchMany, fetchMany, fetchMany, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptional, fetchOptionalValue, fetchOptionalValue, fetchOptionalValue, fetchOptionalValue, fetchOptionalValue, fetchOptionalValue, fetchOptionalValue, fetchOptionalValue, fetchOptionalValue, fetchOptionalValue, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchSingle, fetchStream, fetchStream, fetchStream, fetchStream, fetchStream, fetchStream, fetchStream, fetchStream, fetchStream, fetchStream, fetchStream, fetchStream, fetchStream, fetchValue, fetchValue, fetchValue, fetchValue, fetchValue, fetchValue, fetchValue, fetchValue, fetchValue, fetchValue, fetchValue, fetchValue, fetchValues, fetchValues, fetchValues, fetchValues, fetchValues, fetchValues, fetchValues, fetchValues, fetchValues, fetchValues, fetchValues, grant, grant, grant, informationSchema, informationSchema, informationSchema, informationSchema, informationSchema, informationSchema, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertInto, insertQuery, lastID, loadInto, map, map, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, mergeInto, meta, meta, meta, meta, meta, meta, meta, meta, meta, migrateTo, mock, mockResult, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newRecord, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, newResult, nextval, nextval, nextval, nextvals, parser, parsingConnection, parsingDataSource, queries, queries, query, query, query, query, render, renderContext, renderInlined, renderNamedOrInlinedParams, renderNamedParams, resultQuery, resultQuery, resultQuery, resultQuery, revoke, revoke, revoke, revokeGrantOptionFor, revokeGrantOptionFor, revokeGrantOptionFor, select, select, select, select, select, select, select, select, select, select, select, select, select, select, select, select, select, select, select, select, select, select, select, select, selectCount, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectDistinct, selectFrom, selectFrom, selectFrom, selectFrom, selectFrom, selectFrom, selectOne, selectQuery, selectQuery, selectZero, set, setCatalog, setCatalog, setCatalog, setSchema, setSchema, setSchema, statements, statements, transaction, transaction, transactionAsync, transactionAsync, transactionResult, transactionResult, transactionResultAsync, transactionResultAsync, truncate, truncate, truncate, truncateTable, truncateTable, truncateTable, update, updateQuery, version, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, with, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive, withRecursive
-
-
-
-
Method Detail
-
close
void close() throws DataAccessException
Close the underlying resources, if any resources have been allocated when constructing thisDSLContext
.Some
DSLContext
constructors, such asDSL.using(String)
,DSL.using(String, Properties)
, orDSL.using(String, String, String)
allocate aConnection
resource, which is inaccessible to the outside of theDSLContext
implementation. Proper resource management must thus be done via thisclose()
method.- Specified by:
close
in interfaceAutoCloseable
- Throws:
DataAccessException
- When something went wrong closing the underlying resources.
-
-