com.cosylab.vdct.rdb
Class RdbDataMapper

java.lang.Object
  extended by com.cosylab.vdct.rdb.RdbDataMapper

public class RdbDataMapper
extends java.lang.Object

Author:
ssah

Constructor Summary
RdbDataMapper()
           
 
Method Summary
 void addRdbDataId(RdbDataId dataId, java.lang.String desription)
           
 void closeConnection()
           
 int createAnIoc()
           
 java.sql.Connection createNewConnection()
           
 java.util.Vector getIocs()
          Returns Vector of String objects representing IOCs.
 java.util.Vector getRdbDatas(java.lang.String iocId)
          Returns Vector of String objects representing db files under the given IOC.
 java.util.Vector getVersions(java.lang.String group, java.lang.String iocId)
          Returns Vector of String objects representing versions of the given group.
 boolean isConnection()
           
 DBData loadRdbData(java.lang.Object dsId, RdbDataId dataId)
           
 boolean saveRdbData(java.lang.Object dsId, RdbDataId dataId)
           
 void setConnectionParameters(java.lang.String host, java.lang.String database, java.lang.String user, java.lang.String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdbDataMapper

public RdbDataMapper()
              throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setConnectionParameters

public void setConnectionParameters(java.lang.String host,
                                    java.lang.String database,
                                    java.lang.String user,
                                    java.lang.String password)

loadRdbData

public DBData loadRdbData(java.lang.Object dsId,
                          RdbDataId dataId)
                   throws java.lang.Exception
Throws:
java.lang.Exception

saveRdbData

public boolean saveRdbData(java.lang.Object dsId,
                           RdbDataId dataId)
                    throws java.lang.Exception
Throws:
java.lang.Exception

createNewConnection

public java.sql.Connection createNewConnection()
                                        throws java.sql.SQLException
Throws:
java.sql.SQLException

isConnection

public boolean isConnection()

closeConnection

public void closeConnection()
                     throws java.sql.SQLException
Throws:
java.sql.SQLException

createAnIoc

public int createAnIoc()
                throws java.sql.SQLException
Throws:
java.sql.SQLException

getIocs

public java.util.Vector getIocs()
                         throws java.sql.SQLException
Returns Vector of String objects representing IOCs.

Throws:
java.sql.SQLException

getRdbDatas

public java.util.Vector getRdbDatas(java.lang.String iocId)
                             throws java.sql.SQLException
Returns Vector of String objects representing db files under the given IOC.

Throws:
java.sql.SQLException

getVersions

public java.util.Vector getVersions(java.lang.String group,
                                    java.lang.String iocId)
                             throws java.sql.SQLException
Returns Vector of String objects representing versions of the given group.

Throws:
java.sql.SQLException

addRdbDataId

public void addRdbDataId(RdbDataId dataId,
                         java.lang.String desription)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException