Berkeley DB Java Edition version 3.2.76

## com.sleepycat.persist.model
Class FieldMetadata

    java.lang.Object
      com.sleepycat.persist.model.FieldMetadata

All Implemented Interfaces:
  Serializable

Direct Known Subclasses:
  PrimaryKeyMetadata, SecondaryKeyMetadata

    public class FieldMetadata

extends Object
implements Serializable

The metadata for a key field. This class defines common properties for singular and composite key fields.

`FieldMetadata` objects are thread-safe. Multiple threads may safely call the methods of a shared `FieldMetadata` object.

Author:
  Mark Hayes
See Also:
  Serialized Form

Constructor Summary
`FieldMetadata(String name, String className, String declaringClassName)` Used by an `EntityModel` to construct field metadata.

Method Summary
`boolean` `equals(Object other)`
`String` `getClassName()` Returns the class name of the field type.
`String` `getDeclaringClassName()` Returns the name of the class where the field is declared.
`String` `getName()` Returns the field name.
`int` `hashCode()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FieldMetadata

    public FieldMetadata(String name,
                         String className,
                         String declaringClassName)

  Used by an `EntityModel` to construct field metadata.

Method Detail

### getName

    public String getName()

  Returns the field name.

### getClassName

    public String getClassName()

  Returns the class name of the field type.

### getDeclaringClassName

    public String getDeclaringClassName()

  Returns the name of the class where the field is declared.

### equals

    public boolean equals(Object other)

  Overrides:
    `equals` in class `Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`

Berkeley DB Java Edition version 3.2.76

Copyright 1996,2008 Oracle. All rights reserved.