01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.persistency.key.impl;
10:
11: import com.completex.objective.components.persistency.OdalPersistencyException;
12: import com.completex.objective.components.persistency.Persistency;
13: import com.completex.objective.components.persistency.PersistentEntry;
14: import com.completex.objective.components.persistency.transact.Transaction;
15:
16: /**
17: * @author Gennady Krizhevsky
18: */
19: public class LastUpdatedDateGenerator extends CreatedDateGenerator {
20:
21: public void updateValue(Transaction transaction,
22: Persistency persistency, PersistentEntry persistentEntry,
23: boolean complexDirty) throws OdalPersistencyException {
24: if (persistentEntry.getRecord().isDirty()) {
25: date(persistentEntry);
26: }
27: }
28: }
|