Search in sources :

Example 46 with BigString

use of org.vcell.util.BigString in project vcell by virtualcell.

the class LocalUserMetaDbServerMessaging method saveVCImageAs.

/**
 * getVersionInfo method comment.
 * @throws RemoteException
 */
public BigString saveVCImageAs(BigString vcImageXML, String newName) throws DataAccessException {
    try {
        log.print("LocalUserMetaDbServerMessaging.saveVCImage(newName=" + newName + ")");
        BigString savedVCImageXML = dbServerProxy.saveVCImageAs(vcImageXML, newName);
        return savedVCImageXML;
    } catch (DataAccessException e) {
        log.exception(e);
        throw e;
    } catch (Throwable e) {
        log.exception(e);
        throw new DataAccessException(e.getMessage());
    }
}
Also used : BigString(org.vcell.util.BigString) DataAccessException(org.vcell.util.DataAccessException)

Example 47 with BigString

use of org.vcell.util.BigString in project vcell by virtualcell.

the class LocalUserMetaDbServerMessaging method saveSimulation.

/**
 * This method was created in VisualAge.
 * @return Versionable
 * @param versionable Versionable
 * @param bVersion boolean
 * @exception DataAccessException The exception description.
 * @exception java.rmi.RemoteException The exception description.
 */
public org.vcell.util.BigString saveSimulation(org.vcell.util.BigString simulationXML, boolean bForceIndependent) throws DataAccessException {
    try {
        log.print("LocalUserMetaDbServerMessaging.saveSimulation()");
        BigString savedSimulationXML = dbServerProxy.saveSimulation(simulationXML, bForceIndependent);
        return savedSimulationXML;
    } catch (DataAccessException e) {
        log.exception(e);
        throw e;
    } catch (Throwable e) {
        log.exception(e);
        throw new DataAccessException(e.getMessage());
    }
}
Also used : BigString(org.vcell.util.BigString) DataAccessException(org.vcell.util.DataAccessException)

Example 48 with BigString

use of org.vcell.util.BigString in project vcell by virtualcell.

the class LocalUserMetaDbServerMessaging method saveBioModel.

/**
 * getVersionInfo method comment.
 * @throws RemoteException
 */
public BigString saveBioModel(BigString bioModelXML, String[] independentSims) throws DataAccessException {
    try {
        log.print("LocalUserMetaDbServerMessaging.saveBioModel()");
        BigString savedBioModelXML = dbServerProxy.saveBioModel(bioModelXML, independentSims);
        return savedBioModelXML;
    } catch (DataAccessException e) {
        log.exception(e);
        throw e;
    } catch (Throwable e) {
        log.exception(e);
        throw new DataAccessException(e.getMessage());
    }
}
Also used : BigString(org.vcell.util.BigString) DataAccessException(org.vcell.util.DataAccessException)

Example 49 with BigString

use of org.vcell.util.BigString in project vcell by virtualcell.

the class LocalUserMetaDbServerMessaging method getMathModelXML.

/**
 * getVersionInfo method comment.
 * @throws RemoteException
 */
public BigString getMathModelXML(KeyValue mathModelKey) throws DataAccessException, ObjectNotFoundException {
    try {
        log.print("LocalUserMetaDbServerMessaging.getMathModelXML(mathModelKey=" + mathModelKey + ")");
        BigString xml = dbServerProxy.getMathModelXML(mathModelKey);
        return xml;
    } catch (DataAccessException e) {
        log.exception(e);
        throw e;
    } catch (Throwable e) {
        log.exception(e);
        throw new DataAccessException(e.getMessage());
    }
}
Also used : BigString(org.vcell.util.BigString) DataAccessException(org.vcell.util.DataAccessException)

Example 50 with BigString

use of org.vcell.util.BigString in project vcell by virtualcell.

the class SimulationDatabaseDirect method getSimulation.

@Override
public Simulation getSimulation(User user, KeyValue simKey) throws DataAccessException {
    Simulation sim = null;
    BigString simstr = databaseServerImpl.getSimulationXML(user, simKey);
    if (simstr != null) {
        try {
            sim = XmlHelper.XMLToSim(simstr.toString());
        } catch (XmlParseException e) {
            lg.error(e.getMessage(), e);
            throw new DataAccessException(e.getMessage());
        }
    }
    return sim;
}
Also used : Simulation(cbit.vcell.solver.Simulation) XmlParseException(cbit.vcell.xml.XmlParseException) BigString(org.vcell.util.BigString) DataAccessException(org.vcell.util.DataAccessException)

Aggregations

BigString (org.vcell.util.BigString)55 DataAccessException (org.vcell.util.DataAccessException)39 KeyValue (org.vcell.util.document.KeyValue)24 XmlParseException (cbit.vcell.xml.XmlParseException)22 BioModel (cbit.vcell.biomodel.BioModel)19 XMLSource (cbit.vcell.xml.XMLSource)19 SQLException (java.sql.SQLException)16 Simulation (cbit.vcell.solver.Simulation)15 User (org.vcell.util.document.User)15 BioModelInfo (org.vcell.util.document.BioModelInfo)13 SimulationContext (cbit.vcell.mapping.SimulationContext)12 SimulationStatusPersistent (cbit.vcell.server.SimulationStatusPersistent)10 ObjectNotFoundException (org.vcell.util.ObjectNotFoundException)10 RemoteProxyException (cbit.vcell.message.server.bootstrap.client.RemoteProxyVCellConnectionFactory.RemoteProxyException)9 MathException (cbit.vcell.math.MathException)8 ExpressionException (cbit.vcell.parser.ExpressionException)8 VCSimulationIdentifier (cbit.vcell.solver.VCSimulationIdentifier)6 Connection (java.sql.Connection)6 MessageEvent (cbit.rmi.event.MessageEvent)5 MappingException (cbit.vcell.mapping.MappingException)5