Interface IdMetadata

All Known Subinterfaces:
CosIdAccessor
All Known Implementing Classes:
AbstractIdMetadata, CosIdAccessor.NotFound, DefaultCosIdAccessor

@Immutable public interface IdMetadata
Metadata container for ID field information.

Provides access to ID definition, generator, and field metadata for objects annotated with @CosId.

  • Method Details

    • getIdDefinition

      IdDefinition getIdDefinition()
      Gets the ID definition.
      Returns:
      the ID definition
    • getGeneratorName

      default String getGeneratorName()
      Gets the generator name from the ID definition.
      Returns:
      the generator name
    • getIdGenerator

      IdGenerator getIdGenerator()
      Gets the ID generator.
      Returns:
      the ID generator
    • getIdField

      default Field getIdField()
      Gets the ID field from the definition.
      Returns:
      the ID field
    • getIdDeclaringClass

      default Class<?> getIdDeclaringClass()
      Gets the declaring class of the ID field.
      Returns:
      the declaring class
    • getIdType

      default Class<?> getIdType()
      Gets the type of the ID field.
      Returns:
      the ID type