|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.enableit.db.darrt.AbstractDDLGenerator
|
+--org.enableit.db.darrt.ext.DeclarativeDDLGenerator
RDBMS-specific extensions backed by XML files.
| Field Summary | |
static java.lang.String |
ABOUT
CVS info about this class and its current version |
| Fields inherited from class org.enableit.db.darrt.AbstractDDLGenerator |
EOL |
| Fields inherited from interface org.enableit.db.darrt.DDLGenerator |
NO_DEFINITION_AVAILABLE |
| Constructor Summary | |
DeclarativeDDLGenerator()
Default constructor. |
|
DeclarativeDDLGenerator(java.lang.String resourceName)
Constructor that also sets the resource to configure with. |
|
| Method Summary | |
java.util.List |
getCreate(java.lang.Object dataObject)
Create a database object that does not currently exist. |
java.lang.String |
getDataType(java.lang.String schemaDataType)
Returns this RDBMS' implementation for the JDBC type. |
java.lang.String |
getFormattedDate(java.lang.String colName,
java.lang.String format)
Returns this RDBMS' implementation of formatted date (including time and datetime). |
java.lang.String |
getGenericDefault(java.lang.String dbmsDefault)
Converts the DBMS specific default string into a generic (Darrt) one. |
java.util.List |
getModify(org.enableit.db.darrt.beans.DiffData diff)
Returns the DDL to create the modification between the reference and targets. |
java.lang.String |
getName()
Return the name of this DDLGenerator. |
java.lang.String |
getSubstring(java.lang.String colName,
int from,
int to)
Returns this RDBMS' implementation of substring. |
void |
setResourceName(java.lang.String resourceName)
Sets the resource name to read to instantiate from. |
| Methods inherited from class org.enableit.db.darrt.AbstractDDLGenerator |
getCreateIndex |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.enableit.db.darrt.DDLGenerator |
getCreateIndex |
| Field Detail |
public static final java.lang.String ABOUT
| Constructor Detail |
public DeclarativeDDLGenerator()
public DeclarativeDDLGenerator(java.lang.String resourceName)
throws ConfigurationException
resourceName - The resource name to read.
ConfigurationException - If no meta-data definition available
for the specified resourceName.| Method Detail |
public void setResourceName(java.lang.String resourceName)
throws ConfigurationException
resourceName - The resource name to read config'n from.
ConfigurationException - If no meta-data definition available
for the specified resourceName.public java.lang.String getName()
DDLGenerator
getName in interface DDLGeneratorpublic java.util.List getCreate(java.lang.Object dataObject)
getCreate in interface DDLGeneratordataObject - Java representation of the data object to create.
List of DDL statements (String type).public java.util.List getModify(org.enableit.db.darrt.beans.DiffData diff)
DDLGenerator
getModify in interface DDLGeneratordiff -
List of DDL statements (String type).public java.lang.String getDataType(java.lang.String schemaDataType)
public java.lang.String getSubstring(java.lang.String colName,
int from,
int to)
DDLGenerator
getSubstring in interface DDLGeneratorDDLGenerator.getSubstring(java.lang.String, int, int)
public java.lang.String getFormattedDate(java.lang.String colName,
java.lang.String format)
DDLGenerator
getFormattedDate in interface DDLGeneratorDDLGenerator.getFormattedDate(java.lang.String, java.lang.String)public java.lang.String getGenericDefault(java.lang.String dbmsDefault)
DDLGenerator
getGenericDefault in interface DDLGeneratordbmsDefault -
DDLGenerator.getGenericDefault(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||