public class EntityMetadata extends Object implements Serializable
Entity
annotation.
EntityMetadata
objects are thread-safe. Multiple threads may
safely call the methods of a shared EntityMetadata
object.
Constructor and Description |
---|
EntityMetadata(String className,
PrimaryKeyMetadata primaryKey,
Map<String,SecondaryKeyMetadata> secondaryKeys)
Used by an
EntityModel to construct entity metadata. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getClassName()
Returns the name of the entity class.
|
PrimaryKeyMetadata |
getPrimaryKey()
Returns the primary key metadata for this entity.
|
Map<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(String className, PrimaryKeyMetadata primaryKey, Map<String,SecondaryKeyMetadata> secondaryKeys)
EntityModel
to construct entity metadata.public String getClassName()
public PrimaryKeyMetadata getPrimaryKey()
PrimaryKey
annotation.public Map<String,SecondaryKeyMetadata> getSecondaryKeys()
SecondaryKey
annotations.Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.