public class PrimaryKeyMetadata extends FieldMetadata
PrimaryKey annotation.
PrimaryKeyMetadata objects are thread-safe. Multiple threads may
safely call the methods of a shared PrimaryKeyMetadata object.
| Constructor and Description |
|---|
PrimaryKeyMetadata(String name,
String className,
String declaringClassName,
String sequenceName)
Used by an
EntityModel to construct primary key metadata. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getSequenceName()
Returns the name of the sequence for assigning key values.
|
int |
hashCode() |
getClassName, getDeclaringClassName, getName, toStringpublic PrimaryKeyMetadata(String name, String className, String declaringClassName, String sequenceName)
EntityModel to construct primary key metadata.name - the field name.className - the class name.declaringClassName - the name of the class where the field is
declared.sequenceName - the sequence name.public String getSequenceName()
PrimaryKey.sequence() annotation.public boolean equals(Object other)
equals in class FieldMetadatapublic int hashCode()
hashCode in class FieldMetadataCopyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.