Examples of TypeDef


Examples of org.hibernate.metamodel.binding.TypeDef

      hibernateTypeDescriptor.setJavaTypeName( discoveredJavaType.getName() );
    }

    final String explicitTypeName = typeSource.getName();
    if ( explicitTypeName != null ) {
      final TypeDef typeDef = currentBindingContext.getMetadataImplementor()
          .getTypeDefinition( explicitTypeName );
      if ( typeDef != null ) {
        hibernateTypeDescriptor.setExplicitTypeName( typeDef.getTypeClass() );
        hibernateTypeDescriptor.getTypeParameters().putAll( typeDef.getParameters() );
      }
      else {
        hibernateTypeDescriptor.setExplicitTypeName( explicitTypeName );
      }
      final Map<String, String> parameters = typeSource.getParameters();
View Full Code Here

Examples of org.hibernate.metamodel.binding.TypeDef

      throw new IllegalArgumentException( "Type definition is null" );
    }
    else if ( typeDef.getName() == null ) {
      throw new IllegalArgumentException( "Type definition name is null: " + typeDef.getTypeClass() );
    }
    final TypeDef previous = typeDefs.put( typeDef.getName(), typeDef );
    if ( previous != null ) {
      LOG.debugf( "Duplicate typedef name [%s] now -> %s", typeDef.getName(), typeDef.getTypeClass() );
    }
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.TypeDef

      String name,
      String typeClass,
      Map<String, String> prms,
      MetadataImplementor metadata) {
    LOG.debugf( "Binding type definition: %s", name );
    metadata.addTypeDefinition( new TypeDef( name, typeClass, prms ) );
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.TypeDef

      throw new IllegalArgumentException( "Type definition is null" );
    }
    else if ( typeDef.getName() == null ) {
      throw new IllegalArgumentException( "Type definition name is null: " + typeDef.getTypeClass() );
    }
    final TypeDef previous = typeDefs.put( typeDef.getName(), typeDef );
    if ( previous != null ) {
      LOG.debugf( "Duplicate typedef name [%s] now -> %s", typeDef.getName(), typeDef.getTypeClass() );
    }
  }
View Full Code Here

Examples of org.hibernate.metamodel.binding.TypeDef

      final Map<String, String> parameters = new HashMap<String, String>();
      for ( JaxbParamElement paramElement : typedef.getParam() ) {
        parameters.put( paramElement.getName(), paramElement.getValue() );
      }
      metadata.addTypeDefinition(
          new TypeDef(
              typedef.getName(),
              typedef.getClazz(),
              parameters
          )
      );
View Full Code Here

Examples of org.hibernate.metamodel.binding.TypeDef

      String name,
      String typeClass,
      Map<String, String> prms,
      MetadataImplementor metadata) {
    LOG.debugf( "Binding type definition: %s", name );
    metadata.addTypeDefinition( new TypeDef( name, typeClass, prms ) );
  }
View Full Code Here

Examples of org.jboss.aop.pointcut.Typedef

   }

   @Override
   public Typedef getTypedef(String name)
   {
      Typedef factory = null;
      if (parentFirst)
      {
         factory = parent.getTypedef(name);
         if (factory != null) return factory;
      }
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.