public abstract class BaseCatalogDecorator extends Object implements Catalog, Reducible
| Constructor and Description |
|---|
BaseCatalogDecorator(Catalog catalog) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NamedObject o) |
<T> T |
getAttribute(String name,
T defaultValue)
Gets an attribute.
|
Map<String,Object> |
getAttributes()
Gets all attributes.
|
Collection<ColumnDataType> |
getColumnDataTypes()
Gets the column data types
|
Collection<ColumnDataType> |
getColumnDataTypes(Schema schema)
Gets the column data types defined in the schema, by name.
|
CrawlInfo |
getCrawlInfo() |
DatabaseInfo |
getDatabaseInfo() |
String |
getFullName()
Getter for fully qualified name of object.
|
JdbcDriverInfo |
getJdbcDriverInfo() |
String |
getLookupKey()
A value guaranteed to be unique in the database for this object.
|
String |
getName()
Getter for name of object.
|
String |
getRemarks()
Getter for remarks.
|
Collection<Routine> |
getRoutines()
Gets the routine.
|
Collection<Routine> |
getRoutines(Schema schema)
Gets the routine.
|
SchemaCrawlerInfo |
getSchemaCrawlerInfo() |
Collection<Schema> |
getSchemas()
Gets the schemas.
|
Collection<Sequence> |
getSequences()
Gets the sequences.
|
Collection<Sequence> |
getSequences(Schema schema)
Gets the sequences.
|
Collection<Synonym> |
getSynonyms()
Gets the synonyms.
|
Collection<Synonym> |
getSynonyms(Schema schema)
Gets the synonyms.
|
Collection<ColumnDataType> |
getSystemColumnDataTypes()
Gets the column data types defined by the RDBMS system.
|
Collection<Table> |
getTables()
Gets the tables.
|
Collection<Table> |
getTables(Schema schema)
Gets the tables.
|
boolean |
hasAttribute(String name)
Checks is an attribute is available.
|
boolean |
hasRemarks()
Whether remarks are available.
|
com.annimon.stream.Optional<? extends ColumnDataType> |
lookupColumnDataType(Schema schema,
String name)
Gets the column data types defined in the schema, by name.
|
com.annimon.stream.Optional<? extends Routine> |
lookupRoutine(Schema schema,
String name)
Gets a routine by unqualified name.
|
com.annimon.stream.Optional<? extends Schema> |
lookupSchema(String name)
Gets a schema by name.
|
com.annimon.stream.Optional<? extends Sequence> |
lookupSequence(Schema schema,
String name)
Gets the sequence by unqualified name.
|
com.annimon.stream.Optional<? extends Synonym> |
lookupSynonym(Schema schema,
String name)
Gets the synonym by unqualified name.
|
com.annimon.stream.Optional<? extends ColumnDataType> |
lookupSystemColumnDataType(String name)
Gets the column data types defined by the RDBMS system, by name.
|
com.annimon.stream.Optional<? extends Table> |
lookupTable(Schema schema,
String name)
Gets a table by unqualified name.
|
<N extends NamedObject> |
reduce(Class<N> clazz,
Reducer<N> reducer) |
void |
removeAttribute(String name)
Removes an attribute.
|
void |
setAttribute(String name,
Object value)
Sets an attribute.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, lookupAttributepublic BaseCatalogDecorator(Catalog catalog)
public int compareTo(NamedObject o)
compareTo in interface Comparable<NamedObject>public <T> T getAttribute(String name, T defaultValue)
AttributedObjectgetAttribute in interface AttributedObjectname - Attribute name.public Map<String,Object> getAttributes()
AttributedObjectgetAttributes in interface AttributedObjectpublic Collection<ColumnDataType> getColumnDataTypes()
CataloggetColumnDataTypes in interface Catalogpublic Collection<ColumnDataType> getColumnDataTypes(Schema schema)
CataloggetColumnDataTypes in interface Catalogpublic CrawlInfo getCrawlInfo()
getCrawlInfo in interface Catalogpublic DatabaseInfo getDatabaseInfo()
getDatabaseInfo in interface Catalogpublic String getFullName()
NamedObjectgetFullName in interface NamedObjectpublic JdbcDriverInfo getJdbcDriverInfo()
getJdbcDriverInfo in interface Catalogpublic String getLookupKey()
NamedObjectgetLookupKey in interface NamedObjectpublic String getName()
NamedObjectgetName in interface NamedObjectpublic String getRemarks()
DescribedObjectgetRemarks in interface DescribedObjectpublic Collection<Routine> getRoutines()
CataloggetRoutines in interface Catalogpublic Collection<Routine> getRoutines(Schema schema)
CataloggetRoutines in interface Catalogpublic SchemaCrawlerInfo getSchemaCrawlerInfo()
getSchemaCrawlerInfo in interface Catalogpublic Collection<Schema> getSchemas()
CataloggetSchemas in interface Catalogpublic Collection<Sequence> getSequences()
CataloggetSequences in interface CatalogCatalog.getSequences()public Collection<Sequence> getSequences(Schema schema)
CataloggetSequences in interface Catalogschema - Catalog.getSequences(schemacrawler.schema.Schema)public Collection<Synonym> getSynonyms()
CataloggetSynonyms in interface Catalogpublic Collection<Synonym> getSynonyms(Schema schema)
CataloggetSynonyms in interface Catalogpublic Collection<ColumnDataType> getSystemColumnDataTypes()
CataloggetSystemColumnDataTypes in interface Catalogpublic Collection<Table> getTables()
Catalogpublic Collection<Table> getTables(Schema schema)
Catalogpublic boolean hasAttribute(String name)
AttributedObjecthasAttribute in interface AttributedObjectname - Attribute name.public boolean hasRemarks()
DescribedObjecthasRemarks in interface DescribedObjectpublic com.annimon.stream.Optional<? extends ColumnDataType> lookupColumnDataType(Schema schema, String name)
CataloglookupColumnDataType in interface Catalogname - Namepublic com.annimon.stream.Optional<? extends Routine> lookupRoutine(Schema schema, String name)
CataloglookupRoutine in interface Catalogname - Namepublic com.annimon.stream.Optional<? extends Schema> lookupSchema(String name)
CataloglookupSchema in interface Catalogname - Schema namepublic com.annimon.stream.Optional<? extends Sequence> lookupSequence(Schema schema, String name)
CataloglookupSequence in interface Catalogschema - name - Catalog.lookupSequence(schemacrawler.schema.Schema,
java.lang.String)public com.annimon.stream.Optional<? extends Synonym> lookupSynonym(Schema schema, String name)
CataloglookupSynonym in interface Catalogname - Namepublic com.annimon.stream.Optional<? extends ColumnDataType> lookupSystemColumnDataType(String name)
CataloglookupSystemColumnDataType in interface Catalogname - Column data type namepublic com.annimon.stream.Optional<? extends Table> lookupTable(Schema schema, String name)
CataloglookupTable in interface Catalogname - Namepublic <N extends NamedObject> void reduce(Class<N> clazz, Reducer<N> reducer)
public void removeAttribute(String name)
AttributedObjectremoveAttribute in interface AttributedObjectname - Attribute namepublic void setAttribute(String name, Object value)
AttributedObjectsetAttribute in interface AttributedObjectname - Attribute namevalue - Attribute valueCopyright © 2000-2017 Sualeh Fatehi. All rights reserved.