org.argouml.persistence
Class DBLoader
java.lang.Object
|
+--org.argouml.persistence.DBLoader
- public class DBLoader
- extends java.lang.Object
This class contains the functionality to load a model from a
mysql database. At the moment the DB must have the name "uml",
otherwise it won't work. Additionally, you need a "db.ini" file
in the Argo root-directory or as parameter -Dargo.dbconfig="c:\db.ini"
Model information for static structure and use case diagrams can now be stored
to a mySQL database. The adaption to any other JDBC capable database should be
easy by adjusting the DB-scheme, since ArgoUML contains clean JDBC code. Graphical
information is not supported yet.
- Version:
- 1.0
Field Summary |
protected static org.apache.log4j.Category |
cat
|
Method Summary |
boolean |
hasConnection()
test whether we can use this DBLoader |
static void |
main(java.lang.String[] Args)
Don't use main(), it's only for testing! |
ru.novosoft.uml.model_management.MModel |
read(java.lang.String modelName)
This method is called from ActionLoadModelFromDb. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cat
protected static org.apache.log4j.Category cat
DBLoader
public DBLoader()
hasConnection
public boolean hasConnection()
- test whether we can use this DBLoader
read
public ru.novosoft.uml.model_management.MModel read(java.lang.String modelName)
- This method is called from ActionLoadModelFromDb. It's the only
public method, the only one you actually need to call to get a MModel
- Parameters:
modelName
- The name of the model you want to read from the database- Returns:
- the constructed model
main
public static void main(java.lang.String[] Args)
throws java.lang.Exception
- Don't use main(), it's only for testing!