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;
10:
11: import java.io.Serializable;
12:
13: /**
14: * To be implemented by classes that can be used as serializable keys
15: *
16: * @author Gennady Krizhevsky
17: */
18: public interface SimpleNaturalKey extends Serializable {
19:
20: static final long serialVersionUID = 1L;
21:
22: /**
23: * Null key
24: */
25: public static final NullKey NULL_KEY = new NullKey();
26:
27: /**
28: * Null key implementation
29: */
30: static class NullKey implements SimpleNaturalKey {
31: }
32: }
|