public abstract class EncodingStringBridge<T> extends Object implements EncodingBridge, StringBridge
EncodingBridges that encode values as Strings using a specific format.| Constructor and Description |
|---|
EncodingStringBridge() |
| Modifier and Type | Method and Description |
|---|---|
NullMarker |
createNullMarker(String indexNullAs) |
NumericFieldSettingsDescriptor.NumericEncodingType |
getEncodingType()
Define the numeric encoding to use for the brdige.
|
protected abstract T |
parseIndexNullAs(String indexNullAs)
Parse the 'indexNullAs' string to an indexable value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitobjectToStringpublic NumericFieldSettingsDescriptor.NumericEncodingType getEncodingType()
EncodingBridgegetEncodingType in interface EncodingBridgeNumericFieldSettingsDescriptor.NumericEncodingType.UNKNOWN if
this bridge does not use numeric encoding.protected abstract T parseIndexNullAs(String indexNullAs) throws IllegalArgumentException
The required format does not have to be the same as the encoded format.
indexNullAs - The string to parse.IllegalArgumentException - If the given string does not match the required format.public NullMarker createNullMarker(String indexNullAs) throws IllegalArgumentException
createNullMarker in interface EncodingBridgeindexNullAs - The value of Field.indexNullAs().IllegalArgumentException - If indexNullAs cannot be encoded in the required format.Copyright © 2006–2017 Hibernate. All rights reserved.