* @exception Exception, a generic exception.
*/
public void save()
throws Exception
{
Criteria criteria = new Criteria(9)
.add(JobEntryPeer.SECOND, getSecond())
.add(JobEntryPeer.MINUTE, getMinute())
.add(JobEntryPeer.HOUR, getHour())
.add(JobEntryPeer.WEEKDAY, getWeekday())
.add(JobEntryPeer.DAY_OF_MONTH, getDay_of_month())
.add(JobEntryPeer.TASK, getTask())
.add(JobEntryPeer.EMAIL, getEmail())
.add(JobEntryPeer.PROPERTY, getProperty());
long key = ((NumberKey)getPrimaryKey()).getBigDecimal().longValue();
if ( isModified() && key > 0)
{
// This is an update.
criteria.add(JobEntryPeer.OID, getPrimaryKey());
JobEntryPeer.doUpdate(criteria);
setModified(false);
}
else
{