Examples of find()


Examples of org.gwt.mosaic.core.client.util.regex.Matcher.find()

    }
  }

  private Multiplier multiplier(String expression, int offset) {
    Matcher matcher = MULTIPLIER_PREFIX_PATTERN.matcher(expression);
    if (!matcher.find()) {
      return null;
    }
    if (matcher.start() > 0) {
      fail(offset + matcher.start(), "illegal multiplier position");
    }
View Full Code Here

Examples of org.h2.index.Index.find()

            recordPageReads = true;
            Session s = database.getSystemSession();
            for (Table table : tables) {
                if (!table.isTemporary() && Table.TABLE.equals(table.getTableType())) {
                    Index scanIndex = table.getScanIndex(s);
                    Cursor cursor = scanIndex.find(s, null, null);
                    while (cursor.next()) {
                        cursor.get();
                    }
                    for (Index index : table.getIndexes()) {
                        if (index != scanIndex && index.canScan()) {
View Full Code Here

Examples of org.hibernate.classic.Session.find()

    t.commit();
    s.close();

    s = openSession();
    t = s.beginTransaction();
    List l = s.find( "from E e, A a where e.reverse = a.forward and a = ?", a, Hibernate.entity(A.class) );
    assertTrue( l.size()==1 );
    l = s.createQuery( "from E e join fetch e.reverse" ).list();
    assertTrue( l.size()==2 );
    t.commit();
    s.close();
View Full Code Here

Examples of org.hibernate.ejb.HibernateEntityManager.find()

    @Override
    public void switchActivation(Long themeId) {
        HibernateEntityManager hem = (HibernateEntityManager) em.getDelegate();
        try {
            YFTheme theme = hem.find(YFTheme.class, themeId);
            if (theme.getActive()) {
                theme.setActive(false);
                hem.merge(theme);
            } else {
                YFTheme currentTheme = this.getCurrentTheme();
View Full Code Here

Examples of org.hibernate.envers.AuditReader.find()

    }

    // fetch Audited entity from Audit tables
    public StudentAudited retrieveOldStudentVersion(int id) {
        AuditReader reader = AuditReaderFactory.get(sessionFactory.openSession());
        StudentAudited student_rev = reader.find(StudentAudited.class, id, 1);
        List<Number> revlist = reader.getRevisions(StudentAudited.class, id);
        // this is for checking revision size hence not removing this S.o.p
        System.out.println("Size of revisionList:--" + revlist.size());
        return student_rev;
    }
View Full Code Here

Examples of org.hibernate.search.jpa.FullTextEntityManager.find()

    em.getTransaction().commit();

    em.clear();

    em.getTransaction().begin();
    em.remove( em.find( Bretzel.class, bretzel.getId() ) );
    em.getTransaction().commit();
    em.close();
  }

  public void testIndex() throws Exception {
View Full Code Here

Examples of org.hyperic.sigar.ptql.ProcessFinder.find()

            if (sigar == null) {
                sigar = org.sleuthkit.autopsy.corelibs.SigarLoader.getSigar();
            }
            if (sigar != null) {
                ProcessFinder finder = new ProcessFinder(sigar);
                jpids = finder.find(sigarQuery);
            } else {
                System.out.println(NbBundle.getMessage(PlatformUtil.class, "PlatformUtil.getJavaPIDs.sigarNotInit"));
            }
        } catch (Exception e) {
            System.out.println(
View Full Code Here

Examples of org.hyperic.sigar.ptql.ProcessQuery.find()

            traceln("parse error: " + qs);
            throw e;
        }

        try {
            long[] pids = query.find(sigar);

            traceln(pids.length + " processes match: " + qs);

            if (qs.indexOf(OTHER_PROCESS) != -1) {
                long pid = sigar.getPid();
View Full Code Here

Examples of org.jayasoft.woj.portal.data.dao.commercial.FidelityOfferDao.find()

        if (u instanceof UserImpl) {
            try {
                UserImpl user = (UserImpl)u;
                UserPointDao upDao = DaoFactory.getUserPointDao();
                FidelityOfferDao foDao = DaoFactory.getFidelityOfferDao();
                FidelityOffer fo = (FidelityOffer)foDao.find(giftId);
                if (fo != null) {
                    UserPoint oldUP = getUserPoint(user);
                    if (oldUP.getPoints() < fo.getNeededPoints()) {
                        throw new ServiceException(RessourceBundleApplicationMessage.error("woj.page.fidelity.offers.not.enough.points", null));
                    }
View Full Code Here

Examples of org.jayasoft.woj.portal.data.dao.product.LicenseDao.find()

  }

    public void uninviteUserFromLicense(long licenseId) throws ServiceException {
        try {
            LicenseDao ldao = DaoFactory.getLicenseDao();
            License l = (License)ldao.find(new Long(licenseId));
            if (l.getInvitedMail()!=null) {
                l.setInvitedMail(null);
                ldao.save(l);
            }
        } catch (DaoException e) {
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.