|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.triactive.jdo.store.sql.SchemaName
An SQL schema name.
A SchemaName is a name of an SQL schema. Schema names can in turn be qualified with a catalog name. Schema names have the general form:
[ catalog ] . schema
The [catalog] part is represented by a CatalogName
object, and the
schema part is a plain SqlIdentifier
.
Constructor Summary | |
SchemaName(DatabaseAdapter dba,
CatalogName catalogName,
java.lang.String identifier)
Constructs a schema name. |
|
SchemaName(DatabaseAdapter dba,
java.lang.String identifier)
Constructs a schema name. |
Method Summary | |
java.lang.String |
effectiveCatalogName(StoreManager storeMgr)
Returns the effective catalog name for this object. |
boolean |
equals(java.lang.Object obj)
Tests this object for equality with another object. |
static SchemaName |
fromStrings(DatabaseAdapter dba,
java.lang.String catalogName,
java.lang.String schemaName)
Constructs a schema name from strings. |
SchemaName |
fullyQualified(StoreManager storeMgr)
Returns a new schema name object representing this name fully-qualified (if possible) with catalog. |
CatalogName |
getCatalogName()
Returns the catalog name part of this schema name. |
SqlIdentifier |
getIdentifier()
Returns the identifier part of this schema name. |
int |
hashCode()
Returns a hash code value for this object. |
static SchemaName |
parse(DatabaseAdapter dba,
java.lang.String schemaNameStr)
Parses a schema name from a string. |
java.lang.String |
toString()
Returns the SQL string representation of this schema name. |
java.lang.String |
undelimited()
Returns the undelimited string representation of this schema name. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SchemaName(DatabaseAdapter dba, java.lang.String identifier)
dba
- a database adapter for the relevant databaseidentifier
- the SQL identifier value as a stringpublic SchemaName(DatabaseAdapter dba, CatalogName catalogName, java.lang.String identifier)
dba
- a database adapter for the relevant databasecatalogName
- the catalog name part of the schema name, or null
if the name is not catalog-qualifiedidentifier
- the SQL identifier value as a stringMethod Detail |
public CatalogName getCatalogName()
null
if
this name is not catalog-qualified.public SqlIdentifier getIdentifier()
public SchemaName fullyQualified(StoreManager storeMgr)
storeMgr
- the store manager to use to determine the default catalog
public java.lang.String effectiveCatalogName(StoreManager storeMgr)
storeMgr
- the store manager to use to determine the default catalog
null
if the
database doesn't support catalogs.public int hashCode()
public boolean equals(java.lang.Object obj)
obj
- the object to compare with
true
if the objects are equal,
false
otherwise.public java.lang.String toString()
public java.lang.String undelimited()
public static SchemaName parse(DatabaseAdapter dba, java.lang.String schemaNameStr)
dba
- a database adapter for the relevant databaseschemaNameStr
- A schema name in the form "[ catalog ] . schema".
public static SchemaName fromStrings(DatabaseAdapter dba, java.lang.String catalogName, java.lang.String schemaName)
null
if schemaName is null,
otherwise it returns a new SchemaName object using the
SchemaName(DatabaseAdapter, CatalogName, String)
constructor.
dba
- a database adapter for the relevant databasecatalogName
- the catalog name, or null
schemaName
- the schema name, or null
null
if
schemaName is null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |