Package com.cosylab.vdct.rdb
Class RdbDataMapper
- java.lang.Object
-
- com.cosylab.vdct.rdb.RdbDataMapper
-
public class RdbDataMapper extends Object
- Author:
- ssah
-
-
Constructor Summary
Constructors Constructor Description RdbDataMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRdbDataId(RdbDataId dataId, String desription)
void
closeConnection()
int
createAnIoc()
Connection
createNewConnection()
Vector
getIocs()
Returns Vector of String objects representing IOCs.Vector
getRdbDatas(String iocId)
Returns Vector of String objects representing db files under the given IOC.Vector
getVersions(String group, String iocId)
Returns Vector of String objects representing versions of the given group.boolean
isConnection()
DBData
loadRdbData(Object dsId, RdbDataId dataId)
boolean
saveRdbData(Object dsId, RdbDataId dataId)
void
setConnectionParameters(String host, String database, String user, String password)
-
-
-
Method Detail
-
setConnectionParameters
public void setConnectionParameters(String host, String database, String user, String password)
- Parameters:
host
- hostdatabase
- databaseuser
- userpassword
- password
-
loadRdbData
public DBData loadRdbData(Object dsId, RdbDataId dataId) throws Exception
- Parameters:
dsId
- dsIddataId
- dataId- Returns:
- something
- Throws:
Exception
- foo
-
saveRdbData
public boolean saveRdbData(Object dsId, RdbDataId dataId) throws Exception
- Parameters:
dsId
- dsIddataId
- dataId- Returns:
- something
- Throws:
Exception
- foo
-
createNewConnection
public Connection createNewConnection() throws SQLException
- Returns:
- something
- Throws:
SQLException
- foo
-
isConnection
public boolean isConnection()
- Returns:
- something
-
closeConnection
public void closeConnection() throws SQLException
- Throws:
SQLException
- foo
-
createAnIoc
public int createAnIoc() throws SQLException
- Returns:
- something
- Throws:
SQLException
- foo
-
getIocs
public Vector getIocs() throws SQLException
Returns Vector of String objects representing IOCs.- Returns:
- something
- Throws:
SQLException
- foo
-
getRdbDatas
public Vector getRdbDatas(String iocId) throws SQLException
Returns Vector of String objects representing db files under the given IOC.- Parameters:
iocId
- iocId- Returns:
- something
- Throws:
SQLException
- foo
-
getVersions
public Vector getVersions(String group, String iocId) throws SQLException
Returns Vector of String objects representing versions of the given group.- Parameters:
group
- groupiocId
- iocId- Returns:
- something
- Throws:
SQLException
- foo
-
addRdbDataId
public void addRdbDataId(RdbDataId dataId, String desription) throws SQLException
- Parameters:
dataId
- dataIddesription
- desription- Throws:
SQLException
- foo
-
-