Top Description Fields Constructors Methods
org.hibernate

public final Enum EntityMode

extends Enum<EntityMode>
Class Inheritance
Imports
java.util.Locale

Defines the representation modes available for entities.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String
public static final EntityMode
MAP

The dynamic-map entity mode describes an entity model defined using java.util.Map references.

public static final EntityMode
POJO

The pojo entity mode describes an entity model made up of entity classes (loosely) following the java bean convention.

Constructor Summary

AccessConstructor and Description
private
EntityMode(String externalName)

Method Summary

Modifier and TypeMethod and Description
public String
public static EntityMode

Returns:

The appropriate entity mode; null for incoming entityMode param is treated by returning POJO.
parse
(String
The entity mode name to evaluate
entityMode
)

Legacy-style entity-mode name parsing.

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.
public static EntityMode
public static EntityMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

externalNameback to summary
private final String externalName
MAPback to summary
public static final EntityMode MAP

The dynamic-map entity mode describes an entity model defined using java.util.Map references.

POJOback to summary
public static final EntityMode POJO

The pojo entity mode describes an entity model made up of entity classes (loosely) following the java bean convention.

Constructor Detail

EntityModeback to summary
private EntityMode(String externalName)

Method Detail

getExternalNameback to summary
public String getExternalName()
parseback to summary
public static EntityMode parse(String entityMode)

Legacy-style entity-mode name parsing. Case insensitive

Parameters
entityMode:String

The entity mode name to evaluate

Returns:EntityMode

The appropriate entity mode; null for incoming entityMode param is treated by returning POJO.

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Returns:String

the name of this enum constant

Annotations
@Override
valueOfback to summary
public static EntityMode valueOf(String name)
valuesback to summary
public static EntityMode[] values()