|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.SchemaDescriptor
public final class SchemaDescriptor
This class represents a schema descriptor
Field Summary | |
---|---|
private java.lang.String |
aid
|
private int |
collationType
For system schemas, the only possible value for collation type is UCS_BASIC. |
static java.lang.String |
DEFAULT_SCHEMA_UUID
|
static java.lang.String |
DEFAULT_USER_NAME
|
static java.lang.String |
IBM_SYSTEM_CAT_SCHEMA_NAME
|
static java.lang.String |
IBM_SYSTEM_FUN_SCHEMA_NAME
|
static java.lang.String |
IBM_SYSTEM_NULLID_SCHEMA_NAME
|
static java.lang.String |
IBM_SYSTEM_PROC_SCHEMA_NAME
|
static java.lang.String |
IBM_SYSTEM_SCHEMA_NAME
|
static java.lang.String |
IBM_SYSTEM_STAT_SCHEMA_NAME
|
private boolean |
isSYSIBM
|
private boolean |
isSystem
|
private java.lang.String |
name
the public interface for this system: public String getSchemaName(); public String getAuthorizationId(); public void setUUID(UUID uuid); public boolean isSystemSchema(); |
static java.lang.String |
NULLID_SCHEMA_UUID
|
private UUID |
oid
|
static java.lang.String |
SA_USER_NAME
|
static java.lang.String |
SQLJ_SCHEMA_UUID
|
static java.lang.String |
STD_DECLARED_GLOBAL_TEMPORARY_TABLES_SCHEMA_NAME
|
static java.lang.String |
STD_DEFAULT_SCHEMA_NAME
STD_DEFAULT_SCHEMA_NAME is the name of the default schema in databases that use ANSI standard identifier casing. |
static java.lang.String |
STD_SQLJ_SCHEMA_NAME
This schema is used for jar handling procedures. |
static java.lang.String |
STD_SYSTEM_DIAG_SCHEMA_NAME
This schema is for Derby specific system diagnostic procedures and functions which are not available in DB2. |
static java.lang.String |
STD_SYSTEM_SCHEMA_NAME
STD_SYSTEM_SCHEMA_NAME is the name of the system schema in databases that use ANSI standard identifier casing. |
static java.lang.String |
STD_SYSTEM_UTIL_SCHEMA_NAME
This schema is for Derby specific system diagnostic procedures and functions which are not available in DB2. |
static java.lang.String |
SYSCAT_SCHEMA_UUID
UUID's used as key's in the SYSSCHEMA catalog for the system schema's |
static java.lang.String |
SYSCS_DIAG_SCHEMA_UUID
|
static java.lang.String |
SYSCS_UTIL_SCHEMA_UUID
|
static java.lang.String |
SYSFUN_SCHEMA_UUID
|
static java.lang.String |
SYSIBM_SCHEMA_UUID
|
static java.lang.String |
SYSPROC_SCHEMA_UUID
|
static java.lang.String |
SYSSTAT_SCHEMA_UUID
|
static java.lang.String |
SYSTEM_SCHEMA_UUID
|
Fields inherited from interface org.apache.derby.catalog.Dependable |
---|
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW |
Constructor Summary | |
---|---|
SchemaDescriptor(DataDictionary dataDictionary,
java.lang.String name,
java.lang.String aid,
UUID oid,
boolean isSystem)
Constructor for a SchemaDescriptor. |
Method Summary | |
---|---|
void |
drop(LanguageConnectionContext lcc,
Activation activation)
Drop this schema. |
boolean |
equals(java.lang.Object otherObject)
Determine if two SchemaDescriptors are the same. |
java.lang.String |
getAuthorizationId()
Gets the authorization id of the schema |
java.lang.String |
getClassType()
Get the provider's type. |
int |
getCollationType()
Returns the collation type associated with this schema |
DependableFinder |
getDependableFinder()
Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable. |
java.lang.String |
getDescriptorName()
|
java.lang.String |
getDescriptorType()
Each descriptor must identify itself with its type; i.e index, check constraint whatever. |
UUID |
getObjectID()
Get the provider's UUID |
java.lang.String |
getObjectName()
Return the name of this Provider. |
java.lang.String |
getSchemaName()
Gets the name of the schema |
UUID |
getUUID()
Gets the oid of the schema |
int |
hashCode()
Get a hashcode for this SchemaDescriptor |
boolean |
isSchemaWithGrantableRoutines()
Indicate whether this is a system schema with grantable routines |
boolean |
isSYSIBM()
|
boolean |
isSystemSchema()
Indicate whether this is a system schema or not Examples of system schema's include: SYS, SYSIBM, SYSCAT, SYSFUN, SYSPROC, SYSSTAT, and SYSCS_DIAG |
void |
setAuthorizationId(java.lang.String newAuthorizationID)
Sets the authorization id of the schema. |
void |
setUUID(UUID oid)
Sets the oid of the schema |
java.lang.String |
toString()
Prints the contents of the SchemaDescriptor |
Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor |
---|
getColumnDependableFinder, getDataDictionary, getDependableFinder, isPersistent, setDataDictionary |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.derby.catalog.Dependable |
---|
isPersistent |
Field Detail |
---|
public static final java.lang.String STD_SYSTEM_SCHEMA_NAME
public static final java.lang.String IBM_SYSTEM_SCHEMA_NAME
public static final java.lang.String IBM_SYSTEM_CAT_SCHEMA_NAME
public static final java.lang.String IBM_SYSTEM_FUN_SCHEMA_NAME
public static final java.lang.String IBM_SYSTEM_PROC_SCHEMA_NAME
public static final java.lang.String IBM_SYSTEM_STAT_SCHEMA_NAME
public static final java.lang.String IBM_SYSTEM_NULLID_SCHEMA_NAME
public static final java.lang.String STD_SQLJ_SCHEMA_NAME
public static final java.lang.String STD_SYSTEM_DIAG_SCHEMA_NAME
public static final java.lang.String STD_SYSTEM_UTIL_SCHEMA_NAME
public static final java.lang.String STD_DEFAULT_SCHEMA_NAME
public static final java.lang.String SYSCAT_SCHEMA_UUID
public static final java.lang.String SYSFUN_SCHEMA_UUID
public static final java.lang.String SYSPROC_SCHEMA_UUID
public static final java.lang.String SYSSTAT_SCHEMA_UUID
public static final java.lang.String SYSCS_DIAG_SCHEMA_UUID
public static final java.lang.String SYSCS_UTIL_SCHEMA_UUID
public static final java.lang.String NULLID_SCHEMA_UUID
public static final java.lang.String SQLJ_SCHEMA_UUID
public static final java.lang.String SYSTEM_SCHEMA_UUID
public static final java.lang.String SYSIBM_SCHEMA_UUID
public static final java.lang.String DEFAULT_SCHEMA_UUID
public static final java.lang.String STD_DECLARED_GLOBAL_TEMPORARY_TABLES_SCHEMA_NAME
public static final java.lang.String DEFAULT_USER_NAME
public static final java.lang.String SA_USER_NAME
private final java.lang.String name
private UUID oid
private java.lang.String aid
private final boolean isSystem
private final boolean isSYSIBM
private int collationType
Constructor Detail |
---|
public SchemaDescriptor(DataDictionary dataDictionary, java.lang.String name, java.lang.String aid, UUID oid, boolean isSystem)
dataDictionary
- name
- The schema descriptor for this table.oid
- The object idaid
- The authorizatin idisSystem
- boolean, true iff this is a system schema, like SYS,
SYSIBM, SYSCAT, SYSFUN, ....Method Detail |
---|
public java.lang.String getSchemaName()
public java.lang.String getAuthorizationId()
public void setAuthorizationId(java.lang.String newAuthorizationID)
newAuthorizationID
- What is ispublic UUID getUUID()
getUUID
in interface UniqueTupleDescriptor
public void setUUID(UUID oid)
oid
- The object idpublic int getCollationType()
public DependableFinder getDependableFinder()
Dependable
getDependableFinder
in interface Dependable
Dependable.getDependableFinder()
public java.lang.String getObjectName()
getObjectName
in interface Dependable
public UUID getObjectID()
getObjectID
in interface Dependable
public java.lang.String getClassType()
getClassType
in interface Dependable
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
otherObject
- other schemadescriptor
public boolean isSystemSchema()
public boolean isSchemaWithGrantableRoutines()
public boolean isSYSIBM()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getDescriptorName()
getDescriptorName
in class TupleDescriptor
TupleDescriptor.getDescriptorName()
public java.lang.String getDescriptorType()
TupleDescriptor
getDescriptorType
in class TupleDescriptor
TupleDescriptor.getDescriptorType()
public void drop(LanguageConnectionContext lcc, Activation activation) throws StandardException
StandardException
- Schema could not be dropped.
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |