Package org.hibernate.engine.profile

Examples of org.hibernate.engine.profile.Fetch$Style


    File outputFile = new File(ServletContextParameterMap.getParameterValue(ContextParameter.USER_DIRECTORY_PATH) + "KML/" + worksheet.getTitle() + ".kml");
    final Kml kml = KmlFactory.createKml();
    final Folder folder = kml.createAndSetFolder()
        .withName(worksheet.getTitle()).withOpen(true);

    Style style = folder.createAndAddStyle().withId("karma");
   
    if(randomCounter++%2 == 0)
      style.createAndSetIconStyle().withScale(1.399999976158142).withIcon(new Icon().withHref("http://maps.google.com/mapfiles/ms/icons/blue-pushpin.png"));
    else
      style.createAndSetIconStyle().withScale(1.399999976158142).withIcon(new Icon().withHref("http://maps.google.com/mapfiles/ms/icons/red-pushpin.png"));

    for (edu.isi.karma.geospatial.Point point : points) {
      folder.createAndAddPlacemark()
          .withDescription(point.getHTMLDescription())
          .withVisibility(true)
View Full Code Here


        @Override
        public Feature decorate(Feature feature, KmlEncodingContext context) {
            Placemark pm = (Placemark) feature;
            // while it's possible to have more than one style object, GE will only paint
            // the first one
            Style style = pm.createAndAddStyle();
            List<Symbolizer> symbolizers = context.getCurrentSymbolizers();
            SimpleFeature sf = context.getCurrentFeature();
            if (symbolizers.size() > 0 && sf.getDefaultGeometry() != null) {
                // sort by point, text, line and polygon
                Map<Class, List<Symbolizer>> classified = classifySymbolizers(symbolizers);
View Full Code Here

        : rootPropertyName;
    String fetchRole = persister.getEntityName() + "." + relativePropertyPath;

    for ( String profileName : getLoadQueryInfluencers().getEnabledFetchProfileNames() ) {
      final FetchProfile profile = getFactory().getFetchProfile( profileName );
      final Fetch fetch = profile.getFetchByRole( fetchRole );
      if ( fetch != null && Fetch.Style.JOIN == fetch.getStyle() ) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

        : rootPropertyName;
    final String fetchRole = persister.getEntityName() + "." + relativePropertyPath;

    for ( String profileName : loadQueryInfluencers.getEnabledFetchProfileNames() ) {
      final FetchProfile profile = loadQueryInfluencers.getSessionFactory().getFetchProfile( profileName );
      final Fetch fetch = profile.getFetchByRole( fetchRole );
      if ( fetch != null && Fetch.Style.JOIN == fetch.getStyle() ) {
        return FetchStyle.JOIN;
      }
    }
    return null;
  }
View Full Code Here

    Iterator profiles = getLoadQueryInfluencers().getEnabledFetchProfileNames().iterator();
    while ( profiles.hasNext() ) {
      final String profileName = ( String ) profiles.next();
      final FetchProfile profile = getFactory().getFetchProfile( profileName );
      final Fetch fetch = profile.getFetchByRole( fetchRole );
      if ( fetch != null && Fetch.Style.JOIN == fetch.getStyle() ) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

    Iterator profiles = getLoadQueryInfluencers().getEnabledFetchProfileNames().iterator();
    while ( profiles.hasNext() ) {
      final String profileName = ( String ) profiles.next();
      final FetchProfile profile = getFactory().getFetchProfile( profileName );
      final Fetch fetch = profile.getFetchByRole( fetchRole );
      if ( fetch != null && Fetch.Style.JOIN == fetch.getStyle() ) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

    Iterator profiles = getLoadQueryInfluencers().getEnabledFetchProfileNames().iterator();
    while ( profiles.hasNext() ) {
      final String profileName = ( String ) profiles.next();
      final FetchProfile profile = getFactory().getFetchProfile( profileName );
      final Fetch fetch = profile.getFetchByRole( fetchRole );
      if ( fetch != null && Fetch.Style.JOIN == fetch.getStyle() ) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

    Iterator profiles = getLoadQueryInfluencers().getEnabledFetchProfileNames().iterator();
    while ( profiles.hasNext() ) {
      final String profileName = ( String ) profiles.next();
      final FetchProfile profile = getFactory().getFetchProfile( profileName );
      final Fetch fetch = profile.getFetchByRole( fetchRole );
      if ( fetch != null && Fetch.Style.JOIN == fetch.getStyle() ) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

    Iterator profiles = getLoadQueryInfluencers().getEnabledFetchProfileNames().iterator();
    while ( profiles.hasNext() ) {
      final String profileName = ( String ) profiles.next();
      final FetchProfile profile = getFactory().getFetchProfile( profileName );
      final Fetch fetch = profile.getFetchByRole( fetchRole );
      if ( fetch != null && Fetch.Style.JOIN == fetch.getStyle() ) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

    Iterator profiles = getLoadQueryInfluencers().getEnabledFetchProfileNames().iterator();
    while ( profiles.hasNext() ) {
      final String profileName = ( String ) profiles.next();
      final FetchProfile profile = getFactory().getFetchProfile( profileName );
      final Fetch fetch = profile.getFetchByRole( fetchRole );
      if ( fetch != null && Fetch.Style.JOIN == fetch.getStyle() ) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.engine.profile.Fetch$Style

Copyright © 2018 www.massapicom. 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.