Package com.sleepycat.persist.model
Class PrimaryKeyMetadata
java.lang.Object
com.sleepycat.persist.model.FieldMetadata
com.sleepycat.persist.model.PrimaryKeyMetadata
- All Implemented Interfaces:
Serializable
The metadata for a primary key field. A primary key may be specified with
the
PrimaryKey annotation.
PrimaryKeyMetadata objects are thread-safe. Multiple threads may
safely call the methods of a shared PrimaryKeyMetadata object.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPrimaryKeyMetadata(String name, String className, String declaringClassName, String sequenceName) Used by anEntityModelto construct primary key metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the name of the sequence for assigning key values.inthashCode()Methods inherited from class com.sleepycat.persist.model.FieldMetadata
getClassName, getDeclaringClassName, getName, toString
-
Constructor Details
-
Method Details
-
getSequenceName
Returns the name of the sequence for assigning key values. This may be specified using thePrimaryKey.sequence()annotation. -
equals
- Overrides:
equalsin classFieldMetadata
-
hashCode
public int hashCode()- Overrides:
hashCodein classFieldMetadata
-