public abstract class MetaSchema extends Schema
AGGREGATE, comment, COMMENT, CONSTANT, CONSTRAINT, database, DOMAIN, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, trace, TRIGGER, USERADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Constructor and Description |
|---|
MetaSchema(Database database,
int id,
java.lang.String schemaName,
User owner)
Creates a new instance of meta data schema.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
findTableOrView(SessionLocal session,
java.lang.String name)
Try to find a table or view with this name.
|
java.util.Collection<Table> |
getAllTablesAndViews(SessionLocal session)
Get all tables and views.
|
protected abstract java.util.Map<java.lang.String,Table> |
getMap(SessionLocal session)
Returns map of tables in this schema.
|
Table |
getTableOrView(SessionLocal session,
java.lang.String name)
Get the table or view with the given name.
|
Table |
getTableOrViewByName(SessionLocal session,
java.lang.String name)
Get the table with the given name, if any.
|
boolean |
isEmpty()
Return whether is this schema is empty (does not contain any objects).
|
add, canDrop, createSynonym, createTable, createTableLink, findAggregate, findConstant, findConstraint, findDomain, findFunction, findFunctionOrAggregate, findIndex, findSequence, findTrigger, freeUniqueName, getAll, getAll, getAllConstants, getAllConstraints, getAllDomains, getAllFunctionsAndAggregates, getAllIndexes, getAllSequences, getAllSynonyms, getAllTriggers, getChildren, getConstant, getConstraint, getCreateSQL, getDomain, getIndex, getOwner, getSequence, getSynonym, getTableEngineParams, getType, getUniqueConstraintName, getUniqueDomainConstraintName, getUniqueIndexName, remove, removeChildrenAndResources, rename, reserveUniqueName, resolveTableOrView, resolveTableOrView, setTableEngineParamscheckRename, getComment, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, getSQL, getSQL, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic Table findTableOrView(SessionLocal session, java.lang.String name)
SchemafindTableOrView in class Schemasession - the sessionname - the object namepublic java.util.Collection<Table> getAllTablesAndViews(SessionLocal session)
SchemagetAllTablesAndViews in class Schemasession - the session, null to exclude meta tablespublic Table getTableOrView(SessionLocal session, java.lang.String name)
SchemagetTableOrView in class Schemasession - the sessionname - the table or view namepublic Table getTableOrViewByName(SessionLocal session, java.lang.String name)
SchemagetTableOrViewByName in class Schemasession - the sessionname - the table nameprotected abstract java.util.Map<java.lang.String,Table> getMap(SessionLocal session)
session - the session