Examples of autoCommit()


Examples of es.ipsa.atril.sec.authentication.AtrilSession.autoCommit()

    } catch (IOException ioe) {
      Log.out.error("AsyncSendInvitation new MailSessionHandler() "+ioe.getClass().getName()+" "+ioe.getMessage(), ioe);
    }
     
      AtrilSession oSes = DAO.getAdminSession("AsyncSendInvitation");
      oSes.autoCommit(true);
      Dms oDms = oSes.getDms();
    CustomerAccount oAcc = new CustomerAccount(oDms, sAccId);
     
    for (int t=0; t<aTxprs.length; t++) {
      String sTxpId = aTxprs[t];
View Full Code Here

Examples of es.ipsa.atril.sec.authentication.AtrilSession.autoCommit()

    public static void main(String[] args) throws Exception {
      ModelManager oMan = new ModelManager();
      DAO oDao = new DAO();   
      oDao.init(oMan.getConnectionProperties());
      AtrilSession oSes = DAO.getAdminSession("CityWriter");
      oSes.autoCommit(true);
      oMan.writeCities(oSes, "es");
      oSes.disconnect();
      oSes.close();
      oDao.destroy();
      }
View Full Code Here

Examples of es.ipsa.atril.sec.authentication.AtrilSession.autoCommit()

      final float MaxHeight = 640f;
      AtrilSession oSes = null;
      StreamPipe oPipe;
      try {
        oSes = DAO.getAdminSession("ThumbnailCreator");
        oSes.autoCommit(true);
        Dms oDms = oSes.getDms();
        Document oDoc = oDms.getDocument(sParent);
        Item oItm = oDms.getDocument(sItem).item();
        String sFileName = oItm.name().toLowerCase();
        oPipe = new StreamPipe();
View Full Code Here

Examples of es.ipsa.atril.sec.authentication.AtrilSession.autoCommit()

  @BeforeClass public static void init() throws Exception {
    ModelManager oMan = new ModelManager();   
    oDao = new DAO();
    oDao.init(oMan.getConnectionProperties());
    AtrilSession oSes = DAO.getAdminSession("SmokeTest");
    oSes.autoCommit(true);   
    try {
      USRID = User.forEmail(TEST_USER_EMAIL);
    } catch (ElementNotFoundException notfound) {
      User oUsr = new User();
      oUsr.setEmail(TEST_USER_EMAIL);
View Full Code Here

Examples of es.ipsa.atril.sec.authentication.AtrilSession.autoCommit()

  //-----------------------------------------------------------
 
  protected AtrilSession openTestSession() {
    AtrilSession oSes = DAO.getAdminSession("SmokeTest");
    oSes.autoCommit(true);
    return oSes;
  }

  //-----------------------------------------------------------
View Full Code Here

Examples of es.ipsa.atril.sec.authentication.AtrilSession.autoCommit()

    public void run() {
    AtrilSession oSes = null;
      try {
          BigDecimal oCredits = oSrvFlv.credits();
        oSes = DAO.getAdminSession("CreditBurner");
        oSes.autoCommit(false);
        CustomerAccount oAcc = new CustomerAccount(oSes.getDms(), sCustAcc);
        oAcc.burnCredits(oSes, oCredits);
        oAcc.save(oSes);
        DAO.log(oSes, oAcc.getDocument(), CustomerAccount.class, "BURN CREDITS", AtrilEvent.Level.INFO, oCredits.toString()+";"+oSrvFlv.uid()+";"+sUser);
        switch (oAcc.getCreditsLeft().signum()) {
View Full Code Here

Examples of es.ipsa.atril.sec.authentication.AtrilSession.autoCommit()

  public void run() {
    Log.out.debug("Begin AttachDeposit.run()");   
    AtrilSession oSes = null;
    try {
      oSes = DAO.getAdminSession("DepositToZespedBridge");
      oSes.autoCommit(false);
      switch (oSrv) {
        case BILLNOTES:
          addSidesToTicket(oSes);
          break;
        case INVOICES:
View Full Code Here

Examples of es.ipsa.atril.sec.authentication.AtrilSession.autoCommit()

    throws AuthenticationException, SecuritySystemException, IllegalStateException,PersistenceManagerException {
    if (!bInitOK) throw new IllegalStateException("DAO was not properly initialized");
      AtrilSession oSess = AuthenticationManagerFactory.getAuthenticationManager(oAtrilProperties).authenticateUser(sUsr, sPwd);
    oSess.open(sContext);
      oSess.connect();
    oSess.autoCommit(false);
      return oSess;
  }

  // --------------------------------------------------------------------------
 
View Full Code Here

Examples of org.infinispan.configuration.cache.TransactionConfiguration.autoCommit()

   }

   @Override
   protected boolean isCacheAutoCommit(Cache<?, ?> cache) {
      TransactionConfiguration txConfig = cache.getCacheConfiguration().transaction();
      return txConfig != null && txConfig.autoCommit();
   }

   protected boolean isCachePessimistic(Cache<?, ?> cache) {
      TransactionConfiguration txConfig = cache.getCacheConfiguration().transaction();
      return txConfig != null && txConfig.lockingMode().equals(LockingMode.PESSIMISTIC);
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.