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 voidAlterTableAddConstraint.addConstraintToTable(Database db, Table table, Constraint constraint) private TableAlterTableAlterColumn.cloneTableStructure(Table table, Column[] columns, Database db, String tempName, ArrayList<Column> newColumns) private intCreateSynonym.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 intSelect.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 DatabaseDbObject.databaseThe database.(package private) DatabaseEngine.DatabaseHolder.databaseprivate final DatabaseSessionLocal.databaseFields in org.h2.engine with type parameters of type DatabaseModifier and TypeFieldDescriptionprivate WeakReference<Database> DelayedDatabaseCloser.databaseRefprivate static final WeakHashMap<Database, Void> OnExitDatabaseCloser.DATABASESprivate static final ThreadLocal<Database> Database.META_LOCK_DEBUGGING_DBMethods in org.h2.engine that return DatabaseModifier and TypeMethodDescriptionfinal DatabaseDbObject.getDatabase()Get the database.SessionLocal.getDatabase()Methods in org.h2.engine with parameters of type DatabaseModifier and TypeMethodDescriptionstatic UserUserBuilder.buildUser(AuthenticationInfo authenticationInfo, Database database, boolean persistent) Build the database user starting from authentication informations.private static voidEngine.checkClustering(ConnectionInfo ci, Database database) (package private) static voidMetaRecord.execute(Database db, Prepared command, DatabaseEventListener listener, String sql) Execute the meta data statement.(package private) PreparedMetaRecord.prepare(Database db, SessionLocal systemSession, DatabaseEventListener listener) Prepares the meta data statement.(package private) voidMetaRecord.prepareAndExecute(Database db, SessionLocal systemSession, DatabaseEventListener listener) Execute the meta data statement.(package private) static voidRegister database instance to close one on the JVM process shutdown.private static voidMetaRecord.throwException(Database db, DatabaseEventListener listener, DbException e, String sql) (package private) static voidOnExitDatabaseCloser.unregister(Database db) Unregister database instance.Constructors in org.h2.engine with parameters of type DatabaseModifierConstructorDescriptionprotectedInitialize 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) protectedRightOwner(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 IndexPercentile.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 booleanBuiltinFunctions.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 voidDatabaseMetaLocal.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 voidDatabaseInfo.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 ModeFunctionModeFunction.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_catalogschema. -
Uses of Database in org.h2.mvstore.db
Classes in org.h2.mvstore.db that implement interfaces with type arguments of type DatabaseModifier and TypeClassDescriptionfinal classThe data type for rows.static final classfinal classA row type.static final classFields in org.h2.mvstore.db declared as DatabaseModifier and TypeFieldDescriptionprivate final DatabaseLobStorageMap.databaseprivate final DatabaseMVTempResult.databaseMethods 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 ResultExternalMVTempResult.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) voidRowDataType.save(WriteBuffer buff, MetaType<Database> metaType) voidValueDataType.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_FIRSTorSortOrder.NULLS_LASTwhere 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 UserDefaultAuthenticator.authenticate(AuthenticationInfo authenticationInfo, Database database) voidInitialize the authenticator.voidInitializes the authenticator.private booleanDefaultAuthenticator.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 voidTableView.clearIndexCaches(Database database) Clear the cached indexes for all sessions.static TableTableView.createShadowTableForRecursiveTableExpression(boolean isTemporary, SessionLocal targetSession, String cteViewName, Schema schema, List<Column> columns, Database db) Create a table for a recursive query.static TableViewTableView.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