Package org.hibernate.boot.model
Class IdentifierGeneratorDefinition
- java.lang.Object
-
- org.hibernate.boot.model.IdentifierGeneratorDefinition
-
- All Implemented Interfaces:
Serializable
public class IdentifierGeneratorDefinition extends Object implements Serializable
Models the definition of an identifier generator- See Also:
- Serialized Form
- Implementation Specification:
- Should be immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IdentifierGeneratorDefinition.Builder
-
Constructor Summary
Constructors Constructor Description IdentifierGeneratorDefinition(String name)
IdentifierGeneratorDefinition(String name, String strategy)
IdentifierGeneratorDefinition(String name, String strategy, Map<String,String> parameters)
IdentifierGeneratorDefinition(String name, Map<String,String> parameters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IdentifierGeneratorDefinition
createImplicit(String name, Class<?> idType, String generatorName, GenerationType generationType)
boolean
equals(Object o)
String
getName()
Map<String,String>
getParameters()
String
getStrategy()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
IdentifierGeneratorDefinition
public IdentifierGeneratorDefinition(String name, String strategy, Map<String,String> parameters)
-
IdentifierGeneratorDefinition
public IdentifierGeneratorDefinition(String name, Map<String,String> parameters)
-
IdentifierGeneratorDefinition
public IdentifierGeneratorDefinition(String name)
-
-
Method Detail
-
getStrategy
public String getStrategy()
- Returns:
- identifier generator strategy
-
getName
public String getName()
- Returns:
- generator name
-
getParameters
public Map<String,String> getParameters()
- Returns:
- generator configuration parameters
-
createImplicit
@Internal public static IdentifierGeneratorDefinition createImplicit(String name, Class<?> idType, String generatorName, GenerationType generationType)
-
-