Examples of fetch()


Examples of hirondelle.fish.main.member.MemberDAO.fetch()

   object can be used in the JSP, in the web4j prepopulate mechanism. Thus, there is kind
   of a mixture of the 'add' and 'change' use cases here.
  */
  private Rsvp useStubRsvp() throws AppException {
    MemberDAO dao = new MemberDAO();
    Member member = dao.fetch(fMemberId);
    return new Rsvp(fVisitId, fMemberId, member.getName(), null);
  }
}
View Full Code Here

Examples of hirondelle.fish.translate.basetext.BaseTextDAO.fetch()

      BaseTextDAO dao = new BaseTextDAO();
      //this req param needs to always be present
      Id baseTextId = getIdParam(BASE_TEXT_ID);
      fLogger.fine("Fetching BaseText for " + Util.quote(baseTextId));
      try {
        fParent = dao.fetch(baseTextId);
      }
      catch(DAOException ex){
        fLogger.severe("Cannot fetch BaseText using id " + Util.quote(baseTextId));       
      }
    }
View Full Code Here

Examples of hirondelle.predict.main.preferences.PreferencesDAO.fetch()

    //AllowStringAsBuildingBlock is set to NO in web.xml
    SafeText userName = SafeText.from(aRequest.getUserPrincipal().getName());
    fLogger.fine("Adding user preferences to session, for principal name:" + userName);
    PreferencesDAO dao  = new PreferencesDAO();
    try {
      Preferences prefs = dao.fetch(userName);
      fLogger.fine("Adding user id and screen name to session");
      aSession.setAttribute(ActionImpl.USER_ID, prefs.getUserId());
      aSession.setAttribute(Preferences.SCREEN_NAME, prefs.getScreenName());
    }
    catch (DAOException ex){
View Full Code Here

Examples of intrade.entities.MarketXML.fetch()

      resp.getWriter().flush();
      m = new MarketXML(url);

      System.out.println("Start fetching");

      m.fetch();

      resp.getWriter().println("New timestamp:" + DateFormat.getDateTimeInstance().format(m.getTimestamp()));
      resp.getWriter().println("Storing...");
      resp.getWriter().flush();
      pm.makePersistent(m);
View Full Code Here

Examples of javax.mail.Folder.fetch()

      if (DebugFile.trace) {
        DebugFile.writeln("Folder.fetch(Message[], ENVELOPE & CONTENT_INFO & FLAGS)");
        oChMeter.start();
      }

      oFldr.fetch(aMsgsObj, oFtchPrfl);
     
      if (DebugFile.trace) {
        DebugFile.writeln(String.valueOf(iTotalCount)+" headers fetched in "+String.valueOf(oChMeter.stop()/1000l)+" seconds");
        oChMeter.start();
      }
View Full Code Here

Examples of javax.persistence.Basic.fetch()

                              _fieldType, _fieldName));

    Basic basicAnn = _field.getAnnotation(Basic.class);
    if (basicAnn != null) {
      _fetch = basicAnn.fetch();
      _isOptional = basicAnn.optional();
    }
  
    Column columnAnn = _field.getAnnotation(Column.class);
   
View Full Code Here

Examples of javax.persistence.Column.fetch()

          boolean optional = true;
          boolean lazy = false;
          if ( property.isAnnotationPresent( Basic.class ) ) {
            Basic ann = property.getAnnotation( Basic.class );
            optional = ann.optional();
            lazy = ann.fetch() == FetchType.LAZY;
          }
          //implicit type will check basic types and Serializable classes
          if ( isId || ( !optional && nullability != Nullability.FORCED_NULL ) ) {
            //force columns to not null
            for ( Ejb3Column col : columns ) {
View Full Code Here

Examples of javax.persistence.ElementCollection.fetch()

    }
    else if ( manyToMany != null ) {
      fetchType = manyToMany.fetch();
    }
    else if ( elementCollection != null ) {
      fetchType = elementCollection.fetch();
    }
    else if ( manyToAny != null ) {
      fetchType = FetchType.LAZY;
    }
    else {
View Full Code Here

Examples of javax.persistence.JoinColumns.fetch()

      }
      bindOneToOne(
          getCascadeStrategy( ann.cascade(), hibernateCascade ),
          joinColumns,
          ann.optional(),
          getFetchMode( ann.fetch() ),
          ignoreNotFound, onDeleteCascade,
          mappings.getReflectionManager().toXClass( ann.targetEntity() ),
          propertyHolder,
          inferredData, ann.mappedBy(), trueOneToOne, isIdentifierMapper, inSecondPass, mappings
      );
View Full Code Here

Examples of javax.persistence.ManyToMany.fetch()

      eagerLoad = FetchType.EAGER.equals(oneToMany.fetch());
    }
    if(!eagerLoad) {
      ManyToMany manyToMany = p.getAnnotation(ManyToMany.class);
      if(manyToMany!=null) {
        eagerLoad = FetchType.EAGER.equals(manyToMany.fetch());
      }
    }
    Collection<Object> generatedCollection = Utils.generateCollection((Class<?>) p.getType(), null);
    ClassLoader classLoader = containedClass.getClassLoader();
    CollectionLazyLoader handler = new CollectionLazyLoader(classLoader, repository, p, objectVertex, generatedCollection, objectsBeingAccessed);
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.