Examples of FieldBridge


Examples of org.hibernate.search.bridge.FieldBridge

    if ( EmbeddedTypeMetadata.Container.OBJECT == container ) {
      return new NullEncodingFieldBridge( NULL_EMBEDDED_STRING_BRIDGE, indexNullAs );
    }
    else {
      NumericField numericField = member.getAnnotation( NumericField.class );
      FieldBridge fieldBridge = BridgeFactory.guessType( null, numericField, member, reflectionManager );
      if ( fieldBridge instanceof StringBridge ) {
        fieldBridge = new NullEncodingFieldBridge( (StringBridge) fieldBridge, indexNullAs );
      }
      return fieldBridge;
    }
View Full Code Here

Examples of org.jboss.as.cmp.bridge.FieldBridge

        System.arraycopy(cmrFields, 0, fields, position, cmrFields.length);
        return Arrays.asList(fields);
    }

    public FieldBridge getFieldByName(String name) {
        FieldBridge field = null;
        for (int i = 0; i < primaryKeyFields.length; ++i) {
            JDBCCMPFieldBridge primaryKeyField = primaryKeyFields[i];
            if (primaryKeyField.getFieldName().equals(name)) {
                field = primaryKeyField;
                break;
View Full Code Here

Examples of org.jboss.ejb.plugins.cmp.bridge.FieldBridge

   }

   private void addPath(String nav) {
      String fieldName = nav.substring(0, nav.length()-1);
      if(fieldList.size() > 0) {
         FieldBridge field = getCurrentSchema().getFieldByName(fieldName);
         if(field == null) {
            throwUnknownPath("Unknown cmr field in path", fieldName);
         }
         if(!(field instanceof CMRFieldBridge)) {
            throwUnknownPath("In path field is not a cmr field", fieldName);
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.