1 /*
2 * PROJECT : DAR Runtime and Tools
3 * COPYRIGHT : Copyright (C) 1999-2004 tim.stephenson@enableit.org
4 * LICENSE : GNU LESSER GENERAL PUBLIC LICENSE
5 * Version 2.1, February 1999
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21 package org.enableit.db;
22
23 /***
24 * Determines whether a given record is deemed to exist in a datastore
25 * already according to rules defined by the implementation.
26 *
27 * Potential implementations consider records duplicate if the key exists,
28 * if every field matches an existing record, or somewhere in between.
29 */
30 interface DuplicateResolver {
31 /*
32 * Properties
33 */
34
35 /***
36 * CVS info about this class and its current version
37 */
38 static final String about = "$Id: DuplicateResolver.java,v 1.4 2004/03/19 19:11:41 tim Exp $";
39
40 /*
41 * Methods
42 */
43
44 /***
45 * Test whether the bean is already represented in the datastore
46 * according to the matching rules of the implementation.
47 */
48 boolean exists(Object bean);
49 }
This page was automatically generated by Maven