java.io.Serializable
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 | Description |
---|---|
PrimaryKeyMetadata(java.lang.String name,
java.lang.String className,
java.lang.String declaringClassName,
java.lang.String sequenceName) |
Used by an
EntityModel to construct primary key metadata. |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object other) |
|
java.lang.String |
getSequenceName() |
Returns the name of the sequence for assigning key values.
|
int |
hashCode() |
getClassName, getDeclaringClassName, getName, toString
public PrimaryKeyMetadata(java.lang.String name, java.lang.String className, java.lang.String declaringClassName, java.lang.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 java.lang.String getSequenceName()
PrimaryKey.sequence()
annotation.public boolean equals(java.lang.Object other)
equals
in class FieldMetadata
public int hashCode()
hashCode
in class FieldMetadata
Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.