Top Description Fields Constructors Methods
org.h2.schema

public final Class InformationSchema

extends MetaSchema
Class Inheritance
Imports
java.util.Collections, .HashMap, .Map, org.h2.engine.Constants, .Database, .SessionLocal, .User, org.h2.table.InformationSchemaTable, .InformationSchemaTableLegacy, .Table

Information schema.

Field Summary

Modifier and TypeField and Description
private volatile HashMap<String, Table>
private volatile HashMap<String, Table>

Constructor Summary

AccessConstructor and Description
public
InformationSchema(Database
the database
database
,
User
the owner of the schema (system user)
owner
)

Creates new instance of information schema.

Method Summary

Modifier and TypeMethod and Description
private synchronized HashMap<String, Table>
fillMap(boolean old)

protected Map<String, Table>
getMap(SessionLocal
the session
session
)

Implements abstract org.h2.schema.MetaSchema.getMap.

Returns map of tables in this schema.

Inherited from org.h2.schema.MetaSchema:
findTableOrViewgetAllTablesAndViewsgetTableOrViewgetTableOrViewByNameisEmpty

Field Detail

newTablesback to summary
private volatile HashMap<String, Table> newTables
oldTablesback to summary
private volatile HashMap<String, Table> oldTables

Constructor Detail

InformationSchemaback to summary
public InformationSchema(Database database, User owner)

Creates new instance of information schema.

Parameters
database:Database

the database

owner:User

the owner of the schema (system user)

Method Detail

fillMapback to summary
private synchronized HashMap<String, Table> fillMap(boolean old)
getMapback to summary
protected Map<String, Table> getMap(SessionLocal session)

Implements abstract org.h2.schema.MetaSchema.getMap.

Doc from org.h2.schema.MetaSchema.getMap.

Returns map of tables in this schema.

Parameters
session:SessionLocal

the session

Returns:Map<String, Table>

map of tables in this schema

Annotations
@Override