|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enableit.db.darrt.DDLFactory
Utility Singleton for creating Data Definition Language.
Field Summary | |
protected static org.apache.log4j.Logger |
logger
The Log4J Logger doing the logging. |
Method Summary | |
java.util.List |
getCreate(org.enableit.db.beans.Provider provider,
java.lang.Object dataObject)
Deprecated. Use getGenerator(provider).getCreate(dataObject) . |
org.enableit.db.darrt.DDLGenerator |
getGenerator(org.enableit.db.beans.Provider provider)
Returns the appropriate generator for the provider specified. |
org.enableit.db.darrt.DDLGenerator |
getGenerator(java.lang.String productName)
Returns the appropriate generator for the provider specified. |
static org.enableit.db.darrt.DDLFactory |
getInstance()
Factory method. |
java.util.List |
getModify(org.enableit.db.beans.Provider provider,
org.enableit.db.darrt.beans.DiffData diff)
Deprecated. Use getGenerator(provider).getModify(diff) . |
void |
install(java.sql.Connection conn,
org.enableit.db.darrt.beans.DiffData diff)
Install the necessary changes in the provider database to eliminate the differences in the diffs parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
Logger
doing the logging.
Method Detail |
public static org.enableit.db.darrt.DDLFactory getInstance()
public java.util.List getCreate(org.enableit.db.beans.Provider provider, java.lang.Object dataObject) throws ConfigurationException
getGenerator(provider).getCreate(dataObject)
.
provider
-
List
of DDL statements (String
type).
ConfigurationException
public java.util.List getModify(org.enableit.db.beans.Provider provider, org.enableit.db.darrt.beans.DiffData diff) throws ConfigurationException
getGenerator(provider).getModify(diff)
.
provider
- diff
-
List
of DDL statements (String
type).
ConfigurationException
public void install(java.sql.Connection conn, org.enableit.db.darrt.beans.DiffData diff) throws SchemaHandlingException
diffs
parameter.
It is critically important that error handling is such that either all changes are applied or none. In the latter case reasons should be provided.
SchemaHandlingException
public org.enableit.db.darrt.DDLGenerator getGenerator(org.enableit.db.beans.Provider provider) throws ConfigurationException
provider
- Defines database DDLGenerator
is required for. May be null
.
DDLGenerator
.
ConfigurationException
public org.enableit.db.darrt.DDLGenerator getGenerator(java.lang.String productName) throws ConfigurationException
productName
- Defines database DDLGenerator
is required for. May be null
.
DDLGenerator
.
ConfigurationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |