Examples of NativeQuery


Examples of com.im.imjutil.query.NativeQuery

      // Cria a consulta
      String queryString = query.createQuery(filters);
     
      javax.persistence.Query queryJPA;
      if (query instanceof NativeQuery) {
        NativeQuery nativeQuery = (NativeQuery) query;
        Class<?> target = getTargetClass(nativeQuery);
       
        if (target != null)
          queryJPA = manager.createNativeQuery(queryString, target);
        else
View Full Code Here

Examples of com.im.imjutil.query.NativeQuery

      // Cria a consulta
      String queryString = query.createQuery(filters);
     
      javax.persistence.Query queryJPA;
      if (query instanceof NativeQuery) {
        NativeQuery nativeQuery = (NativeQuery) query;
        Class<?> target = (nativeQuery.getTarget() != null) ? nativeQuery.getTarget() : this.clazz;
        queryJPA = manager.createNativeQuery(queryString, target);
      } else {
        queryJPA = manager.createQuery(queryString);
      }
     
View Full Code Here

Examples of info.archinnov.achilles.query.cql.NativeQuery

        return new SliceQueryBuilder<>(sliceQueryExecutor, entityClass, meta);
    }

    protected NativeQuery nativeQuery(RegularStatement regularStatement, Options options, Object... boundValues) {
        Validator.validateNotNull(regularStatement, "The regularStatement for native query should not be null");
        return new NativeQuery(daoContext, configContext, regularStatement, options, boundValues);
    }
View Full Code Here

Examples of info.archinnov.achilles.query.cql.NativeQuery

        final RegularStatement statement = update("CompleteBean").with(set("name","Helen"))
                .where(eq("id",entity.getId())).onlyIf(eq("name","Andrew"));

        //When
        final NativeQuery nativeQuery = manager.nativeQuery(statement,casResultListener(listener));
        nativeQuery.execute();

        //Then
        final CASResult casResult = atomicCASResult.get();

        assertThat(casResult).isNotNull();
View Full Code Here

Examples of loxia.annotation.NativeQuery

  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){
      return namedQueryHandler.handleNamedQuery(namedQuery, invocation);
    }else if(query != null){
View Full Code Here

Examples of loxia.annotation.NativeQuery

  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){
      return namedQueryHandler.handleNamedQuery(namedQuery, pjp);
    }else if(query != null){
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.