Examples of type()


Examples of com.reflectiondao.annotation.DatabaseField.type()

      List<Object> params = new ArrayList<Object>();

      for (Field f : this.type.getDeclaredFields()) {
        DatabaseField db = f.getAnnotation(DatabaseField.class);

        params.add(db.type().getValue(f, rs));

      }

      @SuppressWarnings("unchecked")
      Constructor<S> ctor = (Constructor<S>) this.type.getConstructors()[0];
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.product.backlogitem.BacklogItem.type()

                    backlogItem.tenantId(),
                    backlogItem.productId(),
                    backlogItem.backlogItemId(),
                    backlogItem.summary(),
                    backlogItem.category(),
                    backlogItem.type(),
                    backlogItem.storyPoints()));

        return backlogItem;
    }
View Full Code Here

Examples of com.skyline.common.cache.annotation.Cache.type()

        Cache cache = (Cache) annotation;
        isCachable = true;
        keyPattern = cache.keyPattern();
        expire = cache.expire();
        isPagination = cache.pagination();
        categoryType = cache.type();
        isGenericCache = isCategoryTypeGeneric(categoryType);
      }
      if (annotationType.equals(CacheDelete.class)) { // 如categoryType等可能重复的数据以删除为准
        isCacheDelete = true;
        CacheDelete cacheDelete = (CacheDelete) annotation;
View Full Code Here

Examples of com.skyline.common.cache.annotation.CacheDelete.type()

        isGenericCache = isCategoryTypeGeneric(categoryType);
      }
      if (annotationType.equals(CacheDelete.class)) { // 如categoryType等可能重复的数据以删除为准
        isCacheDelete = true;
        CacheDelete cacheDelete = (CacheDelete) annotation;
        categoryType = cacheDelete.type();
        expire = cacheDelete.expire();
        isGenericCache = isCategoryTypeGeneric(categoryType);
      }
    }
  }
View Full Code Here

Examples of com.springsource.insight.intercept.operation.Operation.type()

    @Test
    public void testLocateExternalResourceNameWhenDisabled() {
        assertInitialState();

        Operation op = createJdbcOperation("jdbc:foobar://huh:8080");
        op.type(JdbcOperationExternalResourceAnalyzer.TYPE);

        Frame frame = createJdbcFrame(op);
        Trace trace = createJdbcTrace(frame);

        Collection<ExternalResourceDescriptor> resources = locateExternalResourceName(trace);
View Full Code Here

Examples of com.subgraph.orchid.TorConfig.ConfigVar.type()

  }
 
  void invokeSetMethod(Method method, Object[] args) {
    final String name = getVariableNameForMethod(method);
    final ConfigVar annotation = getAnnotationForVariable(name);
    if(annotation != null && annotation.type() == ConfigVarType.INTERVAL) {
      setIntervalValue(name, args);
    } else {
      configValues.put(name, args[0]);
    }
  }
View Full Code Here

Examples of com.sun.codemodel.JFieldVar.type()

    private void generateCollectionSetter( final JCodeModel cm, final ClassOutline c, final CPropertyInfo p )
    {
        final JFieldVar field = c.implClass.fields().get( p.getName( false ) );
        final JMethod setter = c.implClass.method( JMod.PUBLIC, cm.VOID, "set" + p.getName( true ) );
        final JVar valueParam = setter.param( JMod.FINAL, field.type(), "value" );
        final JBlock body = setter.body();
        body.directStatement( "// " + getMessage( "title" ) );
        body.assign( JExpr._this().ref( field ), valueParam );

        setter.javadoc().append( "Sets the value of the " + p.getName( false ) + " property." );
View Full Code Here

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

        JDefinedClass echo = model._getClass("jsr181.echo.wrapped.EchoPortType");
        assertNotNull(echo);
       
        JMethod method = echo.getMethod("echo", new JType[] { model.ref(String.class) });
        assertNotNull(method);
        assertEquals( model.ref(String.class), method.type() );
       
        assertNotNull(model._getClass("jsr181.echo.wrapped.EchoClient"));
        assertNotNull(model._getClass("jsr181.echo.wrapped.EchoImpl"));
    }
   
View Full Code Here

Examples of com.sun.codemodel.JVar.type()

      // generateSet.body().assign(JExpr._this().ref(field.name()), value);
      generateWith.body().directStatement("super.with" + Util.upperFirst(field.name()) + "(" + field.name() + ");");
    } else {
      generateWith.javadoc().add("fluent setter");
      generateWith.javadoc().addParam(value).append("required parameter");
      generateWith.javadoc().add("\n@see #set"+Util.upperFirst(field.name())+"("+value.type().name()+")");
      generateWith.body().directStatement("this.set" + Util.upperFirst(field.name()) + "(" + field.name() + ");");
    }
    // generateSet.body().directStatement("this."+field.name() + " = " + field.name()+";");
    // generate the javadoc
    generateWith.body()._return(JExpr._this());
View Full Code Here

Examples of com.sun.codemodel.internal.JVar.type()

        JMethod $set = writer.declareMethod( codeModel.VOID, "set"+prop.getName(true) );
        JType setterType = exposedType;
        if(forcePrimitiveAccess)    setterType = setterType.unboxify();
        JVar $value = writer.addParameter( setterType, "value" );
        JBlock body = $set.body();
        if ($value.type().equals(implType)) {
            body.assign(JExpr._this().ref(ref()), $value);
        } else {
            body.assign(JExpr._this().ref(ref()), castToImplType($value));
        }
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.