org.hibernate.search.query.fieldcache
Enum FieldCacheLoadingType
java.lang.Object
java.lang.Enum<FieldCacheLoadingType>
org.hibernate.search.query.fieldcache.FieldCacheLoadingType
- All Implemented Interfaces:
- Serializable, Comparable<FieldCacheLoadingType>
public enum FieldCacheLoadingType
- extends Enum<FieldCacheLoadingType>
Just an indirection to different constructors, pointing to the proper
FieldCache extractor per type.
- Author:
- Sanne Grinovero (C) 2011 Red Hat Inc.
STRING
public static final FieldCacheLoadingType STRING
INT
public static final FieldCacheLoadingType INT
LONG
public static final FieldCacheLoadingType LONG
DOUBLE
public static final FieldCacheLoadingType DOUBLE
FLOAT
public static final FieldCacheLoadingType FLOAT
values
public static FieldCacheLoadingType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (FieldCacheLoadingType c : FieldCacheLoadingType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FieldCacheLoadingType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
createLoadingStrategy
public abstract FieldLoadingStrategy createLoadingStrategy(String fieldName)
getLoadingStrategy
public static FieldLoadingStrategy getLoadingStrategy(String fieldName,
Class<?> type)
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved