|
|||||||||
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.Schema
public class Schema
Database schema.
Constructor Summary | |
---|---|
Schema(java.lang.String name,
Catalog cat)
|
Method Summary | |
---|---|
void |
addRecordListener(RecordListener listener)
Add record listener which will apply to all tables in this schema. |
void |
addTable(Table tab)
|
Table |
createTable(java.lang.String name)
Creates an empty table with the given name. |
boolean |
equals(java.lang.Object other)
|
boolean |
equals(Schema other)
|
java.lang.String |
getAlias()
|
Catalog |
getCatalog()
Returns the catalog to which this schema belongs. |
Datatype |
getDatatype(java.lang.String name)
|
java.lang.String |
getName()
Returns the name of the schema. |
java.lang.String |
getPath()
|
java.lang.Object |
getProperty(java.lang.String property)
|
protected java.util.Comparator |
getRecordComparator()
|
protected java.util.Set |
getRecordListeners()
|
java.lang.String |
getResourceBundleBaseName()
|
static Schema |
getSchema(org.dom4j.Element element)
|
Table |
getTable(java.lang.String name)
Returns the table with the given name. |
java.util.Iterator |
getTableNames()
Returns the names of the tables in this schema. |
java.util.Map |
getTables()
Returns the table with the given name. |
void |
loadTables()
Loads all tables in this schema. |
void |
setAlias(java.lang.String alias)
|
void |
setCatalog(Catalog cat)
Sets the catalog to which this schema belongs. |
void |
setDescriptor(java.lang.String descriptor)
|
void |
setDictionaryFile(java.lang.String filename)
|
void |
setRecordComparator(java.util.Comparator comp)
|
void |
setResourceBundleBaseName(java.lang.String name)
|
void |
setUseName(boolean value)
Sets if schema name should be used in table qualified name. |
void |
toXML(org.xml.sax.ContentHandler handler)
|
void |
upgrade()
Upgrades every table in this schema. |
boolean |
useName()
Tells if schema name should be used in table qualified name. |
Methods inherited from class butler.util.BaseGroovyObjectSupport |
---|
getMetaClass, invokeMethod, setMetaClass, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Schema(java.lang.String name, Catalog cat)
Method Detail |
---|
public java.lang.String getName() throws java.lang.Exception
java.lang.Exception
public java.lang.String getAlias()
public void setAlias(java.lang.String alias)
public Catalog getCatalog() throws java.lang.Exception
java.lang.Exception
public void setCatalog(Catalog cat)
public void setDescriptor(java.lang.String descriptor) throws java.lang.Exception
java.lang.Exception
public java.util.Map getTables()
public java.util.Iterator getTableNames() throws java.lang.Exception
java.lang.Exception
public Table getTable(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void addTable(Table tab) throws java.lang.Exception
java.lang.Exception
public Table createTable(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public void loadTables() throws java.lang.Exception
java.lang.Exception
public void toXML(org.xml.sax.ContentHandler handler) throws java.lang.Exception
java.lang.Exception
public boolean useName()
public void setUseName(boolean value)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public boolean equals(Schema other)
public static Schema getSchema(org.dom4j.Element element) throws java.lang.Exception
java.lang.Exception
public java.lang.String getResourceBundleBaseName()
public void setResourceBundleBaseName(java.lang.String name)
public void addRecordListener(RecordListener listener)
protected java.util.Set getRecordListeners()
protected java.util.Comparator getRecordComparator()
public void setRecordComparator(java.util.Comparator comp)
public void upgrade() throws java.lang.Exception
java.lang.Exception
public java.lang.String getPath()
public Datatype getDatatype(java.lang.String name)
public void setDictionaryFile(java.lang.String filename)
public java.lang.Object getProperty(java.lang.String property)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class butler.util.BaseGroovyObjectSupport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |