- All Superinterfaces:
AutoCloseable
,DSLContext
,Scope
- All Known Implementing Classes:
DefaultCloseableDSLContext
A resourceful
DSLContext
that should be closed in a
try-with-resources statement.-
Method Summary
Modifier and TypeMethodDescriptionvoid
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, bindContext, call, call, commentOnColumn, commentOnColumn, commentOnColumn, commentOnTable, commentOnTable, commentOnTable, commentOnView, commentOnView, commentOnView, commit, commits, connection, connectionResult, createDatabase, createDatabase, createDatabase, createDatabaseIfNotExists, createDatabaseIfNotExists, createDatabaseIfNotExists, createDomain, createDomain, createDomain, createDomainIfNotExists, createDomainIfNotExists, createDomainIfNotExists, createFunction, createFunction, createGlobalTemporaryTable, createGlobalTemporaryTable, createGlobalTemporaryTable, createIndex, createIndex, createIndex, createIndex, createIndexIfNotExists, createIndexIfNotExists, createIndexIfNotExists, createIndexIfNotExists, createOrReplaceFunction, createOrReplaceFunction, createOrReplaceProcedure, createOrReplaceProcedure, createOrReplaceTrigger, createOrReplaceTrigger, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createOrReplaceView, createProcedure, createProcedure, createSchema, createSchema, createSchema, createSchemaIfNotExists, createSchemaIfNotExists, createSchemaIfNotExists, createSequence, createSequence, createSequence, createSequenceIfNotExists, createSequenceIfNotExists, createSequenceIfNotExists, createTable, createTable, createTable, createTableIfNotExists, createTableIfNotExists, createTableIfNotExists, createTemporaryTable, createTemporaryTable, createTemporaryTable, createTemporaryTableIfNotExists, createTemporaryTableIfNotExists, createTemporaryTableIfNotExists, createTrigger, createTrigger, createType, createType, createUniqueIndex, createUniqueIndex, createUniqueIndex, createUniqueIndex, createUniqueIndexIfNotExists, 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, dropFunction, dropFunction, dropFunctionIfExists, dropFunctionIfExists, dropIndex, dropIndex, dropIndex, dropIndexIfExists, dropIndexIfExists, dropIndexIfExists, dropProcedure, dropProcedure, dropProcedureIfExists, dropProcedureIfExists, dropSchema, dropSchema, dropSchema, dropSchemaIfExists, dropSchemaIfExists, dropSchemaIfExists, dropSequence, dropSequence, dropSequence, dropSequenceIfExists, dropSequenceIfExists, dropSequenceIfExists, dropTable, dropTable, dropTable, dropTableIfExists, dropTableIfExists, dropTableIfExists, dropTemporaryTable, dropTemporaryTable, dropTemporaryTable, dropTemporaryTableIfExists, dropTemporaryTableIfExists, dropTemporaryTableIfExists, dropTrigger, dropTrigger, dropTriggerIfExists, dropTriggerIfExists, 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, fetchGroups, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchLazy, fetchMany, fetchMany, fetchMany, fetchMany, fetchMany, fetchMap, 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, parsingConnectionFactory, 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, setLocal, setSchema, setSchema, setSchema, statements, statements, transaction, transaction, transactionAsync, transactionAsync, transactionResult, transactionResult, transactionResultAsync, transactionResultAsync, truncate, truncate, truncate, truncateTable, truncateTable, truncateTable, update, updateQuery, version, versions, 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 Details
-
close
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.
-