com.cosylab.vdct.rdb
Class RdbDataMapper
java.lang.Object
com.cosylab.vdct.rdb.RdbDataMapper
public class RdbDataMapper
- extends java.lang.Object
- Author:
- ssah
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RdbDataMapper
public RdbDataMapper()
throws java.lang.Exception
- Throws:
java.lang.Exception
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