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 DatastoreIdentifier
public void setCatalogName(String catalogName)
setCatalogName
in interface DatastoreIdentifier
catalogName
- The catalog namepublic void setSchemaName(String schemaName)
setSchemaName
in interface DatastoreIdentifier
schemaName
- The schema namepublic 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 © 2023. All rights reserved.