primaryKey
protected boolean primaryKey
Defines whether the attribute is a part of the table primary key.
Serializable, ConfigurationNode, CayenneMapEntry, XMLSerializableprotected intprotected booleanprotected booleanprotected intprotected booleanprotected intprotected intDbAttribute(String name) DbAttribute(String name,
int type,
DbEntity entity) <T> TacceptVisitor(ConfigurationNodeVisitor<T> visitor) voidencodeAsXML(XMLEncoder encoder,
ConfigurationNodeVisitor delegate) getAliasedName(String alias) intintintgetScale()intgetType()booleantrue if the DB column represented by this attribute
is a foreign key, referencing another table.booleanbooleanbooleanvoidsetAttributePrecision(int attributePrecision) voidsetGenerated(boolean generated) voidsetMandatory(boolean mandatory) voidsetMaxLength(int maxLength) voidsetPrimaryKey(boolean primaryKey) voidsetScale(int scale) voidsetType(int type) toString()AttributegetEntity in class Attribute<DbEntity, DbAttribute, DbRelationship>acceptVisitor in interface ConfigurationNodeencodeAsXML in interface XMLSerializableencodeAsXML in class Attribute<DbEntity, DbAttribute, DbRelationship>true if the DB column represented by this attribute
is a foreign key, referencing another table.toString in class Attribute<DbEntity, DbAttribute, DbRelationship>