Examples of FetchType


Examples of com.data2semantics.yasgui.shared.autocompletions.FetchType

        response.sendError(HttpServletResponse.SC_FORBIDDEN, "You should be logged in before submitting completions");
        return;
      }
     
     
      FetchType type = getTypeFromJson(jsonObj);
      String endpoint = getEndpointFromJson(jsonObj);
      JSONArray completions = jsonObj.getJSONArray(AutocompleteKeys.REQUEST_COMPLETIONS);
     
      //does endpoint already exist as a public endpoint?? If so, ignore..
      try {
View Full Code Here

Examples of com.data2semantics.yasgui.shared.autocompletions.FetchType

      //This way we can use the same canvas for every cell, and still change the click handler
      if (rollOverCanvasClickHandler != null) rollOverCanvasClickHandler.removeHandler();
      rollOverCanvasClickHandler = rollOverCanvas.getMembers()[0].addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          final String endpoint = rollOverRecord.getAttribute(AutocompletionConfigCols.ENDPOINT.getKey());
          final FetchType type = Util.stringToFetchType(rollOverRecord.getAttribute(AutocompletionConfigCols.TYPE.getKey()));
          final FetchMethod method = Util.stringToFetchMethod(getFieldName(colNum));
          new GwtCallbackWrapper<Void>(view) {
            public void onCall(AsyncCallback<Void> callback) {
              view.getRemoteService().clearPrivateCompletions(type, method, endpoint, callback);
            }
View Full Code Here

Examples of com.data2semantics.yasgui.shared.autocompletions.FetchType

  }

 
 
  private JSONObject getJson(HttpServletRequest request, HttpServletResponse response) throws JSONException, ClassNotFoundException, FileNotFoundException, SQLException, IOException, ParseException {
    FetchType type = getTypeInRequest(request);
    FetchMethod method = getMethodInRequest(request);
    String endpoint = request.getParameter(AutocompleteKeys.REQUEST_ENDPOINT); //can be null, in that case retrieve both methods
    String partialCompletion = request.getParameter(AutocompleteKeys.REQUEST_QUERY); //can be null, in that case retrieve both methods
    int maxResults = Integer.parseInt(request.getParameter(AutocompleteKeys.REQUEST_MAX_RESULTS));
   
View Full Code Here

Examples of javax.persistence.FetchType

                        modifier = FieldPersistenceModifier.PERSISTENT.toString();
                    }
                }
                else if (annName.equals(JPAAnnotationUtils.BASIC))
                {
                    FetchType fetch = (FetchType)annotationValues.get("fetch");
                    if (fetch == FetchType.LAZY)
                    {
                        dfg = "false";
                    }
                    else
View Full Code Here

Examples of javax.persistence.FetchType

  }

  private void checkBasicAnnotation() {
    AnnotationInstance basicAnnotation = JandexHelper.getSingleAnnotation( annotations(), JPADotNames.BASIC );
    if ( basicAnnotation != null ) {
      FetchType fetchType = FetchType.LAZY;
      AnnotationValue fetchValue = basicAnnotation.value( "fetch" );
      if ( fetchValue != null ) {
        fetchType = Enum.valueOf( FetchType.class, fetchValue.asEnum() );
      }
      this.isLazy = fetchType == FetchType.LAZY;
View Full Code Here

Examples of javax.persistence.FetchType

  protected static void defineFetchingStrategy(ToOne toOne, XProperty property) {
    LazyToOne lazy = property.getAnnotation( LazyToOne.class );
    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();
View Full Code Here

Examples of javax.persistence.FetchType

  private boolean determineFetchType(AnnotationInstance associationAnnotation) {
    boolean lazy = false;
    AnnotationValue fetchValue = associationAnnotation.value( "fetch" );
    if ( fetchValue != null ) {
      FetchType fetchType = Enum.valueOf( FetchType.class, fetchValue.asEnum() );
      if ( FetchType.LAZY.equals( fetchType ) ) {
        lazy = true;
      }
    }
    return lazy;
View Full Code Here

Examples of javax.persistence.FetchType

  protected static void defineFetchingStrategy(ToOne toOne, XProperty property) {
    LazyToOne lazy = property.getAnnotation( LazyToOne.class );
    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();
View Full Code Here

Examples of javax.persistence.FetchType

    Fetch fetch = property.getAnnotation( Fetch.class );
    OneToMany oneToMany = property.getAnnotation( OneToMany.class );
    ManyToMany manyToMany = property.getAnnotation( ManyToMany.class );
    CollectionOfElements elements = property.getAnnotation( CollectionOfElements.class );
    ManyToAny manyToAny = property.getAnnotation( ManyToAny.class );
    FetchType fetchType;
    if ( oneToMany != null ) {
      fetchType = oneToMany.fetch();
    }
    else if ( manyToMany != null ) {
      fetchType = manyToMany.fetch();
View Full Code Here

Examples of javax.persistence.FetchType

    Fetch fetch = property.getAnnotation( Fetch.class );
    OneToMany oneToMany = property.getAnnotation( OneToMany.class );
    ManyToMany manyToMany = property.getAnnotation( ManyToMany.class );
    ElementCollection elementCollection = property.getAnnotation( ElementCollection.class ); //jpa 2
    ManyToAny manyToAny = property.getAnnotation( ManyToAny.class );
    FetchType fetchType;
    if ( oneToMany != null ) {
      fetchType = oneToMany.fetch();
    }
    else if ( manyToMany != null ) {
      fetchType = manyToMany.fetch();
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.