public final class SchemaReference extends Object implements Schema
| Constructor and Description |
|---|
SchemaReference() |
SchemaReference(String catalogName,
String schemaName) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NamedObject obj) |
boolean |
equals(Object obj) |
<T> T |
getAttribute(String name)
Gets an attribute.
|
<T> T |
getAttribute(String name,
T defaultValue)
Gets an attribute.
|
Map<String,Object> |
getAttributes()
Gets all attributes.
|
String |
getCatalogName() |
String |
getFullName()
Getter for fully qualified name of object.
|
String |
getName()
Getter for name of object.
|
String |
getRemarks()
Getter for remarks.
|
boolean |
hasAttribute(String name)
Checks is an attribute is available.
|
int |
hashCode() |
boolean |
hasRemarks()
Whether remarks are available.
|
NamedObjectKey |
key()
A value guaranteed to be unique in the database for this object.
|
<T> Optional<T> |
lookupAttribute(String name)
Gets an attribute.
|
void |
removeAttribute(String name)
Removes an attribute.
|
void |
setAttribute(String name,
Object value)
Sets an attribute.
|
void |
setRemarks(String remarks)
Setter for remarks.
|
String |
toString() |
void |
withQuoting(Identifiers identifiers)
Allows a strategy for quoting identifiers to be considered.
|
public int compareTo(NamedObject obj)
compareTo in interface Comparable<NamedObject>public <T> T getAttribute(String name)
getAttribute in interface AttributedObjectname - Attribute name.public <T> T getAttribute(String name, T defaultValue)
getAttribute in interface AttributedObjectname - Attribute name.public Map<String,Object> getAttributes()
getAttributes in interface AttributedObjectpublic String getCatalogName()
getCatalogName in interface Schemapublic String getFullName()
NamedObjectgetFullName in interface NamedObjectpublic String getName()
NamedObjectgetName in interface NamedObjectpublic String getRemarks()
DescribedObjectgetRemarks in interface DescribedObjectpublic boolean hasAttribute(String name)
hasAttribute in interface AttributedObjectname - Attribute name.public boolean hasRemarks()
hasRemarks in interface DescribedObjectpublic NamedObjectKey key()
NamedObjectkey in interface NamedObjectpublic <T> Optional<T> lookupAttribute(String name)
lookupAttribute in interface AttributedObjectname - Attribute name.public void removeAttribute(String name)
removeAttribute in interface AttributedObjectname - Attribute namepublic void setAttribute(String name, Object value)
setAttribute in interface AttributedObjectname - Attribute namevalue - Attribute valuepublic void setRemarks(String remarks)
DescribedObjectsetRemarks in interface DescribedObjectremarks - Remarks to setpublic void withQuoting(Identifiers identifiers)
SchemawithQuoting in interface Schemaidentifiers - Identifier quoting strategy.Copyright © 2000-2024 Sualeh Fatehi. All rights reserved.