|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object butler.util.BaseGroovyObjectSupport butler.sql.metadata.Database
public class Database
Representing a relational database. Normally a database instance. A database corrensponds to a jdbc data source. Database is a container class for database catalogs.
Constructor Summary | |
---|---|
Database(java.lang.String alias)
Constructs a database, with a given alias. |
Method Summary | |
---|---|
void |
addCatalog(java.lang.String alias,
Catalog cat)
|
void |
addCatalogAlias(java.lang.String alias,
java.lang.String name)
Adds a catalog alias. |
boolean |
equals(Database other)
|
java.lang.String |
getAlias()
Returns the alias for this database. |
Catalog |
getCatalog(java.lang.String name)
Returns the specified catalog. |
java.util.Iterator |
getCatalogNames()
|
java.util.Map |
getCatalogs()
|
java.sql.Connection |
getConnection()
|
javax.sql.DataSource |
getDataSource()
Returns the JDBC data source for this database. |
Catalog |
getDefaultCatalog()
Returns the default catalog. |
Schema |
getDefaultSchema()
|
SQLHelper |
getHelper()
|
java.sql.DatabaseMetaData |
getMetaData()
|
java.lang.Object |
getProperty(java.lang.String property)
|
java.lang.String |
getQuote()
|
java.lang.String |
getTypeName(int type)
|
int |
hashCode()
|
void |
loadCatalogs()
|
void |
setDataSource(javax.sql.DataSource ds)
Assigns the JDBC data source for this datbase. |
void |
setDefaultCatalog(Catalog cat)
|
void |
setHelper(SQLHelper helper)
|
void |
setQuote(java.lang.String quote)
|
void |
setXADataSource(javax.sql.XADataSource xads)
|
void |
toXML(org.xml.sax.ContentHandler handler)
|
Methods inherited from class butler.util.BaseGroovyObjectSupport |
---|
getMetaClass, invokeMethod, setMetaClass, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Database(java.lang.String alias) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public java.lang.String getAlias()
public Catalog getCatalog(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void addCatalog(java.lang.String alias, Catalog cat)
public java.lang.Object getProperty(java.lang.String property)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class butler.util.BaseGroovyObjectSupport
public java.util.Map getCatalogs()
public Catalog getDefaultCatalog() throws java.lang.Exception
java.lang.Exception
public void setDefaultCatalog(Catalog cat)
public Schema getDefaultSchema() throws java.lang.Exception
java.lang.Exception
public void addCatalogAlias(java.lang.String alias, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public javax.sql.DataSource getDataSource() throws java.lang.Exception
java.lang.Exception
public void setDataSource(javax.sql.DataSource ds) throws java.lang.Exception
java.lang.Exception
public void setXADataSource(javax.sql.XADataSource xads)
public java.sql.Connection getConnection() throws java.lang.Exception
java.lang.Exception
public boolean equals(Database other)
public java.sql.DatabaseMetaData getMetaData() throws java.lang.Exception
java.lang.Exception
public SQLHelper getHelper() throws java.lang.Exception
java.lang.Exception
public void setHelper(SQLHelper helper)
public java.lang.String getQuote() throws java.lang.Exception
java.lang.Exception
public void setQuote(java.lang.String quote)
public java.lang.String getTypeName(int type) throws java.lang.Exception
java.lang.Exception
public int hashCode()
hashCode
in class java.lang.Object
public void toXML(org.xml.sax.ContentHandler handler) throws java.lang.Exception
java.lang.Exception
public void loadCatalogs() throws java.lang.Exception
java.lang.Exception
public java.util.Iterator getCatalogNames() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |