Uses of Class
org.h2.engine.Database
-
Packages that use Database Package Description org.h2.command This package contains the parser and the base classes for prepared SQL statements.org.h2.command.ddl Contains DDL (data definition language) and related SQL statements.org.h2.command.dml Contains DML (data manipulation language) and related SQL statements.org.h2.command.query Contains queries.org.h2.engine Contains high level classes of the database and classes that don't fit in another sub-package.org.h2.expression Expressions include mathematical operations, simple values, and others.org.h2.expression.aggregate Aggregate functions.org.h2.expression.condition Condition expressions.org.h2.expression.function Functions.org.h2.jdbc.meta Implementation of the JDBC database metadata API (package java.sql).org.h2.jmx Implementation of the Java Management Extension (JMX) features.org.h2.mode Utility classes for compatibility with other database, for example MySQL.org.h2.mvstore.db Helper classes to use the MVStore in the H2 database.org.h2.result Implementation of row and internal result sets.org.h2.schema Schema implementation and objects that are stored in a schema (for example, sequences and constants).org.h2.security.auth Authentication classes.org.h2.table Classes related to a table and table meta data. -
-
Uses of Database in org.h2.command
Fields in org.h2.command declared as Database Modifier and Type Field Description private Database
Parser. database
-
Uses of Database in org.h2.command.ddl
Methods in org.h2.command.ddl with parameters of type Database Modifier and Type Method Description private void
AlterTableAddConstraint. addConstraintToTable(Database db, Table table, Constraint constraint)
private Table
AlterTableAlterColumn. cloneTableStructure(Table table, Column[] columns, Database db, java.lang.String tempName, java.util.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 Modifier and Type Method Description private void
ScriptCommand. dumpRights(Database db)
-
Uses of Database in org.h2.command.query
Methods in org.h2.command.query with parameters of type Database Modifier and Type Method Description private int
Select. mergeGroupByExpressions(Database db, int index, java.util.ArrayList<java.lang.String> expressionSQL, boolean scanPrevious)
-
Uses of Database in org.h2.engine
Fields in org.h2.engine declared as Database Modifier and Type Field Description protected Database
DbObject. database
The database.(package private) Database
Engine.DatabaseHolder. database
private Database
SessionLocal. database
Fields in org.h2.engine with type parameters of type Database Modifier and Type Field Description private java.lang.ref.WeakReference<Database>
DelayedDatabaseCloser. databaseRef
private static java.util.WeakHashMap<Database,java.lang.Void>
OnExitDatabaseCloser. DATABASES
private static java.lang.ThreadLocal<Database>
Database. META_LOCK_DEBUGGING_DB
Methods in org.h2.engine that return Database Modifier and Type Method Description Database
DbObject. getDatabase()
Get the database.Database
SessionLocal. getDatabase()
Methods in org.h2.engine with parameters of type Database Modifier and Type Method Description static 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, java.lang.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
OnExitDatabaseCloser. register(Database db)
Register database instance to close one on the JVM process shutdown.private static void
MetaRecord. throwException(Database db, DatabaseEventListener listener, DbException e, java.lang.String sql)
(package private) static void
OnExitDatabaseCloser. unregister(Database db)
Unregister database instance.Constructors in org.h2.engine with parameters of type Database Constructor Description Comment(Database database, int id, DbObject obj)
DbObject(Database db, int objectId, java.lang.String name, int traceModuleId)
Initialize some attributes of this object.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)
RightOwner(Database database, int id, java.lang.String name, int traceModuleId)
Role(Database database, int id, java.lang.String roleName, boolean system)
SessionLocal(Database database, User user, int id)
Setting(Database database, int id, java.lang.String settingName)
User(Database database, int id, java.lang.String userName, boolean systemUser)
-
Uses of Database in org.h2.expression
Fields in org.h2.expression declared as Database Modifier and Type Field Description private Database
ExpressionColumn. database
Constructors in org.h2.expression with parameters of type Database Constructor Description ExpressionColumn(Database database, java.lang.String schemaName, java.lang.String tableAlias)
Creates a new instance of column reference for_ROWID_
column as normal expression.ExpressionColumn(Database database, java.lang.String schemaName, java.lang.String tableAlias, java.lang.String columnName)
Creates a new instance of column reference for regular columns as normal expression.ExpressionColumn(Database database, java.lang.String schemaName, java.lang.String tableAlias, java.lang.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 Database Modifier and Type Method Description (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 Database Constructor Description CompareLike(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 Database Modifier and Type Method Description static boolean
BuiltinFunctions. isBuiltinFunction(Database database, java.lang.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 Database Modifier and Type Method Description private 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 Database Modifier and Type Field Description private Database
DatabaseInfo. database
Database.Methods in org.h2.jmx with parameters of type Database Modifier and Type Method Description static void
DatabaseInfo. registerMBean(ConnectionInfo connectionInfo, Database database)
Registers an MBean for the database.Constructors in org.h2.jmx with parameters of type Database Constructor Description DatabaseInfo(Database database)
-
Uses of Database in org.h2.mode
Methods in org.h2.mode with parameters of type Database Modifier and Type Method Description static ModeFunction
ModeFunction. getFunction(Database database, java.lang.String name)
Get an instance of the given function for this database.Constructors in org.h2.mode with parameters of type Database Constructor Description PgCatalogSchema(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 Database Modifier and Type Field Description private Database
LobStorageMap. database
private Database
MVTempResult. database
Methods in org.h2.mvstore.db with parameters of type Database Modifier and Type Method Description RowDataType
RowDataType.Factory. create(java.nio.ByteBuffer buff, MetaType<Database> metaDataType, Database database)
DataType<?>
ValueDataType.Factory. create(java.nio.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 Database Modifier and Type Method Description RowDataType
RowDataType.Factory. create(java.nio.ByteBuffer buff, MetaType<Database> metaDataType, Database database)
DataType<?>
ValueDataType.Factory. create(java.nio.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 Database Constructor Description LobStorageMap(Database database)
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, java.lang.String indexName, IndexColumn[] columns, int uniqueColumnCount, IndexType indexType)
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, java.lang.String indexName, IndexColumn[] columns, int uniqueColumnCount, IndexType indexType)
Constructor.MVTempResult(Database database, Expression[] expressions, int visibleColumnCount, int resultColumnCount)
Creates a new temporary result.Store(Database db)
Creates the store.ValueDataType(Database database, int[] sortTypes)
-
Uses of Database in org.h2.result
Methods in org.h2.result with parameters of type Database Modifier and Type Method Description static 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 Database Constructor Description InformationSchema(Database database, User owner)
Creates new instance of information schema.MetaSchema(Database database, int id, java.lang.String schemaName, User owner)
Creates a new instance of meta data schema.Schema(Database database, int id, java.lang.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 Database Modifier and Type Method Description User
Authenticator. authenticate(AuthenticationInfo authenticationInfo, Database database)
Perform user authentication.User
DefaultAuthenticator. authenticate(AuthenticationInfo authenticationInfo, Database database)
void
Authenticator. init(Database database)
Initialize the authenticator.void
DefaultAuthenticator. init(Database database)
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 Database Modifier and Type Method Description static void
TableView. clearIndexCaches(Database database)
Clear the cached indexes for all sessions.static Table
TableView. createShadowTableForRecursiveTableExpression(boolean isTemporary, SessionLocal targetSession, java.lang.String cteViewName, Schema schema, java.util.List<Column> columns, Database db)
Create a table for a recursive query.static TableView
TableView. createTableViewMaybeRecursive(Schema schema, int id, java.lang.String name, java.lang.String querySQL, java.util.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 Constructor Description DualTable(Database database)
Create a new range with the given start and end expressions.
-