Examples of DAOFactory


Examples of org.uengine.persistence.dao.DAOFactory

  @Override
  public Object transform(ProcessInstance instance, Map parameterMap, Map options) {
    Object result = null;
    try {
      DAOFactory df = DAOFactory.getInstance(instance.getProcessTransactionContext());

      KeyGeneratorDAO kgd = df.createKeyGenerator(getSequence(), new HashMap());
      kgd.select();
      kgd.next();
      result = kgd.getKeyNumber();
     
    } catch (Exception e) {
View Full Code Here

Examples of org.uengine.persistence.dao.DAOFactory

   
  protected String addWorkItemImpl(String reservedTaskId, String userId, Map parameterMap, boolean isReservation, TransactionContext tc) throws RemoteException {
     
    try{

      DAOFactory daoFactory = DAOFactory.getInstance(tc);
      Calendar now = daoFactory.getNow();

      Calendar dueDate = null;
      try{     
        String dueDateInMSStr = ""+parameterMap.get(KeyedParameter.DUEDATE);
        long dueDateInMS = Long.parseLong(dueDateInMSStr);
View Full Code Here

Examples of org.uengine.persistence.dao.DAOFactory

  public void completeWorkItem(String taskID, KeyedParameter[] options, TransactionContext tc)
    throws RemoteException {

    try{
      DAOFactory daoFactory = DAOFactory.getInstance(tc);
      Calendar now = daoFactory.getNow();

      WorkListDAO wl = (WorkListDAO) tc.findSynchronizedDAO("BPM_WORKLIST", "taskId", new Long(taskID), WorkListDAO.class);
      wl.setStatus(DefaultWorkList.WORKITEM_STATUS_COMPLETED);
      wl.setEndDate(new Timestamp(now.getTimeInMillis()));
     
View Full Code Here

Examples of org.uengine.persistence.dao.DAOFactory

 
  public static Calendar getNow(TransactionContext tc) throws Exception{
   
    if(tc==null || tc instanceof SimulatorTransactionContext) return Calendar.getInstance();
   
    DAOFactory daoFactory = DAOFactory.getInstance(tc);
    return daoFactory.getNow();
  }
View Full Code Here

Examples of org.uengine.persistence.dao.DAOFactory

        }
      }
     
      conn = instance.getProcessTransactionContext().getConnection();

      DAOFactory daoFactory = DAOFactory.getInstance(instance.getProcessTransactionContext());
      Timestamp now = new Timestamp(daoFactory.getNow().getTimeInMillis());
      KeyGeneratorDAO kgd = daoFactory.createKeyGenerator("DOC_COMMENTS", new HashMap());
      kgd.select();
      kgd.next();
      Number seqresult = kgd.getKeyNumber();
     
      sql = (
View Full Code Here

Examples of pl.lodz.p.cm.ctp.dao.DAOFactory

    this.myConfig = config;
  }

  @Override
  public void run() {
    DAOFactory dbase = DAOFactory.getInstance(Epgd.config.database);
    ProgramDAO programDAO = dbase.getProgramDAO();
   
    try {
      boolean result = programDAO.deleteOlderThan(myConfig.olderThanDays);
      if (result) {
        Epgd.log("Pomyślnie usunieto ostatnie " + myConfig.olderThanDays + " dni z EPG");
View Full Code Here

Examples of uk.ac.soton.itinnovation.pes.data.dao.DAOFactory

   * @param args Command line arguments from main method.
   * @return Optimisation manager instance.
   */
    private IOptimisationManager setUp (String[] args) throws Exception
    {
        DAOFactory daoFactory = null;
        EstimationResult estimationResult = null;
        IPriceCalculator priceCalculator = null;
        Map<String, List<AttributeType>> aslaParams = null;
        Map<String, Set<Resource>> optimisationSpace = null;
        IOptimisationAlgorithm optAlg = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.