com.googlecode.jdbw.metadata
Class Catalog
java.lang.Object
com.googlecode.jdbw.metadata.Catalog
- All Implemented Interfaces:
- Comparable<Catalog>
public class Catalog
- extends Object
- implements Comparable<Catalog>
A database catalog, sometimes known as a "database" on the database server.
This is normally the highest level of organization in the database, where
each data domain is assigned a distinct catalog. A catalog will in turn
consist of one or more schemas that divides the objects further.
Some database servers only supports one catalog. If the concept of catalog
doesn't exist in the terminology of the server you are using, JDBW can be
expected to create a "dummy" catalog object for you.
- Author:
- Martin Berglund
- See Also:
Schema
Catalog
public Catalog(MetaDataResolver metaDataResolver,
String name)
getName
public String getName()
getSchemas
public List<Schema> getSchemas()
throws SQLException
- Throws:
SQLException
getSchema
public Schema getSchema(String schemaName)
throws SQLException
- Throws:
SQLException
compareTo
public int compareTo(Catalog o)
- Specified by:
compareTo in interface Comparable<Catalog>
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2012. All Rights Reserved.