org.hibernate.search.query.fieldcache
Enum FieldCacheLoadingType

java.lang.Object
  extended by java.lang.Enum<FieldCacheLoadingType>
      extended by 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.

Enum Constant Summary
DOUBLE
           
FLOAT
           
INT
           
LONG
           
STRING
           
 
Method Summary
abstract  FieldLoadingStrategy createLoadingStrategy(String fieldName)
           
static FieldLoadingStrategy getLoadingStrategy(String fieldName, Class<?> type)
           
static FieldCacheLoadingType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FieldCacheLoadingType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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