Package me.ahoo.cosid.accessor
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 Summary
Modifier and TypeMethodDescriptiondefault StringGets the generator name from the ID definition.default Class<?>Gets the declaring class of the ID field.Gets the ID definition.default FieldGets the ID field from the definition.Gets the ID generator.default Class<?>Gets the type of the ID field.
-
Method Details
-
getIdDefinition
IdDefinition getIdDefinition()Gets the ID definition.- Returns:
- the ID definition
-
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
Gets the ID field from the definition.- Returns:
- the ID field
-
getIdDeclaringClass
Gets the declaring class of the ID field.- Returns:
- the declaring class
-
getIdType
Gets the type of the ID field.- Returns:
- the ID type
-