Package org.hibernate.search.engine.impl

Examples of org.hibernate.search.engine.impl.FieldMetadata


      //If the indexed values are derived from a Transient field, we can't rely on dirtyness of properties.
      //Only applies on JPA mapped entities.
      forceStateInspectionOptimizationsDisabled();
    }

    FieldMetadata fieldMetadata = new FieldMetadata( prefix, member, fieldAnnotation, numericFieldAnnotation, null, context, reflectionManager );
    fieldMetadata.appendToPropertiesMetadata(propertiesMetadata);
    addToScopedAnalyzer( fieldMetadata.getFieldName(), fieldMetadata.getAnalyzer(), fieldMetadata.getIndex() );
   
    if ( member.isCollection() ) {
      fieldCollectionRoles.add( StringHelper.qualify( classHostingMember.getName(), member.getName() ) );
    }
  }
View Full Code Here


    if ( spatialNames.contains( spatialAnnotation.name() )) {
      throw log.cannotHaveTwoSpatialsWithDefaultOrSameName( classHostingMember.getName() );
    }
    spatialNames.add( spatialAnnotation.name() );

    FieldMetadata fieldMetadata = new FieldMetadata( prefix, member, null, null,
        spatialAnnotation, context, reflectionManager );
    fieldMetadata.appendToPropertiesMetadata(propertiesMetadata);
    if ( member.isCollection() ) {
      fieldCollectionRoles.add( StringHelper.qualify( classHostingMember.getName(), member.getName() ) );
    }
  }
View Full Code Here

                   PropertiesMetadata propertiesMetadata,
                   String prefix,
                   org.hibernate.search.annotations.Field fieldAnnotation,
                   NumericField numericFieldAnnotation,
                   ConfigContext context) {
    FieldMetadata fieldMetadata = new FieldMetadataprefix, member, fieldAnnotation, numericFieldAnnotation, context, reflectionManager );
    fieldMetadata.appendToPropertiesMetadata(propertiesMetadata);
    addToScopedAnalyzer( fieldMetadata.getFieldName(), fieldMetadata.getAnalyzer(), fieldMetadata.getIndex() );
   
    if ( member.isCollection() ) {
      fieldCollectionRoles.add( StringHelper.qualify( classHostingMember.getName(), member.getName() ) );
    }
  }
View Full Code Here

                   PropertiesMetadata propertiesMetadata,
                   String prefix,
                   org.hibernate.search.annotations.Field fieldAnnotation,
                   NumericField numericFieldAnnotation,
                   ConfigContext context) {
    FieldMetadata fieldMetadata = new FieldMetadataprefix, member, fieldAnnotation, numericFieldAnnotation, context, reflectionManager );
    fieldMetadata.appendToPropertiesMetadata(propertiesMetadata);
    addToScopedAnalyzer( fieldMetadata.getFieldName(), fieldMetadata.getAnalyzer(), fieldMetadata.getIndex() );
  }
View Full Code Here

      //If the indexed values are derived from a Transient field, we can't rely on dirtyness of properties.
      //Only applies on JPA mapped entities.
      forceStateInspectionOptimizationsDisabled();
    }

    FieldMetadata fieldMetadata = new FieldMetadata( prefix, member, fieldAnnotation, numericFieldAnnotation, null, context, reflectionManager );
    fieldMetadata.appendToPropertiesMetadata(propertiesMetadata);
    addToScopedAnalyzer( fieldMetadata.getFieldName(), fieldMetadata.getAnalyzer(), fieldMetadata.getIndex() );
   
    if ( member.isCollection() ) {
      fieldCollectionRoles.add( StringHelper.qualify( classHostingMember.getName(), member.getName() ) );
    }
  }
View Full Code Here

    if ( spatialNames.contains( spatialAnnotation.name() )) {
      throw log.cannotHaveTwoSpatialsWithDefaultOrSameName( classHostingMember.getName() );
    }
    spatialNames.add( spatialAnnotation.name() );

    FieldMetadata fieldMetadata = new FieldMetadata( prefix, member, null, null,
        spatialAnnotation, context, reflectionManager );
    fieldMetadata.appendToPropertiesMetadata(propertiesMetadata);
    if ( member.isCollection() ) {
      fieldCollectionRoles.add( StringHelper.qualify( classHostingMember.getName(), member.getName() ) );
    }
  }
View Full Code Here

      //If the indexed values are derived from a Transient field, we can't rely on dirtyness of properties.
      //Only applies on JPA mapped entities.
      forceStateInspectionOptimizationsDisabled();
    }

    FieldMetadata fieldMetadata = new FieldMetadata( prefix, member, fieldAnnotation, numericFieldAnnotation, null, context, reflectionManager );
    fieldMetadata.appendToPropertiesMetadata(propertiesMetadata);
    addToScopedAnalyzer( fieldMetadata.getFieldName(), fieldMetadata.getAnalyzer(), fieldMetadata.getIndex() );
   
    if ( member.isCollection() ) {
      fieldCollectionRoles.add( StringHelper.qualify( classHostingMember.getName(), member.getName() ) );
    }
  }
View Full Code Here

                   XProperty member,
                   PropertiesMetadata propertiesMetadata,
                   String prefix,
                   Spatial fieldAnnotation,
                   ConfigContext context) {
    FieldMetadata fieldMetadata = new FieldMetadata( prefix, member, null, null, fieldAnnotation, context, reflectionManager );
    fieldMetadata.appendToPropertiesMetadata(propertiesMetadata);
    if ( member.isCollection() ) {
      fieldCollectionRoles.add( StringHelper.qualify( classHostingMember.getName(), member.getName() ) );
    }
  }
View Full Code Here

                   PropertiesMetadata propertiesMetadata,
                   String prefix,
                   org.hibernate.search.annotations.Field fieldAnnotation,
                   NumericField numericFieldAnnotation,
                   ConfigContext context) {
    FieldMetadata fieldMetadata = new FieldMetadataprefix, member, fieldAnnotation, numericFieldAnnotation, context, reflectionManager );
    fieldMetadata.appendToPropertiesMetadata(propertiesMetadata);
    addToScopedAnalyzer( fieldMetadata.getFieldName(), fieldMetadata.getAnalyzer(), fieldMetadata.getIndex() );
   
    if ( member.isCollection() ) {
      fieldCollectionRoles.add( StringHelper.qualify( classHostingMember.getName(), member.getName() ) );
    }
  }
View Full Code Here

      //If the indexed values are derived from a Transient field, we can't rely on dirtyness of properties.
      //Only applies on JPA mapped entities.
      forceStateInspectionOptimizationsDisabled();
    }

    FieldMetadata fieldMetadata = new FieldMetadata( prefix, member, fieldAnnotation, numericFieldAnnotation, null, context, reflectionManager );
    fieldMetadata.appendToPropertiesMetadata(propertiesMetadata);
    addToScopedAnalyzer( fieldMetadata.getFieldName(), fieldMetadata.getAnalyzer(), fieldMetadata.getIndex() );
   
    if ( member.isCollection() ) {
      fieldCollectionRoles.add( StringHelper.qualify( classHostingMember.getName(), member.getName() ) );
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.engine.impl.FieldMetadata

Copyright © 2018 www.massapicom. 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.