Examples of param()


Examples of com.mysql.clusterj.query.QueryDomainType.param()

        QueryBuilder builder = session.getQueryBuilder();
        // QueryDomainType is the main interface
        QueryDomainType dobj = builder.createQueryDefinition(Dn2id.class);

        // parameter name
        PredicateOperand param = dobj.param("eid");
        // property name
        PredicateOperand column = dobj.get("eid");
        // compare the column with the parameter
        Predicate compare = column.lessEqual(param);
        // set the where clause into the query
View Full Code Here

Examples of com.psddev.cms.tool.ToolPageContext.param()

            throw new IllegalStateException();
        }

        @SuppressWarnings("resource")
        ToolPageContext page = new ToolPageContext(getServletContext(), request, response);
        UUID mainId = page.param(UUID.class, "id");
        Object mainObject = Query.
                fromAll().
                where("_id = ?", mainId).
                first();
View Full Code Here

Examples of com.skyline.energy.annotation.ShardBy.param()

 
  protected void parseShardBy(Method method, Map<String, Integer> paramIndexes, Class<?>[] paramTypes) throws DaoGenerateException {
    ShardBy shardBy = method.getAnnotation(ShardBy.class);
    if(shardBy != null) {
      shardTable = shardBy.table();
      shardParamName = StringUtils.trimToEmpty(shardBy.param());
     
      int pos = shardParamName.indexOf('.');
      if (pos != -1) {
        String actualName = shardParamName.substring(0, pos);
View Full Code Here

Examples of com.sun.codemodel.JAnnotationArrayMember.param()

            {
                final JAnnotationUse uca = uclst.annotate( javax.persistence.UniqueConstraint.class );
                final JAnnotationArrayMember colNames = uca.paramArray( "columnNames" );
                for ( String cn : uc.getColumnName() )
                {
                    colNames.param( cn );
                }
            }
        }
    }
View Full Code Here

Examples of com.sun.codemodel.JAnnotationUse.param()

        final ClassOutline c = this.getClassOutline( outline, entity.getClazz() );
        final JAnnotationUse a = c.implClass.annotate( cm.ref( javax.persistence.Entity.class ) );

        if ( entity.getName() != null )
        {
            a.param( "name", entity.getName() );
        }

        if ( !entity.getAssociationOverride().isEmpty() )
        {
            final JAnnotationUse aolst = c.implClass.annotate( cm.ref( javax.persistence.AssociationOverrides.class ) );
View Full Code Here

Examples of com.sun.codemodel.JCatchBlock.param()

            "newXMLGregorianCalendar" ).arg( calendar ) );

        tryBlock.body()._return( JExpr._null() );

        final JCatchBlock catchBlock = tryBlock._catch( cm.ref( DatatypeConfigurationException.class ) );
        catchBlock.body()._throw( JExpr._new( cm.ref( AssertionError.class ) ).arg( catchBlock.param( "e" ) ) );

        createXMLGregorianCalendar.javadoc().append(
            "Creates a " + XMLGregorianCalendar.class.getName() + " instance from a " + Calendar.class.getName()
            + " instance." );
View Full Code Here

Examples of com.sun.codemodel.JMethod.param()

    final JTypeVar returnType = _method.generify("R");
    final JTypeVar exceptionType = _method.generify("E", Throwable.class);
    _method.type(returnType);
    _method._throws(exceptionType);
    final JClass narrowedVisitor = visitor.narrow(returnType, exceptionType);
    _method.param(narrowedVisitor, "aVisitor");
       
        for(ClassOutline classOutline : classes) {
            classOutline.implClass._implements(getOutput());
        }
    }
View Full Code Here

Examples of com.sun.codemodel.JMethod.param()

        for(ClassOutline classOutline : classes) {
            if (!classOutline.target.isAbstract()) {
                // add the bean to the visitor
                JMethod vizMethod = getOutput().method(JMod.PUBLIC, returnType, "visit");
                vizMethod._throws(exceptionType);
                vizMethod.param(classOutline.implClass, "aBean");
            }
        }
    }
}
View Full Code Here

Examples of com.sun.codemodel.JMethod.param()

        for (ClassOutline classOutline : classes) {
            if (!classOutline.target.isAbstract()) {
                // add the bean to the traverser
                JMethod traverseMethod = getOutput().method(JMod.PUBLIC, void.class, "traverse");
                traverseMethod._throws(exceptionType);
                traverseMethod.param(classOutline.implClass, "aBean");
                traverseMethod.param(narrowedVisitor, "aVisitor");
            }
        }
        jpackage.remove(scratch);
    }
View Full Code Here

Examples of com.sun.codemodel.JMethod.param()

            if (!classOutline.target.isAbstract()) {
                // add the bean to the traverser
                JMethod traverseMethod = getOutput().method(JMod.PUBLIC, void.class, "traverse");
                traverseMethod._throws(exceptionType);
                traverseMethod.param(classOutline.implClass, "aBean");
                traverseMethod.param(narrowedVisitor, "aVisitor");
            }
        }
        jpackage.remove(scratch);
    }
}
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.