KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > acl > db > PropertyDBInterface


1 package de.webman.acl.db;
2
3 import de.webman.acl.db.queries.*;
4
5 /**
6  * $Header: /cvsroot/webman-cms/source/webman/de/webman/acl/db/PropertyDBInterface.java,v 1.1 2001/08/20 08:25:08 mischa Exp $
7  *
8  * Database interface for properties.
9  *
10  * @version 0.10
11  * @since 0.10
12  * @author © 2000 Team-Konzept
13  */

14 public class PropertyDBInterface
15     extends ObjectDBInterface
16 {
17
18     // Constants
19

20     /**
21      * The table name.
22      */

23     public static final String JavaDoc TABLE_NAME = "WM_PROPERTIES";
24
25     /**
26      * The primary key name.
27      */

28     public static final String JavaDoc PRIMARY_KEY_NAME = "WM_PROPERTIES_ID";
29
30     /**
31      * Selection class.
32      */

33     public static final Class JavaDoc WM_PROPERTY_SELECT_ALL = PropertySelectAll.class;
34
35     /**
36      * Selection class.
37      */

38     public static final Class JavaDoc WM_PROPERTY_SELECT_BY_LOGIN = PropertySelectByLogin.class;
39
40     /**
41      * Singleton instance.
42      */

43     private static final PropertyDBInterface INSTANCE = new PropertyDBInterface();
44
45
46     // Constructors
47

48     /**
49      * Inhibits instantiation from outside.
50      */

51     private PropertyDBInterface ()
52     {
53         super(PropertyInsert.class,
54               PropertyUpdate.class,
55               PropertySelect.class,
56               PropertyDelete.class,
57               new Class JavaDoc[1],
58               new Class JavaDoc[1],
59               null);
60     }
61
62
63     // Instance
64

65     /**
66      * Returns the singleton instance of the database interface.
67      *
68      * @return the singleton instance of the database interface.
69      */

70     public static final PropertyDBInterface getInstance ()
71     {
72         return INSTANCE;
73     }
74
75
76     // Method implementations
77

78     /**
79      * Returns the name of the database table.
80      *
81      * @return the name of the database table.
82      */

83     public final String JavaDoc getTableName ()
84     {
85         return TABLE_NAME;
86     }
87
88     /**
89      * Returns the name of the primary key.
90      *
91      * @return the name of the primary key.
92      */

93     public final String JavaDoc getPrimaryKeyName ()
94     {
95         return PRIMARY_KEY_NAME;
96     }
97
98     /**
99      * Returns the name of the dependent key.
100      *
101      * @return the name of the dependent key.
102      */

103     public final String JavaDoc getDependentKeyName ()
104     {
105         return null;
106     }
107
108     /**
109      * Returns the query for selection of all objects.
110      *
111      * @return the query for selection of all objects.
112      */

113     public final Class JavaDoc getSelectAllQuery ()
114     {
115         return WM_PROPERTY_SELECT_ALL;
116     }
117
118     /**
119      * Returns the query for selection of all dependent objects.
120      *
121      * @return the query for selection of all dependent objects.
122      */

123     public final Class JavaDoc getSelectDependentQuery ()
124     {
125         return null;
126     }
127
128     /**
129      * Returns the query for insertion of all dependent objects.
130      *
131      * @return the query for insertion of all dependent objects.
132      */

133     public final Class JavaDoc getInsertDependentQuery ()
134     {
135         return null;
136     }
137
138 }
139
Popular Tags