Examples of fetch()


Examples of javax.persistence.ManyToOne.fetch()

    Fetch fetch = property.getAnnotation( Fetch.class );
    ManyToOne manyToOne = property.getAnnotation( ManyToOne.class );
    OneToOne oneToOne = property.getAnnotation( OneToOne.class );
    FetchType fetchType;
    if ( manyToOne != null ) {
      fetchType = manyToOne.fetch();
    }
    else if ( oneToOne != null ) {
      fetchType = oneToOne.fetch();
    }
    else {
View Full Code Here

Examples of javax.persistence.OneToMany.fetch()

  private void loadCollection(Property p, DataType returned, Vertex objectVertex, Map<String, Object> objectsBeingAccessed) {
    boolean eagerLoad = false;
    // property may be associated to a onetomany or manytomany mapping. in such a case, check if there is an eager loading info
    OneToMany oneToMany = p.getAnnotation(OneToMany.class);
    if(oneToMany!=null) {
      eagerLoad = FetchType.EAGER.equals(oneToMany.fetch());
    }
    if(!eagerLoad) {
      ManyToMany manyToMany = p.getAnnotation(ManyToMany.class);
      if(manyToMany!=null) {
        eagerLoad = FetchType.EAGER.equals(manyToMany.fetch());
View Full Code Here

Examples of javax.persistence.OneToOne.fetch()

        final boolean mandatory = !ann.optional() || forcePersist;
        bindOneToOne(
            getCascadeStrategy( ann.cascade(), hibernateCascade, ann.orphanRemoval(), forcePersist ),
            joinColumns,
            !mandatory,
            getFetchMode( ann.fetch() ),
            ignoreNotFound, onDeleteCascade,
            ToOneBinder.getTargetEntity( inferredData, mappings ),
            propertyHolder,
            inferredData,
            ann.mappedBy(),
View Full Code Here

Examples of javax.persistence.criteria.FetchParent.fetch()

        CriteriaQuery<Product> criteria = builder.createQuery(Product.class);
        Root<ProductImpl> product = criteria.from(ProductImpl.class);

        FetchParent fetchParent = product.fetch("defaultSku", JoinType.LEFT);
        if (!dialectHelper.isOracle() && !dialectHelper.isSqlServer()) {
            fetchParent.fetch("skuMedia", JoinType.LEFT);
        }
        criteria.select(product);

        // We only want results that match the product IDs
        criteria.where(product.get("id").as(Long.class).in(
View Full Code Here

Examples of jdbm.RecordManager.fetch()

        long rowid = recman.insert(data);

        assertTrue("check data1",

               TestUtil.checkRecord( (byte[]) recman.fetch(rowid), 1500, (byte) 1) );




View Full Code Here

Examples of kafka.consumer.SimpleConsumer.fetch()

                                                       KafkaProperties.connectionTimeOut,
                                                       KafkaProperties.kafkaProducerBufferSize);

    System.out.println("Testing single fetch");
    FetchRequest req = new FetchRequest(KafkaProperties.topic2, 0, 0L, 100);
    ByteBufferMessageSet messageSet = simpleConsumer.fetch(req);
    printMessages(messageSet);

    System.out.println("Testing single multi-fetch");
    req = new FetchRequest(KafkaProperties.topic2, 0, 0L, 100);
    List<FetchRequest> list = new ArrayList<FetchRequest>();
View Full Code Here

Examples of kafka.javaapi.consumer.SimpleConsumer.fetch()

                // TODO - this should look at the actual node this is running on and prefer
                // that copy if running locally. - look into NodeInfo
                SimpleConsumer consumer = consumerManager.getConsumer(split.getNodes().get(0));

                FetchResponse fetchResponse = consumer.fetch(req);
                if (fetchResponse.hasError()) {
                    short errorCode = fetchResponse.errorCode(split.getTopicName(), split.getPartitionId());
                    log.warn("Fetch response has error: %d", errorCode);
                    throw new PrestoException(KafkaErrorCode.KAFKA_SPLIT_ERROR.toErrorCode(), "could not fetch data from Kafka, error code is '" + errorCode + "'");
                }
View Full Code Here

Examples of nginx.clojure.RequestVarFetcher.fetch()

      if (Thread.currentThread() != NginxClojureRT.NGINX_MAIN_THREAD) {
        throw new IllegalAccessError("fetching lazy value of " + array[i] + " in LazyRequestMap can only be called in main thread, please pre-access it in main thread OR call LazyRequestMap.prefetchAll() first in main thread");
      }
      RequestVarFetcher rf = (RequestVarFetcher) o;
      array[i+1] = null;
      Object rt = rf.fetch(r, DEFAULT_ENCODING);
      array[i+1] = rt;
//      System.out.println("LazyRequestMap, key=" + rt);
      return rt;
    }
//    System.out.println("LazyRequestMap, key=" + array[i] + ", val=" + o);
View Full Code Here

Examples of org.apache.cassandra.db.Scanner.fetch()

    }
   
    private static void doScannerTest() throws Throwable
    {
        Scanner scanner = new Scanner("Mailbox");
        scanner.fetch(Integer.toString(105), "MailboxMailList0");
       
        while ( scanner.hasNext() )
        {
            System.out.println(scanner.next().name());
        }            
View Full Code Here

Examples of org.apache.derby.iapi.store.access.ConglomerateController.fetch()

      while (sc.fetchNext(indexRow.getRowArray())) {
        RowLocation baseRowLocation = (RowLocation)indexRow.getColumn(
          indexRow.nColumns());

        boolean base_row_exists =
          heapCC.fetch(
            baseRowLocation, outRow.getRowArray(),
            (FormatableBitSet)null);

        if (SanityManager.DEBUG) {
          // it can not be possible for heap row to
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.