|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enableit.db.darrt.AbstractFileHandler | +--org.enableit.db.darrt.AbstractSchemaHandler
An abstract ancestor that takes care of many of the common operations required when handling the XML and JDBC metadata.
Field Summary |
Fields inherited from class org.enableit.db.darrt.AbstractFileHandler |
ABOUT |
Constructor Summary | |
AbstractSchemaHandler()
|
Method Summary | |
void |
addListener(org.enableit.db.darrt.DarrtListener listener)
Add a class interested in receiving events from the AbstractSchemaHandler. |
void |
addListeners(java.util.List listeners)
Add one or more classes interested in receiving events from the AbstractSchemaHandler. |
java.util.List |
diffSchemas()
Returns the differences between the reference and target schemas as a List of DiffData objects. |
protected org.enableit.db.beans.Database |
getDatabase(org.enableit.db.beans.Provider provider)
Extracts a database schema from a JDBC URL by infering the database type and driver name. |
boolean |
getDebug()
|
java.util.List |
getListeners()
|
org.enableit.db.beans.Provider |
getOnlineRefSchema()
|
org.enableit.db.beans.Provider |
getOnlineTargetSchema()
|
org.enableit.db.beans.Database |
getRefDatabase()
|
java.lang.String |
getRefSchemaName()
|
java.net.URL |
getRefSchemaUrl()
|
java.lang.String |
getTablePattern()
|
org.enableit.db.beans.Database |
getTargetDatabase()
|
java.net.URL |
getTargetSchemaUrl()
Specify a JDBC URL to use as the target data source. |
void |
setDebug(boolean debug)
|
void |
setOnlineRefSchema(org.enableit.db.beans.Provider refProvider)
|
void |
setOnlineTargetSchema(org.enableit.db.beans.Provider targetProvider)
|
void |
setRefDatabase(org.enableit.db.beans.Database refDatabase)
|
void |
setRefSchemaName(java.lang.String refSchemaName)
|
void |
setRefSchemaUrl(java.net.URL newSchemaUrl)
|
void |
setTablePattern(java.lang.String tablePattern)
|
void |
setTargetDatabase(org.enableit.db.beans.Database targetDatabase)
|
void |
setTargetSchemaUrl(java.net.URL newTargetSchemaUrl)
|
Methods inherited from class org.enableit.db.darrt.AbstractFileHandler |
getOperDir, setOperDir |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractSchemaHandler()
Method Detail |
public java.lang.String getTablePattern()
public void setTablePattern(java.lang.String tablePattern)
tablePattern
- A pattern identifying tables to operate on.
Single chars may be represented by '_' and multiple chars by '%'.
public java.lang.String getRefSchemaName()
public void setRefSchemaName(java.lang.String refSchemaName)
refSchemaName
- The name of the reference schema to operate on.public java.net.URL getTargetSchemaUrl()
public void setTargetSchemaUrl(java.net.URL newTargetSchemaUrl)
newTargetSchemaUrl
- public void setOnlineTargetSchema(org.enableit.db.beans.Provider targetProvider)
targetProvider
- A Provider
representing connection
details for the target online schema.public org.enableit.db.beans.Provider getOnlineTargetSchema()
Provider
representing connection details for the
target online schema, or null if not set.public void setTargetDatabase(org.enableit.db.beans.Database targetDatabase)
targetDatabase
- The object representation of the target schema.public org.enableit.db.beans.Database getTargetDatabase()
public java.net.URL getRefSchemaUrl()
public void setRefSchemaUrl(java.net.URL newSchemaUrl)
newSchemaUrl
- public void setOnlineRefSchema(org.enableit.db.beans.Provider refProvider)
refProvider
- A Provider
representing connection
details for the target online schema.public org.enableit.db.beans.Provider getOnlineRefSchema()
Provider
representing connection details for the
reference online schema, or null if not set.public void setRefDatabase(org.enableit.db.beans.Database refDatabase)
public org.enableit.db.beans.Database getRefDatabase()
protected org.enableit.db.beans.Database getDatabase(org.enableit.db.beans.Provider provider) throws SchemaHandlingException
SchemaHandlingException
- If the database url is of an unknown type
(i.e. do not know the Driver to use) or if an error occurs during
the export.public java.util.List diffSchemas() throws SchemaHandlingException
List
of DiffData
objects.
SchemaHandlingException
public void addListener(org.enableit.db.darrt.DarrtListener listener)
listener
- public void addListeners(java.util.List listeners)
listeners
- List of DarrtListener instances.public java.util.List getListeners()
List
of registered listeners.public boolean getDebug()
public void setDebug(boolean debug)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |