Examples of type()


Examples of org.glassfish.api.admin.config.ModelBinding.type()

            String defaultValue = param.defaultValue();
            ModelBinding mb = e.getAnnotation(ModelBinding.class);
            if (mb!=null && defaultValue.isEmpty()) {
                Method m = null;
                try {
                    m = mb.type().getMethod(mb.getterMethodName());
                } catch (NoSuchMethodException e1) {
                    // ignore.
                }
                if (m!=null) {
                    Attribute attr = m.getAnnotation(Attribute.class);
View Full Code Here

Examples of org.glassfish.gmbal.AMXMetadata.type()

    public String getTypeValue(Object statsProvider) {
        String type = null;
        AMXMetadata am = statsProvider.getClass().getAnnotation(AMXMetadata.class);
        if (am != null) {
            type = am.type();
        }
        if (type == null) {
            type = statsProvider.getClass().getSimpleName();
        }
        return type;
View Full Code Here

Examples of org.glassfish.jersey.internal.util.collection.ClassTypePair.type()

            if (ctp == null || ctp.rawClass() == String.class) {
                return StringCollectionExtractor.getInstance(
                        rawType, parameterName, defaultValue);
            } else {
                final ParamConverter<?> converter = paramConverterFactory.getConverter(ctp.rawClass(), ctp.type(), annotations);
                if (converter == null) {
                    return null;
                }

                try {
View Full Code Here

Examples of org.gridgain.testframework.junits.spi.GridSpiTestConfig.type()

        for (Method m : getClass().getMethods()) {
            GridSpiTestConfig cfg = m.getAnnotation(GridSpiTestConfig.class);

            if (cfg != null) {
                if (getTestData().isDiscoveryTest() ||
                    (cfg.type() != ConfigType.DISCOVERY && !(spi instanceof GridDiscoverySpi)) ||
                    (cfg.type() != ConfigType.SELF && spi instanceof GridDiscoverySpi)) {
                    assert m.getName().startsWith("get") : "Test configuration must be a getter [method=" +
                        m.getName() + ']';

                    // Determine getter name.
View Full Code Here

Examples of org.hibernate.annotations.CollectionId.type()

          mappings
      );
      Table table = collection.getCollectionTable();
      simpleValue.setTable( table );
      simpleValue.setColumns( idColumns );
      Type typeAnn = collectionIdAnn.type();
      if ( typeAnn != null && !BinderHelper.isDefault( typeAnn.type() ) ) {
        simpleValue.setExplicitType( typeAnn );
      }
      else {
        throw new AnnotationException( "@CollectionId is missing type: "
View Full Code Here

Examples of org.hibernate.annotations.CollectionType.type()

    }
    result.setIsHibernateExtensionMapping( isHibernateExtensionMapping );

    final CollectionType typeAnnotation = property.getAnnotation( CollectionType.class );
    if ( typeAnnotation != null ) {
      final String typeName = typeAnnotation.type();
      // see if it names a type-def
      final TypeDef typeDef = mappings.getTypeDef( typeName );
      if ( typeDef != null ) {
        result.explicitType = typeDef.getTypeClass();
        result.explicitTypeParameters.putAll( typeDef.getParameters() );
View Full Code Here

Examples of org.hibernate.annotations.MapKey.type()

          }
          elementBinder.setColumns( elementColumns );
          //do not call setType as it extract the type from @Type
          //the algorithm generally does not apply for map key anyway
          MapKey mapKeyAnn = property.getAnnotation( org.hibernate.annotations.MapKey.class );
          if (mapKeyAnn != null && ! BinderHelper.isDefault( mapKeyAnn.type().type() ) ) {
            elementBinder.setExplicitType( mapKeyAnn.type() );
          }
          mapValue.setIndex( elementBinder.make() );
        }
      }
View Full Code Here

Examples of org.hibernate.annotations.OptimisticLocking.type()

    {
      final OptimisticLocking optimisticLockingAnn = annotatedClass.getAnnotation( OptimisticLocking.class );
      this.optimisticLockType = optimisticLockingAnn == null
          ? ( hibAnn == null ? OptimisticLockType.VERSION : hibAnn.optimisticLock() )
          : optimisticLockingAnn.type();
    }

    {
      final Polymorphism polymorphismAnn = annotatedClass.getAnnotation( Polymorphism.class );
      this.polymorphismType = polymorphismAnn == null
View Full Code Here

Examples of org.hibernate.annotations.Polymorphism.type()

    {
      final Polymorphism polymorphismAnn = annotatedClass.getAnnotation( Polymorphism.class );
      this.polymorphismType = polymorphismAnn == null
          ? ( hibAnn == null ? PolymorphismType.IMPLICIT : hibAnn.polymorphism() )
          : polymorphismAnn.type();
    }

    if ( hibAnn != null ) {
      // used later in bind for logging
      explicitHibernateEntityAnnotation = true;
View Full Code Here

Examples of org.hibernate.annotations.Type.type()

      );
      Table table = collection.getCollectionTable();
      simpleValue.setTable( table );
      simpleValue.setColumns( idColumns );
      Type typeAnn = collectionIdAnn.type();
      if ( typeAnn != null && !BinderHelper.isDefault( typeAnn.type() ) ) {
        simpleValue.setExplicitType( typeAnn );
      }
      else {
        throw new AnnotationException( "@CollectionId is missing type: "
            + StringHelper.qualify( propertyHolder.getPath(), propertyName ) );
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.