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;
10:
11: /**
12: * Rule to be performed upon PersistentObject
13: *
14: * @author Gennady Krizhevsky
15: */
16: public interface Rule {
17:
18: /**
19: * Executes rule upon PersistentObject
20: *
21: * @param subject PersistentObject
22: * @return Object rule result
23: * @throws Exception if rule cannot be executed
24: */
25: Object executeRule(PersistentObject subject) throws Exception;
26: }
|