Uses of Class
org.h2.engine.Database
Packages that use Database
Package
Description
This package contains the parser and the base classes for prepared SQL statements.
Contains DDL (data definition language) and related SQL statements.
Contains DML (data manipulation language) and related SQL statements.
Contains queries.
Contains high level classes of the database and classes that don't fit in another sub-package.
Expressions include mathematical operations, simple values, and others.
Aggregate functions.
Condition expressions.
Functions.
Implementation of the JDBC database metadata API (package java.sql).
Implementation of the Java Management Extension (JMX) features.
Utility classes for compatibility with other database, for example MySQL.
Helper classes to use the MVStore in the H2 database.
Implementation of row and internal result sets.
Schema implementation and objects that are stored in a schema (for example, sequences and constants).
Authentication classes.
Classes related to a table and table meta data.
-
Uses of Database in org.h2.command
Fields in org.h2.command declared as Database -
Uses of Database in org.h2.command.ddl
Methods in org.h2.command.ddl with parameters of type DatabaseModifier and TypeMethodDescriptionprivate void
AlterTableAddConstraint.addConstraintToTable
(Database db, Table table, Constraint constraint) private Table
AlterTableAlterColumn.cloneTableStructure
(Table table, Column[] columns, Database db, String tempName, ArrayList<Column> newColumns) private int
CreateSynonym.createTableSynonym
(Database db) -
Uses of Database in org.h2.command.dml
Methods in org.h2.command.dml with parameters of type Database -
Uses of Database in org.h2.command.query
Methods in org.h2.command.query with parameters of type DatabaseModifier and TypeMethodDescriptionprivate int
Select.mergeGroupByExpressions
(Database db, int index, ArrayList<String> expressionSQL, boolean scanPrevious) -
Uses of Database in org.h2.engine
Fields in org.h2.engine declared as DatabaseModifier and TypeFieldDescriptionprotected Database
DbObject.database
The database.(package private) Database
Engine.DatabaseHolder.database
private final Database
SessionLocal.database
Fields in org.h2.engine with type parameters of type DatabaseModifier and TypeFieldDescriptionprivate WeakReference
<Database> DelayedDatabaseCloser.databaseRef
private static final WeakHashMap
<Database, Void> OnExitDatabaseCloser.DATABASES
private static final ThreadLocal
<Database> Database.META_LOCK_DEBUGGING_DB
Methods in org.h2.engine that return DatabaseModifier and TypeMethodDescriptionfinal Database
DbObject.getDatabase()
Get the database.SessionLocal.getDatabase()
Methods in org.h2.engine with parameters of type DatabaseModifier and TypeMethodDescriptionstatic User
UserBuilder.buildUser
(AuthenticationInfo authenticationInfo, Database database, boolean persistent) Build the database user starting from authentication informations.private static void
Engine.checkClustering
(ConnectionInfo ci, Database database) (package private) static void
MetaRecord.execute
(Database db, Prepared command, DatabaseEventListener listener, String sql) Execute the meta data statement.(package private) Prepared
MetaRecord.prepare
(Database db, SessionLocal systemSession, DatabaseEventListener listener) Prepares the meta data statement.(package private) void
MetaRecord.prepareAndExecute
(Database db, SessionLocal systemSession, DatabaseEventListener listener) Execute the meta data statement.(package private) static void
Register database instance to close one on the JVM process shutdown.private static void
MetaRecord.throwException
(Database db, DatabaseEventListener listener, DbException e, String sql) (package private) static void
OnExitDatabaseCloser.unregister
(Database db) Unregister database instance.Constructors in org.h2.engine with parameters of type DatabaseModifierConstructorDescriptionprotected
Initialize some attributes of this object.(package private)
DelayedDatabaseCloser
(Database db, int delayInMillis) Right
(Database db, int id, RightOwner grantee, int grantedRight, DbObject grantedObject) Right
(Database db, int id, RightOwner grantee, Role grantedRole) protected
RightOwner
(Database database, int id, String name, int traceModuleId) SessionLocal
(Database database, User user, int id) -
Uses of Database in org.h2.expression
Fields in org.h2.expression declared as DatabaseConstructors in org.h2.expression with parameters of type DatabaseModifierConstructorDescriptionExpressionColumn
(Database database, String schemaName, String tableAlias) Creates a new instance of column reference for_ROWID_
column as normal expression.ExpressionColumn
(Database database, String schemaName, String tableAlias, String columnName) Creates a new instance of column reference for regular columns as normal expression.ExpressionColumn
(Database database, String schemaName, String tableAlias, String columnName, boolean quotedName) Creates a new instance of column reference for regular columns as normal expression.ExpressionColumn
(Database database, Column column) Creates a new column reference for metadata of queries; should not be used as normal expression. -
Uses of Database in org.h2.expression.aggregate
Methods in org.h2.expression.aggregate with parameters of type DatabaseModifier and TypeMethodDescription(package private) static Index
Percentile.getColumnIndex
(Database database, Expression on) Get the index (if any) for the column specified in the inverse distribution function. -
Uses of Database in org.h2.expression.condition
Constructors in org.h2.expression.condition with parameters of type DatabaseModifierConstructorDescriptionCompareLike
(Database db, Expression left, boolean not, boolean whenOperand, Expression right, Expression escape, CompareLike.LikeType likeType) -
Uses of Database in org.h2.expression.function
Methods in org.h2.expression.function with parameters of type DatabaseModifier and TypeMethodDescriptionstatic boolean
BuiltinFunctions.isBuiltinFunction
(Database database, String upperName) Returns whether specified function is a non-keyword built-in function. -
Uses of Database in org.h2.jdbc.meta
Methods in org.h2.jdbc.meta with parameters of type DatabaseModifier and TypeMethodDescriptionprivate void
DatabaseMetaLocal.getIndexInfo
(Value catalogValue, Value schemaValue, Table table, boolean unique, boolean approximate, SimpleResult result, Database db) -
Uses of Database in org.h2.jmx
Fields in org.h2.jmx declared as DatabaseMethods in org.h2.jmx with parameters of type DatabaseModifier and TypeMethodDescriptionstatic void
DatabaseInfo.registerMBean
(ConnectionInfo connectionInfo, Database database) Registers an MBean for the database.Constructors in org.h2.jmx with parameters of type Database -
Uses of Database in org.h2.mode
Methods in org.h2.mode with parameters of type DatabaseModifier and TypeMethodDescriptionstatic ModeFunction
ModeFunction.getFunction
(Database database, String name) Get an instance of the given function for this database.Constructors in org.h2.mode with parameters of type DatabaseModifierConstructorDescriptionPgCatalogSchema
(Database database, User owner) Creates new instance ofpg_catalog
schema. -
Uses of Database in org.h2.mvstore.db
Fields in org.h2.mvstore.db declared as DatabaseModifier and TypeFieldDescriptionprivate final Database
LobStorageMap.database
private final Database
MVTempResult.database
Methods in org.h2.mvstore.db with parameters of type DatabaseModifier and TypeMethodDescriptionRowDataType.Factory.create
(ByteBuffer buff, MetaType<Database> metaDataType, Database database) DataType
<?> ValueDataType.Factory.create
(ByteBuffer buff, MetaType<Database> metaType, Database database) static ResultExternal
MVTempResult.of
(Database database, Expression[] expressions, boolean distinct, int[] distinctIndexes, int visibleColumnCount, int resultColumnCount, SortOrder sort) Creates MVStore-based temporary result.private static IndexColumn[]
MVTable.prepareColumns
(Database database, IndexColumn[] cols, IndexType indexType) Prepares columns of an index.Method parameters in org.h2.mvstore.db with type arguments of type DatabaseModifier and TypeMethodDescriptionRowDataType.Factory.create
(ByteBuffer buff, MetaType<Database> metaDataType, Database database) DataType
<?> ValueDataType.Factory.create
(ByteBuffer buff, MetaType<Database> metaType, Database database) void
RowDataType.save
(WriteBuffer buff, MetaType<Database> metaType) void
ValueDataType.save
(WriteBuffer buff, MetaType<Database> metaType) Constructors in org.h2.mvstore.db with parameters of type DatabaseModifierConstructorDescriptionLobStorageMap
(Database database) (package private)
MVPlainTempResult
(Database database, Expression[] expressions, int visibleColumnCount, int resultColumnCount) Creates a new plain temporary result.MVPrimaryIndex
(Database db, MVTable table, int id, IndexColumn[] columns, IndexType indexType) MVSecondaryIndex
(Database db, MVTable table, int id, String indexName, IndexColumn[] columns, int uniqueColumnCount, IndexType indexType) (package private)
MVSortedTempResult
(Database database, Expression[] expressions, boolean distinct, int[] distinctIndexes, int visibleColumnCount, int resultColumnCount, SortOrder sort) Creates a new sorted temporary result.MVSpatialIndex
(Database db, MVTable table, int id, String indexName, IndexColumn[] columns, int uniqueColumnCount, IndexType indexType) Constructor.(package private)
MVTempResult
(Database database, Expression[] expressions, int visibleColumnCount, int resultColumnCount) Creates a new temporary result.Creates the store.ValueDataType
(Database database, int[] sortTypes) -
Uses of Database in org.h2.result
Methods in org.h2.result with parameters of type DatabaseModifier and TypeMethodDescriptionstatic int[]
SortOrder.addNullOrdering
(Database database, int[] sortTypes) Add explicitSortOrder.NULLS_FIRST
orSortOrder.NULLS_LAST
where they aren't already specified. -
Uses of Database in org.h2.schema
Constructors in org.h2.schema with parameters of type DatabaseModifierConstructorDescriptionInformationSchema
(Database database, User owner) Creates new instance of information schema.MetaSchema
(Database database, int id, String schemaName, User owner) Creates a new instance of meta data schema.Schema
(Database database, int id, String schemaName, RightOwner owner, boolean system) Create a new schema object. -
Uses of Database in org.h2.security.auth
Methods in org.h2.security.auth with parameters of type DatabaseModifier and TypeMethodDescriptionAuthenticator.authenticate
(AuthenticationInfo authenticationInfo, Database database) Perform user authentication.final User
DefaultAuthenticator.authenticate
(AuthenticationInfo authenticationInfo, Database database) void
Initialize the authenticator.void
Initializes the authenticator.private boolean
DefaultAuthenticator.updateRoles
(AuthenticationInfo authenticationInfo, User user, Database database) -
Uses of Database in org.h2.table
Methods in org.h2.table with parameters of type DatabaseModifier and TypeMethodDescriptionstatic void
TableView.clearIndexCaches
(Database database) Clear the cached indexes for all sessions.static Table
TableView.createShadowTableForRecursiveTableExpression
(boolean isTemporary, SessionLocal targetSession, String cteViewName, Schema schema, List<Column> columns, Database db) Create a table for a recursive query.static TableView
TableView.createTableViewMaybeRecursive
(Schema schema, int id, String name, String querySQL, ArrayList<Parameter> parameters, Column[] columnTemplates, SessionLocal session, boolean literalsChecked, boolean isTableExpression, boolean isTemporary, Database db) Create a view.Constructors in org.h2.table with parameters of type Database