use of org.apache.cayenne.map.event.DbAttributeListener in project cayenne by apache.
the class DbAttribute method setPrimaryKey.
/**
* Updates attribute "primaryKey" property.
*/
public void setPrimaryKey(boolean primaryKey) {
if (this.primaryKey != primaryKey) {
this.primaryKey = primaryKey;
Entity e = this.getEntity();
if (e instanceof DbAttributeListener) {
((DbAttributeListener) e).dbAttributeChanged(new AttributeEvent(this, this, e));
}
}
}
use of org.apache.cayenne.map.event.DbAttributeListener in project cayenne by apache.
the class DbAttribute method setGenerated.
/**
* Updates attribute "generated" property.
*
* @since 1.2
*/
public void setGenerated(boolean generated) {
if (this.generated != generated) {
this.generated = generated;
Entity e = this.getEntity();
if (e instanceof DbAttributeListener) {
((DbAttributeListener) e).dbAttributeChanged(new AttributeEvent(this, this, e));
}
}
}
Aggregations