Package me.ahoo.cosid.accessor
Class AbstractIdMetadata
java.lang.Object
me.ahoo.cosid.accessor.AbstractIdMetadata
- All Implemented Interfaces:
IdMetadata
- Direct Known Subclasses:
DefaultCosIdAccessor
Abstract base implementation of
IdMetadata.
Provides common functionality for ID metadata implementations, including lazy generator initialization.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractIdMetadata(IdDefinition idDefinition) Creates an instance with the given ID definition. -
Method Summary
Modifier and TypeMethodDescriptionGets the ID definition.Gets the ID generator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.ahoo.cosid.accessor.IdMetadata
getGeneratorName, getIdDeclaringClass, getIdField, getIdType
-
Constructor Details
-
AbstractIdMetadata
Creates an instance with the given ID definition.- Parameters:
idDefinition- the ID definition
-
-
Method Details
-
getIdDefinition
Description copied from interface:IdMetadataGets the ID definition.- Specified by:
getIdDefinitionin interfaceIdMetadata- Returns:
- the ID definition
-
getIdGenerator
Description copied from interface:IdMetadataGets the ID generator.- Specified by:
getIdGeneratorin interfaceIdMetadata- Returns:
- the ID generator
-