public class EntityMetadata
extends java.lang.Object
implements java.io.Serializable
Entity annotation.
EntityMetadata objects are thread-safe. Multiple threads may
safely call the methods of a shared EntityMetadata object.
| Constructor and Description |
|---|
EntityMetadata(java.lang.String className,
PrimaryKeyMetadata primaryKey,
java.util.Map<java.lang.String,SecondaryKeyMetadata> secondaryKeys)
Used by an
EntityModel to construct entity metadata. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getClassName()
Returns the name of the entity class.
|
PrimaryKeyMetadata |
getPrimaryKey()
Returns the primary key metadata for this entity.
|
java.util.Map<java.lang.String,SecondaryKeyMetadata> |
getSecondaryKeys()
Returns an unmodifiable map of key name to secondary key metadata, or
an empty map if no secondary keys are defined for this entity.
|
int |
hashCode() |
public EntityMetadata(java.lang.String className,
PrimaryKeyMetadata primaryKey,
java.util.Map<java.lang.String,SecondaryKeyMetadata> secondaryKeys)
EntityModel to construct entity metadata.className - the class name.primaryKey - the primary key metadata.secondaryKeys - the secondary key metadata.public java.lang.String getClassName()
public PrimaryKeyMetadata getPrimaryKey()
PrimaryKey annotation.public java.util.Map<java.lang.String,SecondaryKeyMetadata> getSecondaryKeys()
SecondaryKey annotations.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright (c) 1996, 2016 Oracle and/or its affiliates. All rights reserved.