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.rule.impl;
10:
11: import com.completex.objective.components.persistency.PersistentEntry;
12: import com.completex.objective.components.persistency.rule.FieldConvertor;
13: import com.completex.objective.components.persistency.rule.FieldRule;
14:
15: /**
16: * @author Gennady Krizhevsky
17: */
18: public abstract class AbstractFieldConvertor implements FieldConvertor,
19: FieldRule {
20:
21: public void executeFieldRule(PersistentEntry entry)
22: throws Exception {
23: convert(entry);
24: }
25:
26: protected void setValue(PersistentEntry entry, Object value) {
27: entry.setValueIfDiff(value);
28: }
29: }
|