Class DefaultYearMonthBridge

    • Method Detail

      • toIndexedValue

        public final F toIndexedValue​(F value,
                                      ValueBridgeToIndexedValueContext context)
        Description copied from interface: ValueBridge
        Transform the given POJO-extracted value into the value of the indexed field.
        Parameters:
        value - The POJO-extracted value to be transformed.
        context - A context that can be extended to a more useful type, giving access to such things as a Hibernate ORM SessionFactory (if using the Hibernate ORM mapper).
        Returns:
        The value of the indexed field.
      • fromIndexedValue

        public final F fromIndexedValue​(F value,
                                        ValueBridgeFromIndexedValueContext context)
        Description copied from interface: ValueBridge
        Transform the given indexed field value to the corresponding POJO-extracted value.
        Parameters:
        value - The value of the indexed field to be transformed.
        context - A context that can be extended to a more useful type, giving access to such things as a Hibernate ORM SessionFactory (if using the Hibernate ORM mapper).
        Returns:
        The POJO-extracted value.
      • parse

        public final F parse​(String value)
        Description copied from interface: ValueBridge
        Parse an input String to the raw index field value.
        Parameters:
        value - The value to parse.
        Returns:
        The raw index field value.
      • toDocumentIdentifier

        public final String toDocumentIdentifier​(V propertyValue,
                                                 IdentifierBridgeToDocumentIdentifierContext context)
        Description copied from interface: IdentifierBridge
        Transform the given POJO property value to the value of the document identifier.

        Must return a unique value for each value of propertyValue

        Specified by:
        toDocumentIdentifier in interface IdentifierBridge<V>
        Parameters:
        propertyValue - The POJO property value to be transformed.
        context - A context that can be extended to a more useful type, giving access to such things as a Hibernate ORM SessionFactory (if using the Hibernate ORM mapper).
        Returns:
        The value of the document identifier.