org.argouml.persistence
Class DBWriter

java.lang.Object
  |
  +--org.argouml.persistence.DBWriter

public class DBWriter
extends java.lang.Object

This class contains the functionality to write a model into 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"

Version:
1.0

Field Summary
protected static org.apache.log4j.Category cat
           
 
Constructor Summary
DBWriter()
          The default constructor reads the config file (db.ini) and connects to the db.
 
Method Summary
 boolean hasConnection()
          test whether we can use this DBWriter
static void main(java.lang.String[] Args)
          only for testing, do not use main!
 void store(ru.novosoft.uml.model_management.MModel model)
          This method is called from org.argouml.ui.ActionStoreProjectToDb to store the current namespace (which should be a MModel) into the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static org.apache.log4j.Category cat
Constructor Detail

DBWriter

public DBWriter()
The default constructor reads the config file (db.ini) and connects to the db.
Method Detail

hasConnection

public boolean hasConnection()
test whether we can use this DBWriter

store

public void store(ru.novosoft.uml.model_management.MModel model)
This method is called from org.argouml.ui.ActionStoreProjectToDb to store the current namespace (which should be a MModel) into the database.
Parameters:
model - This is the model which will be stored using its name.

main

public static void main(java.lang.String[] Args)
                 throws java.lang.Exception
only for testing, do not use main!


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook