KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > core > persist > db > DatabaseOperations


1 /*
2  * Copyright (c) 2006 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: DatabaseOperations.java,v 1.3 2007/01/07 06:14:18 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
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
22 package org.opensubsystems.core.persist.db;
23
24 /**
25  * Interface to define abstraction for database operations.
26  *
27  * @version $Id: DatabaseOperations.java,v 1.3 2007/01/07 06:14:18 bastafidli Exp $
28  * @author Julian Legeny
29  * @code.reviewer Miro Halas
30  * @code.reviewed 1.1 2006/07/21 22:47:19 jlegeny
31  */

32 public interface DatabaseOperations
33 {
34    // Constants ////////////////////////////////////////////////////////////////
35

36    /**
37     * Database insert.
38     */

39    int DBOP_INSERT = 1;
40
41    /**
42     * Database update.
43     */

44    int DBOP_UPDATE = 2;
45
46    /**
47     * Database delete.
48     */

49    int DBOP_DELETE = 3;
50
51    /**
52     * Database read.
53     */

54    int DBOP_SELECT = 4;
55 }
56
Popular Tags