|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.devaki.nextobjects.util.TorqueWrapper
This class is responsible for starting torque-generator It also write '${project}-schema.xml' it also write torque's project.properties additional build.properties might be passed to torque-gen throught APP_HOME/defaultbuild.properties
Constructor Summary | |
TorqueWrapper()
Constructor do nothing except avoid instanciation |
Method Summary | |
void |
clean()
Make clean. |
void |
createDB(PhysicalModel db)
Run create-db task |
void |
genDoc(PhysicalModel pDatabase)
Generate Documentation |
void |
genDTD(PhysicalModel db)
Generate DTD |
void |
genObjectModel(PhysicalModel db)
Generate Object-Model |
void |
genOjb(PhysicalModel pDatabase)
Generate OJB |
void |
genSQL(PhysicalModel pDatabase)
Generate SQL for the current model |
void |
inheritColumns(PhysicalModel model)
Inherits all columns move all the columns of a table to it's immediate parent |
void |
insertSQL(PhysicalModel db)
Run insert-sql task |
void |
jdbc2xml(PhysicalModel db)
Generate XML from JDBC |
void |
makeBuildProperties(PhysicalModel pDatabase)
create the file build.properties that is neccessary to run Torque |
void |
runBuild(java.lang.ClassLoader coreLoader,
java.lang.String pTarget)
Call to ant for the torque project |
void |
runTask(PhysicalModel pDatabase,
java.lang.String pTarget)
Call to ant for the torque project |
void |
writeIdTableSchema(PhysicalModel pDatabase)
Write the torque's id-table-schema |
void |
writeXML(PhysicalModel pDatabase)
Transform the model to XML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TorqueWrapper()
Method Detail |
public void genObjectModel(PhysicalModel db)
db
- the databasepublic void genDTD(PhysicalModel db)
db
- the databasepublic void jdbc2xml(PhysicalModel db)
db
- the databasepublic void createDB(PhysicalModel db)
db
- the databasepublic void insertSQL(PhysicalModel db)
db
- the databasepublic void inheritColumns(PhysicalModel model)
model
- Description of the Parameterhttp://db.apache.org/torque/inheritance-guide.html
public void genDoc(PhysicalModel pDatabase)
pDatabase
- the databasepublic void genOjb(PhysicalModel pDatabase)
pDatabase
- the databasepublic void genSQL(PhysicalModel pDatabase)
pDatabase
- the databasepublic void writeIdTableSchema(PhysicalModel pDatabase)
pDatabase
- Description of the Parameterpublic void runTask(PhysicalModel pDatabase, java.lang.String pTarget)
pDatabase
- the databasepTarget
- the torque targetpublic void runBuild(java.lang.ClassLoader coreLoader, java.lang.String pTarget)
coreLoader
- the class loaderpTarget
- the torque targetpublic void clean()
public void makeBuildProperties(PhysicalModel pDatabase)
pDatabase
- Description of the Parameterpublic void writeXML(PhysicalModel pDatabase) throws javax.xml.transform.TransformerException, org.xml.sax.SAXException, java.io.IOException
pDatabase
- the database
org.xml.sax.SAXException
- SAXException
java.io.IOException
- IOException
javax.xml.transform.TransformerException
- TransformerException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |