Package com.luciad.format.database
Class TLcdPrimaryKeyAnnotation
java.lang.Object
com.luciad.format.database.TLcdPrimaryKeyAnnotation
- All Implemented Interfaces:
ILcdAnnotation
ILcdAnnotation that is put on a TLcdDataType to define which property
should be used as primary key.-
Constructor Summary
ConstructorsConstructorDescriptionTLcdPrimaryKeyAnnotation(TLcdDataProperty aProperty) TLcdPrimaryKeyAnnotation(TLcdDataProperty aProperty, boolean aIsAutoGenerated) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the property that is to be used as primary key.booleanReturnstrueif the primary key is auto generated andfalseif the key is not auto generated, or it is unknown if the key is autogenerated or not.
-
Constructor Details
-
TLcdPrimaryKeyAnnotation
-
TLcdPrimaryKeyAnnotation
Constructor.- Parameters:
aProperty- The property which is used as a primary key.aIsAutoGenerated- If the primary key is auto generated or not.- Since:
- 2025.0
-
-
Method Details
-
getProperty
Returns the property that is to be used as primary key.- Returns:
- the primary key property for the type annotated with this annotation
-
isAutoGenerated
public boolean isAutoGenerated()Returnstrueif the primary key is auto generated andfalseif the key is not auto generated, or it is unknown if the key is autogenerated or not.- Returns:
- If the primary key is auto generated or not.
- Since:
- 2025.0
-