Package org.hibernate.search.bridge.builtin

Examples of org.hibernate.search.bridge.builtin.NumericFieldBridge


    SortField.Type sortType = SortField.Type.STRING;
    FieldBridge fieldBridge = propertyHelper.getFieldBridge( targetTypeName, propertyPath.getNodeNamesWithoutAlias() );
    // Determine sort type based on FieldBridgeType. SortField.BYTE and SortField.SHORT are not covered!
    if ( fieldBridge instanceof NumericFieldBridge ) {
      NumericFieldBridge numericBridge = (NumericFieldBridge) fieldBridge;
      switch ( numericBridge ) {
        case INT_FIELD_BRIDGE:
          sortType = SortField.Type.INT;
          break;
        case LONG_FIELD_BRIDGE:
View Full Code Here


    SortField.Type sortType = SortField.Type.STRING;
    FieldBridge fieldBridge = propertyHelper.getFieldBridge( targetTypeName, propertyPath.getNodeNamesWithoutAlias() );
    // Determine sort type based on FieldBridgeType. SortField.BYTE and SortField.SHORT are not covered!
    if ( fieldBridge instanceof NumericFieldBridge ) {
      NumericFieldBridge numericBridge = (NumericFieldBridge) fieldBridge;
      switch ( numericBridge ) {
        case INT_FIELD_BRIDGE:
          sortType = SortField.Type.INT;
          break;
        case LONG_FIELD_BRIDGE:
View Full Code Here

    if ( bridge instanceof TwoWayString2FieldBridgeAdaptor ) {
      return ( (TwoWayString2FieldBridgeAdaptor) bridge ).unwrap().stringToObject( value );
    }
    else if ( bridge instanceof NumericFieldBridge ) {
      NumericFieldBridge numericBridge = (NumericFieldBridge) bridge;
      switch ( numericBridge ) {
        case INT_FIELD_BRIDGE : return Integer.valueOf( value );
        case LONG_FIELD_BRIDGE : return Long.valueOf( value );
        case FLOAT_FIELD_BRIDGE : return Float.valueOf( value );
        case DOUBLE_FIELD_BRIDGE : return Double.valueOf( value );
View Full Code Here

TOP

Related Classes of org.hibernate.search.bridge.builtin.NumericFieldBridge

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.