Examples of lessThan()


Examples of org.hibernate.FlushMode.lessThan()

              new SpringSessionSynchronization(sessionHolder, sessionFactory, jdbcExceptionTranslator, false));
          sessionHolder.setSynchronizedWithTransaction(true);
          // Switch to FlushMode.AUTO, as we have to assume a thread-bound Session
          // with FlushMode.MANUAL, which needs to allow flushing within the transaction.
          FlushMode flushMode = session.getFlushMode();
          if (flushMode.lessThan(FlushMode.COMMIT) &&
              !TransactionSynchronizationManager.isCurrentTransactionReadOnly()) {
            session.setFlushMode(FlushMode.AUTO);
            sessionHolder.setPreviousFlushMode(flushMode);
          }
        }
View Full Code Here

Examples of org.hibernate.FlushMode.lessThan()

                        jtaTm));
                sessionHolder.setSynchronizedWithTransaction(true);
                // Switch to FlushMode.AUTO, as we have to assume a thread-bound Session
                // with FlushMode.NEVER, which needs to allow flushing within the transaction.
                FlushMode flushMode = session.getFlushMode();
                if (flushMode.lessThan(FlushMode.COMMIT)) {
                  session.setFlushMode(FlushMode.AUTO);
                  sessionHolder.setPreviousFlushMode(flushMode);
                }
              }
            }
View Full Code Here

Examples of org.hibernate.FlushMode.lessThan()

      }

      if (!definition.isReadOnly() && !txObject.isNewSessionHolder()) {
        // We need AUTO or COMMIT for a non-read-only transaction.
        FlushMode flushMode = session.getFlushMode();
        if (flushMode.lessThan(FlushMode.COMMIT)) {
          session.setFlushMode(FlushMode.AUTO);
          txObject.getSessionHolder().setPreviousFlushMode(flushMode);
        }
      }
View Full Code Here

Examples of org.hibernate.FlushMode.lessThan()

              new SpringSessionSynchronization(sessionHolder, sessionFactory, jdbcExceptionTranslator, false));
          sessionHolder.setSynchronizedWithTransaction(true);
          // Switch to FlushMode.AUTO, as we have to assume a thread-bound Session
          // with FlushMode.NEVER, which needs to allow flushing within the transaction.
          FlushMode flushMode = session.getFlushMode();
          if (flushMode.lessThan(FlushMode.COMMIT) &&
              !TransactionSynchronizationManager.isCurrentTransactionReadOnly()) {
            session.setFlushMode(FlushMode.AUTO);
            sessionHolder.setPreviousFlushMode(flushMode);
          }
        }
View Full Code Here

Examples of org.hibernate.FlushMode.lessThan()

                        jtaTm));
                sessionHolder.setSynchronizedWithTransaction(true);
                // Switch to FlushMode.AUTO, as we have to assume a thread-bound Session
                // with FlushMode.NEVER, which needs to allow flushing within the transaction.
                FlushMode flushMode = session.getFlushMode();
                if (flushMode.lessThan(FlushMode.COMMIT)) {
                  session.setFlushMode(FlushMode.AUTO);
                  sessionHolder.setPreviousFlushMode(flushMode);
                }
              }
            }
View Full Code Here

Examples of org.hibernate.FlushMode.lessThan()

              new SpringSessionSynchronization(sessionHolder, sessionFactory, jdbcExceptionTranslator, false));
          sessionHolder.setSynchronizedWithTransaction(true);
          // Switch to FlushMode.AUTO, as we have to assume a thread-bound Session
          // with FlushMode.NEVER, which needs to allow flushing within the transaction.
          FlushMode flushMode = session.getFlushMode();
          if (flushMode.lessThan(FlushMode.COMMIT) &&
              !TransactionSynchronizationManager.isCurrentTransactionReadOnly()) {
            session.setFlushMode(FlushMode.AUTO);
            sessionHolder.setPreviousFlushMode(flushMode);
          }
        }
View Full Code Here

Examples of org.hibernate.LockMode.lessThan()

      Object existing) {
    final LockMode requestedLockMode = context.resolveLockMode( entityReference );
    if ( requestedLockMode != LockMode.NONE ) {
      final LockMode currentLockMode = context.getSession().getPersistenceContext().getEntry( existing ).getLockMode();
      final boolean isVersionCheckNeeded = entityReference.getEntityPersister().isVersioned()
          && currentLockMode.lessThan( requestedLockMode );

      // we don't need to worry about existing version being uninitialized because this block isn't called
      // by a re-entrant load (re-entrant loads *always* have lock mode NONE)
      if ( isVersionCheckNeeded ) {
        //we only check the version when *upgrading* lock modes
View Full Code Here

Examples of org.springframework.data.solr.core.query.Criteria.lessThan()

        return criteria.greaterThan(appendBoostAndGetParameterValue(criteria, parameters));
      case GREATER_THAN_EQUAL:
        return criteria.greaterThanEqual(appendBoostAndGetParameterValue(criteria, parameters));
      case BEFORE:
      case LESS_THAN:
        return criteria.lessThan(appendBoostAndGetParameterValue(criteria, parameters));
      case LESS_THAN_EQUAL:
        return criteria.lessThanEqual(appendBoostAndGetParameterValue(criteria, parameters));
      case BETWEEN:
        return criteria.between(appendBoostAndGetParameterValue(criteria, parameters),
            appendBoostAndGetParameterValue(criteria, parameters));
View Full Code Here

Examples of pspdash.data.DateData.lessThan()

            dataName = DataRepository.createDataName(path, name);
            val = context.get(dataName);
            if (val == null)
                return null;
            if (val instanceof DateData &&
                (result == null || result.lessThan((DateData) val)))
                result = (DateData) val;
        }
        return result;
    }
View Full Code Here

Examples of pspdash.data.DateData.lessThan()

        while (i.hasNext()) {
            val = i.next();
            if (val == null)
                return null;
            if (val instanceof DateData &&
                (result == null || result.lessThan((DateData) val)))
                result = (DateData) val;
        }
        return result;
    }
}
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.