Examples of find()


Examples of org.apache.syncope.core.persistence.dao.ReportDAO.find()

            }

            Long reportId = JobInstanceLoader.getReportIdFromJobName(bundle.getJobDetail().getKey().getName());
            if (reportId != null) {
                ReportDAO reportDAO = ctx.getBean(ReportDAO.class);
                Report report = reportDAO.find(reportId);

                JobInstanceLoader jobInstanceLoader = ctx.getBean(JobInstanceLoader.class);
                jobInstanceLoader.registerJob(report);
            }
        }
View Full Code Here

Examples of org.apache.syncope.core.persistence.dao.SchemaDAO.find()

            case UserSchema:
            case RoleSchema:
            case MembershipSchema:
                final ConfigurableApplicationContext context = ApplicationContextProvider.getApplicationContext();
                final SchemaDAO schemaDAO = context.getBean(SchemaDAO.class);
                schema = schemaDAO.find(mapItem.getIntAttrName(),
                        MappingUtil.getIntMappingTypeClass(mapItem.getIntMappingType()));
                schemaType = schema == null ? AttributeSchemaType.String : schema.getType();
                break;

            default:
View Full Code Here

Examples of org.apache.syncope.core.persistence.dao.TaskDAO.find()

        // failover scenarios)
        if (!ctx.containsBean(bundle.getJobDetail().getKey().getName())) {
            Long taskId = JobInstanceLoader.getTaskIdFromJobName(bundle.getJobDetail().getKey().getName());
            if (taskId != null) {
                TaskDAO taskDAO = ctx.getBean(TaskDAO.class);
                SchedTask task = taskDAO.find(taskId);

                JobInstanceLoader jobInstanceLoader = ctx.getBean(JobInstanceLoader.class);
                jobInstanceLoader.registerJob(task, task.getJobClassName(), task.getCronExpression());
            }
View Full Code Here

Examples of org.apache.syncope.core.persistence.dao.VirSchemaDAO.find()

            case UserVirtualSchema:
            case RoleVirtualSchema:
            case MembershipVirtualSchema:
                VirSchemaDAO virSchemaDAO = context.getBean(VirSchemaDAO.class);
                AbstractVirSchema virSchema = virSchemaDAO.find(mapItem.getIntAttrName(),
                        MappingUtil.getIntMappingTypeClass(mapItem.getIntMappingType()));
                readOnlyVirSchema = (virSchema != null && virSchema.isReadonly());
                schemaType = AttributeSchemaType.String;
                break;
View Full Code Here

Examples of org.apache.tajo.storage.index.bst.BSTIndex.BSTIndexReader.find()

    scanner.init();

    for(int i = 0 ; i < TUPLE_NUM -1 ; i ++) {
      tuple.put(0, DatumFactory.createInt8(i));
      tuple.put(1, DatumFactory.createFloat8(i));
      long offsets = reader.find(tuple);
      scanner.seek(offsets);
      tuple = scanner.next();
      assertTrue("seek check [" + (i) + " ," +(tuple.get(1).asInt8())+ "]" , (i) == (tuple.get(1).asInt8()));
      assertTrue("seek check [" + (i) + " ,"  +(tuple.get(2).asFloat8())+"]" , (i) == (tuple.get(2).asFloat8()));
     
View Full Code Here

Examples of org.apache.tapestry.dom.Document.find()

    public void cleanup(Environment environment)
    {
        Document document = environment.peek(Document.class);

        Element head = document.find("html/head");

        if (head == null)
            return;

        Asset asset = _assetSource.getClasspathAsset(
View Full Code Here

Examples of org.apache.tapestry5.dom.Document.find()

        String pageName = globals.getActivePageName();

        Document document = writer.getDocument();

        Element element = document.find("html/head");

        if (element != null)
        {
            element.element("meta",
                    "name", "tapestry-page-name",
View Full Code Here

Examples of org.apache.tapestry5.dom.Element.find()

    @Test
    public void testCancel() throws Exception {
        doc = tester.renderPage("admin/UserList");
        Element table = doc.getElementById("userList");
        List<Node> rows = table.find("tbody").getChildren();
        String username = "";

        username = ((Element) rows.get(0)).find("td/a").getChildMarkup().trim();

        Element idLink = table.getElementById("user-" + username);
View Full Code Here

Examples of org.apache.uima.cas.FSIndex.find()

      // TODO Auto-generated catch block
      e1.printStackTrace();
      assertTrue(false);
    }
    FSIndex jcasSetIndex = jcas.getJFSIndexRepository().getIndex(CASTestSetup.ANNOT_SET_INDEX);
    Annotation jcasAnnotation = (Annotation) jcasSetIndex.find(annot);
    assertNotNull(jcasAnnotation);
    assertNull(jcasSetIndex.find(this.cas.createAnnotation(this.annotationType, -1, -1)));

    // /////////////////////////////////////////////////////////////////////////
    // Test fast fail.
View Full Code Here

Examples of org.apache.uima.ruta.resource.RutaWordList.find()

    boolean editValue = edit.getBooleanValue(parent, match, element, stream);
    double distanceValue = distance.getDoubleValue(parent, match, element, stream);
    String ignoreCharValue = ignoreChar.getStringValue(parent, match, element, stream);

    RutaWordList wl = list.getList(parent);
    Collection<AnnotationFS> found = wl.find(stream, typeMap, ignoreCaseValue, ignoreLengthValue,
            editValue, distanceValue, ignoreCharValue);

    if (found != null) {
      for (AnnotationFS annotation : found) {
        stream.addAnnotation(annotation, match);
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.