Class DetectedDbEntity

All Implemented Interfaces:
Serializable, EventListener, ConfigurationNode, DbAttributeListener, DbEntityListener, DbRelationshipListener, CayenneMapEntry, XMLSerializable

public class DetectedDbEntity
extends DbEntity
A DbEntity subclass used to hold extra JDBC metadata.
See Also:
Serialized Form
  • Field Details

    • primaryKeyName

      protected String primaryKeyName
    • type

      protected String type
  • Constructor Details

    • DetectedDbEntity

      public DetectedDbEntity​(String name)
  • Method Details

    • setType

      public void setType​(String type)
    • getType

      public String getType()
    • setPrimaryKeyName

      public void setPrimaryKeyName​(String primaryKeyName)
      Sets the optional primary key name of this DbEntity. This is not the same as the name of the DbAttribute, but the name of the unique constraint.
    • getPrimaryKeyName

      public String getPrimaryKeyName()
      Returns the optional primary key name of this DbEntity. This is not the same as the name of the DbAttribute, but the name of the unique constraint.