Examples of NamedQuery


Examples of javax.persistence.NamedQuery

    NamedQueries namedQueries = cls.getAnnotation(NamedQueries.class);
    if (namedQueries != null) {
      readNamedQueries(namedQueries);
    }
    NamedQuery namedQuery = cls.getAnnotation(NamedQuery.class);
    if (namedQuery != null) {
      readNamedQuery(namedQuery);
    }

    NamedUpdates namedUpdates = cls.getAnnotation(NamedUpdates.class);
View Full Code Here

Examples of javax.persistence.NamedQuery

  private NamedQueries getNamedQueries(Element tree, XMLContext.Default defaults) {
    //TODO avoid the Proxy Creation (@NamedQueries) when possible
    List<NamedQuery> queries = (List<NamedQuery>) buildNamedQueries( tree, false, defaults );
    if ( defaults.canUseJavaAnnotations() ) {
      NamedQuery annotation = getJavaAnnotation( NamedQuery.class );
      addNamedQueryIfNeeded( annotation, queries );
      NamedQueries annotations = getJavaAnnotation( NamedQueries.class );
      if ( annotations != null ) {
        for ( NamedQuery current : annotations.value() ) {
          addNamedQueryIfNeeded( current, queries );
View Full Code Here

Examples of javax.persistence.NamedQuery

          QueryBinder.bindSqlResultsetMapping( current, mappings, false );
        }
      }
    }
    {
      NamedQuery ann = annotatedElement.getAnnotation( NamedQuery.class );
      QueryBinder.bindQuery( ann, mappings, false );
    }
    {
      org.hibernate.annotations.NamedQuery ann = annotatedElement.getAnnotation(
          org.hibernate.annotations.NamedQuery.class
View Full Code Here

Examples of javax.persistence.NamedQuery

          QueryBinder.bindSqlResultsetMapping( current, mappings, false );
        }
      }
    }
    {
      NamedQuery ann = annotatedElement.getAnnotation( NamedQuery.class );
      QueryBinder.bindQuery( ann, mappings, false );
    }
    {
      org.hibernate.annotations.NamedQuery ann = annotatedElement.getAnnotation(
          org.hibernate.annotations.NamedQuery.class
View Full Code Here

Examples of javax.persistence.NamedQuery

  private NamedQueries getNamedQueries(Element tree, XMLContext.Default defaults) {
    //TODO avoid the Proxy Creation (@NamedQueries) when possible
    List<NamedQuery> queries = (List<NamedQuery>) buildNamedQueries( tree, false, defaults );
    if ( defaults.canUseJavaAnnotations() ) {
      NamedQuery annotation = getJavaAnnotation( NamedQuery.class );
      addNamedQueryIfNeeded( annotation, queries );
      NamedQueries annotations = getJavaAnnotation( NamedQueries.class );
      if ( annotations != null ) {
        for (NamedQuery current : annotations.value()) {
          addNamedQueryIfNeeded( current, queries );
View Full Code Here

Examples of javax.persistence.NamedQuery

  private NamedQueries getNamedQueries(Element tree, XMLContext.Default defaults) {
    //TODO avoid the Proxy Creation (@NamedQueries) when possible
    List<NamedQuery> queries = (List<NamedQuery>) buildNamedQueries( tree, false, defaults );
    if ( defaults.canUseJavaAnnotations() ) {
      NamedQuery annotation = getPhysicalAnnotation( NamedQuery.class );
      addNamedQueryIfNeeded( annotation, queries );
      NamedQueries annotations = getPhysicalAnnotation( NamedQueries.class );
      if ( annotations != null ) {
        for ( NamedQuery current : annotations.value() ) {
          addNamedQueryIfNeeded( current, queries );
View Full Code Here

Examples of loxia.annotation.NamedQuery

  }

  public Object invoke(MethodInvocation invocation) throws Throwable {
    Method m = invocation.getMethod();
    Query query = m.getAnnotation(Query.class);
    NamedQuery namedQuery = m.getAnnotation(NamedQuery.class);
    DynamicQuery dynamicQuery = m.getAnnotation(DynamicQuery.class);
    NativeQuery nativeQuery = m.getAnnotation(NativeQuery.class);
    NativeUpdate nativeUpdate = m.getAnnotation(NativeUpdate.class);
   
    if(namedQuery !=null){
View Full Code Here

Examples of loxia.annotation.NamedQuery

  @Around("this(loxia.dao.GenericEntityDao)")
  public Object doQuery(ProceedingJoinPoint pjp) throws Throwable{
    MethodSignature ms = (MethodSignature)pjp.getSignature();
    Query query = ms.getMethod().getAnnotation(Query.class);
    NamedQuery namedQuery = ms.getMethod().getAnnotation(NamedQuery.class);
    DynamicQuery dynamicQuery = ms.getMethod().getAnnotation(DynamicQuery.class);
    NativeQuery nativeQuery = ms.getMethod().getAnnotation(NativeQuery.class);
    NativeUpdate nativeUpdate = ms.getMethod().getAnnotation(NativeUpdate.class);
   
    if(namedQuery !=null){
View Full Code Here

Examples of net.sourceforge.jpaxjc.ns.persistence.orm.NamedQuery

                    orm.getTableGenerator().add( e );
                    acknowledge = true;
                }
                else if ( c.element.getLocalName().equals( "named-query" ) )
                {
                    final NamedQuery e = JAXB.unmarshal( new DOMSource( c.element ), NamedQuery.class );
                    orm.getNamedQuery().add( e );
                    acknowledge = true;
                }
                else if ( c.element.getLocalName().equals( "named-native-query" ) )
                {
View Full Code Here

Examples of org.apache.cayenne.query.NamedQuery

     * counts.
     *
     * @since 1.1
     */
    public int[] performNonSelectingQuery(String queryName) {
        return performNonSelectingQuery(new NamedQuery(queryName));
    }
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.