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: * Persistent Object Factory interface.
13: * Created instances have to be either compound or not
14: * and may not be mixed. Used when retrieving
15: * one row from ResultSet: new instance of persistent object gets
16: * created using PersistentObjectFactory.
17: *
18: * @author Gennady Krizhevsky
19: */
20: public interface PersistentObjectFactory extends Cloneable {
21: /**
22: *
23: * @return AbstractPersistentObject instance
24: */
25: AbstractPersistentObject newPersistentInstance();
26:
27: /**
28: * @see com.completex.objective.components.persistency.AbstractPersistentObject#compound()
29: * @return true if new instances it created by PersistentObjectFactory
30: * are compound
31: */
32: boolean compound();
33:
34: }
|