public class DatastoreIdentifierImpl extends Object implements DatastoreIdentifier
| Modifier and Type | Field and Description |
|---|---|
protected String |
catalogName
catalog
|
protected DatastoreAdapter |
dba
Datastore adapter
|
protected IdentifierFactory |
factory
Datastore Identifier factory.
|
protected String |
name
The name.
|
protected String |
schemaName
schema
|
| 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
|
String |
getFullyQualifiedName(boolean adapterCase)
Accessor for a fully-qualified version of the identifier name.
|
String |
getName()
Accessor for the name.
|
String |
getSchemaName()
Accessor for the schema
|
int |
hashCode()
Hash code method.
|
void |
setCatalogName(String catalogName)
Sets the catalog
|
void |
setSchemaName(String schemaName)
Sets the schema
|
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 name
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 getName()
getName in interface DatastoreIdentifierpublic void setCatalogName(String catalogName)
setCatalogName in interface DatastoreIdentifiercatalogName - The catalogpublic void setSchemaName(String schemaName)
setSchemaName in interface DatastoreIdentifierschemaName - The schemapublic 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 © 2019. All rights reserved.