public class DatastoreIdentifierImpl extends Object implements DatastoreIdentifier
| Modifier and Type | Field and Description |
|---|---|
protected String |
catalogName
catalog name.
|
protected DatastoreAdapter |
dba
Datastore adapter
|
protected IdentifierFactory |
factory
Datastore Identifier factory.
|
protected String |
identifierName
The identifier name.
|
protected String |
schemaName
schema/owner name.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DatastoreIdentifierImpl(IdentifierFactory factory,
String sqlIdentifier)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Equality operator to judge if 2 identifiers are equal.
|
String |
getCatalogName()
Accessor for the catalog name
|
String |
getFullyQualifiedName(boolean adapterCase)
Accessor for a fully-qualified version of the identifier name.
|
String |
getIdentifierName()
Accessor for the identifier name part of the identifier.
|
String |
getSchemaName()
Accessor for the schema name
|
int |
hashCode()
Hash code method.
|
void |
setCatalogName(String catalogName)
Sets the catalog name
|
void |
setSchemaName(String schemaName)
Sets the schema name
|
protected String |
toCase(String identifierName)
Mutator for the sql identifier.
|
String |
toString()
Method to output the name of the identifier.
|
protected final DatastoreAdapter dba
protected final IdentifierFactory factory
protected String identifierName
protected String catalogName
protected String schemaName
protected DatastoreIdentifierImpl(IdentifierFactory factory, String sqlIdentifier)
factory - Identifier factorysqlIdentifier - The SQL identifier nameprotected String toCase(String identifierName)
identifierName - The Identifierpublic String getIdentifierName()
getIdentifierName in interface DatastoreIdentifierpublic void setCatalogName(String catalogName)
setCatalogName in interface DatastoreIdentifiercatalogName - The catalog namepublic void setSchemaName(String schemaName)
setSchemaName in interface DatastoreIdentifierschemaName - The schema namepublic String getCatalogName()
getCatalogName in interface DatastoreIdentifierpublic String getSchemaName()
getSchemaName in interface DatastoreIdentifierpublic int hashCode()
public boolean equals(Object obj)
public String toString()
toString in interface DatastoreIdentifiertoString in class Objectpublic final String getFullyQualifiedName(boolean adapterCase)
getFullyQualifiedName in interface DatastoreIdentifieradapterCase - Whether to use adapter case for the returned nameCopyright © 2013. All Rights Reserved.