Class TLcdPrimaryKeyAnnotation

java.lang.Object
com.luciad.format.database.TLcdPrimaryKeyAnnotation
All Implemented Interfaces:
ILcdAnnotation

public class TLcdPrimaryKeyAnnotation extends Object implements ILcdAnnotation
ILcdAnnotation that is put on a TLcdDataType to define which property should be used as primary key.
  • Constructor Details

    • TLcdPrimaryKeyAnnotation

      public TLcdPrimaryKeyAnnotation(TLcdDataProperty aProperty)
    • TLcdPrimaryKeyAnnotation

      public TLcdPrimaryKeyAnnotation(TLcdDataProperty aProperty, boolean aIsAutoGenerated)
      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

      public TLcdDataProperty 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()
      Returns true if the primary key is auto generated and false if 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