use of org.vcell.util.document.Version in project vcell by virtualcell.
the class ModelDbDriver method updateVersionable.
/**
* This method was created in VisualAge.
* @return cbit.image.VCImage
* @param user cbit.vcell.server.User
* @param image cbit.image.VCImage
*/
public KeyValue updateVersionable(InsertHashtable hash, Connection con, User user, Model model, boolean bVersion) throws DataAccessException, SQLException, RecordChangedException {
Version newVersion = updateVersionableInit(hash, con, user, model, bVersion);
insertModel(hash, con, user, model, newVersion);
return newVersion.getVersionKey();
}
use of org.vcell.util.document.Version in project vcell by virtualcell.
the class BioModelTable method getBioModelMetaData.
/**
* This method was created in VisualAge.
* @return cbit.vcell.math.MathDescription
* @param user cbit.vcell.server.User
* @param rset java.sql.ResultSet
*/
public BioModelMetaData getBioModelMetaData(ResultSet rset, Connection con, KeyValue[] simContextKeys, KeyValue[] simulationKeys, DatabaseSyntax dbSyntax) throws SQLException, DataAccessException {
//
// Get Version
//
BigDecimal groupid = rset.getBigDecimal(VersionTable.privacy_ColumnName);
Version version = getVersion(rset, DbDriver.getGroupAccessFromGroupID(con, groupid));
KeyValue modelRef = new KeyValue(rset.getBigDecimal(table.modelRef.toString()));
String vcMetaDataXML = VCMetaDataTable.getVCMetaDataXML(rset, dbSyntax);
BioModelMetaData bioModelMetaData = new BioModelMetaData(version, modelRef, simContextKeys, simulationKeys, vcMetaDataXML);
return bioModelMetaData;
}
use of org.vcell.util.document.Version in project vcell by virtualcell.
the class BioModelDbDriver method insertVersionable.
/**
* This method was created in VisualAge.
* @return cbit.sql.KeyValue
* @param versionable cbit.sql.Versionable
* @param pRef cbit.sql.KeyValue
* @param bCommit boolean
*/
public KeyValue insertVersionable(InsertHashtable hash, Connection con, User user, BioModelMetaData bioModelMetaData, BioModelChildSummary bmcs, String name, boolean bVersion) throws DataAccessException, SQLException, RecordChangedException {
Version newVersion = insertVersionableInit(hash, con, user, bioModelMetaData, name, bioModelMetaData.getDescription(), bVersion);
insertBioModelMetaData(con, user, bioModelMetaData, bmcs, newVersion);
return newVersion.getVersionKey();
}
use of org.vcell.util.document.Version in project vcell by virtualcell.
the class BioModelDbDriver method updateVersionable.
/**
* This method was created in VisualAge.
* @return cbit.image.VCImage
* @param user cbit.vcell.server.User
* @param image cbit.image.VCImage
*/
public KeyValue updateVersionable(InsertHashtable hash, Connection con, User user, BioModelMetaData bioModelMetaData, BioModelChildSummary bmcs, boolean bVersion) throws DataAccessException, SQLException, RecordChangedException {
Version newVersion = updateVersionableInit(hash, con, user, bioModelMetaData, bVersion);
insertBioModelMetaData(con, user, bioModelMetaData, bmcs, newVersion);
return newVersion.getVersionKey();
}
Aggregations