Search in sources :

Example 71 with Version

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();
}
Also used : Version(org.vcell.util.document.Version) VCellSoftwareVersion(org.vcell.util.document.VCellSoftwareVersion)

Example 72 with Version

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;
}
Also used : KeyValue(org.vcell.util.document.KeyValue) VCellSoftwareVersion(org.vcell.util.document.VCellSoftwareVersion) Version(org.vcell.util.document.Version) BioModelMetaData(cbit.vcell.biomodel.BioModelMetaData) BigDecimal(java.math.BigDecimal)

Example 73 with Version

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();
}
Also used : Version(org.vcell.util.document.Version)

Example 74 with Version

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();
}
Also used : Version(org.vcell.util.document.Version)

Aggregations

Version (org.vcell.util.document.Version)74 VCellSoftwareVersion (org.vcell.util.document.VCellSoftwareVersion)27 DataAccessException (org.vcell.util.DataAccessException)24 KeyValue (org.vcell.util.document.KeyValue)22 BigDecimal (java.math.BigDecimal)17 Geometry (cbit.vcell.geometry.Geometry)13 SimulationVersion (org.vcell.util.document.SimulationVersion)12 PropertyVetoException (java.beans.PropertyVetoException)10 User (org.vcell.util.document.User)10 VersionableTypeVersion (org.vcell.util.document.VersionableTypeVersion)10 Element (org.jdom.Element)9 MathDescription (cbit.vcell.math.MathDescription)8 RedistributionVersion (cbit.vcell.solvers.mb.MovingBoundarySolverOptions.RedistributionVersion)8 SimulationContext (cbit.vcell.mapping.SimulationContext)7 ResultSet (java.sql.ResultSet)7 Statement (java.sql.Statement)7 ImageException (cbit.image.ImageException)6 Simulation (cbit.vcell.solver.Simulation)6 VersionFlag (org.vcell.util.document.VersionFlag)6 Model (cbit.vcell.model.Model)5