Search in sources :

Example 1 with SimulationContextInfo

use of cbit.vcell.mapping.SimulationContextInfo in project vcell by virtualcell.

the class SimContextTable method getInfo.

/**
 * This method was created in VisualAge.
 * @return cbit.vcell.geometry.GeometryInfo
 * @param rset java.sql.ResultSet
 * @param log cbit.vcell.server.SessionLog
 */
public VersionInfo getInfo(ResultSet rset, Connection con) throws SQLException, DataAccessException {
    KeyValue mathRef = null;
    java.math.BigDecimal mathRefValue = rset.getBigDecimal(SimContextTable.table.mathRef.toString());
    if (!rset.wasNull()) {
        mathRef = new KeyValue(mathRefValue);
    }
    KeyValue geomRef = new KeyValue(rset.getBigDecimal(SimContextTable.table.geometryRef.toString()));
    KeyValue modelRef = new KeyValue(rset.getBigDecimal(SimContextTable.table.modelRef.toString()));
    java.math.BigDecimal groupid = rset.getBigDecimal(VersionTable.privacy_ColumnName);
    Version version = getVersion(rset, DbDriver.getGroupAccessFromGroupID(con, groupid));
    String softwareVersion = rset.getString(SoftwareVersionTable.table.softwareVersion.toString());
    return new SimulationContextInfo(mathRef, geomRef, modelRef, version, VCellSoftwareVersion.fromString(softwareVersion));
}
Also used : BigDecimal(java.math.BigDecimal) KeyValue(org.vcell.util.document.KeyValue) Version(org.vcell.util.document.Version) VCellSoftwareVersion(org.vcell.util.document.VCellSoftwareVersion) SimulationContextInfo(cbit.vcell.mapping.SimulationContextInfo)

Aggregations

SimulationContextInfo (cbit.vcell.mapping.SimulationContextInfo)1 BigDecimal (java.math.BigDecimal)1 KeyValue (org.vcell.util.document.KeyValue)1 VCellSoftwareVersion (org.vcell.util.document.VCellSoftwareVersion)1 Version (org.vcell.util.document.Version)1