package org.apache.cayenne.testdo.relationships_activity.auto;
import java.sql.Date;
import java.util.Map;
import org.apache.cayenne.CayenneDataObject;
import org.apache.cayenne.exp.Property;
import org.apache.cayenne.testdo.relationships_activity.ActivityResult;
/**
* Class _Activity was generated by Cayenne.
* It is probably a good idea to avoid changing this class manually,
* since it may be overwritten next time code is regenerated.
* If you need to make any customizations, please use subclass.
*/
public abstract class _Activity extends CayenneDataObject {
private static final long serialVersionUID = 1L;
public static final String ACTIVITY_ID_PK_COLUMN = "ACTIVITY_ID";
public static final Property<Date> APPOINTMENT_DATE = Property.create("appointmentDate", Date.class);
public static final Property<Integer> APPOINTMENT_NO = Property.create("appointmentNo", Integer.class);
public static final Property<Map<String, ActivityResult>> RESULTS = Property.create("results", Map.class);
public void setAppointmentDate(Date appointmentDate) {
writeProperty("appointmentDate", appointmentDate);
}
public Date getAppointmentDate() {
return (Date)readProperty("appointmentDate");
}
public void setAppointmentNo(int appointmentNo) {
writeProperty("appointmentNo", appointmentNo);
}
public int getAppointmentNo() {
Object value = readProperty("appointmentNo");
return (value != null) ? (Integer) value : 0;
}
public void addToResults(ActivityResult obj) {
addToManyTarget("results", obj, true);
}
public void removeFromResults(ActivityResult obj) {
removeToManyTarget("results", obj, true);
}
@SuppressWarnings("unchecked")
public Map<String, ActivityResult> getResults() {
return (Map<String, ActivityResult>)readProperty("results");
}
}