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 DatastoreIdentifier
public void setCatalogName(String catalogName)
setCatalogName
in interface DatastoreIdentifier
catalogName
- The catalogpublic void setSchemaName(String schemaName)
setSchemaName
in interface DatastoreIdentifier
schemaName
- The schemapublic String getCatalogName()
getCatalogName
in interface DatastoreIdentifier
public String getSchemaName()
getSchemaName
in interface DatastoreIdentifier
public int hashCode()
public boolean equals(Object obj)
public String toString()
toString
in interface DatastoreIdentifier
toString
in class Object
public final String getFullyQualifiedName(boolean adapterCase)
getFullyQualifiedName
in interface DatastoreIdentifier
adapterCase
- Whether to use adapter case for the returned nameCopyright © 2017. All rights reserved.