001: package de.webman.acl.db;
002:
003: import de.webman.acl.db.queries.*;
004:
005: /**
006: * $Header: /cvsroot/webman-cms/source/webman/de/webman/acl/db/PropertyDBInterface.java,v 1.1 2001/08/20 08:25:08 mischa Exp $
007: *
008: * Database interface for properties.
009: *
010: * @version 0.10
011: * @since 0.10
012: * @author © 2000 Team-Konzept
013: */
014: public class PropertyDBInterface extends ObjectDBInterface {
015:
016: // Constants
017:
018: /**
019: * The table name.
020: */
021: public static final String TABLE_NAME = "WM_PROPERTIES";
022:
023: /**
024: * The primary key name.
025: */
026: public static final String PRIMARY_KEY_NAME = "WM_PROPERTIES_ID";
027:
028: /**
029: * Selection class.
030: */
031: public static final Class WM_PROPERTY_SELECT_ALL = PropertySelectAll.class;
032:
033: /**
034: * Selection class.
035: */
036: public static final Class WM_PROPERTY_SELECT_BY_LOGIN = PropertySelectByLogin.class;
037:
038: /**
039: * Singleton instance.
040: */
041: private static final PropertyDBInterface INSTANCE = new PropertyDBInterface();
042:
043: // Constructors
044:
045: /**
046: * Inhibits instantiation from outside.
047: */
048: private PropertyDBInterface() {
049: super (PropertyInsert.class, PropertyUpdate.class,
050: PropertySelect.class, PropertyDelete.class,
051: new Class[1], new Class[1], null);
052: }
053:
054: // Instance
055:
056: /**
057: * Returns the singleton instance of the database interface.
058: *
059: * @return the singleton instance of the database interface.
060: */
061: public static final PropertyDBInterface getInstance() {
062: return INSTANCE;
063: }
064:
065: // Method implementations
066:
067: /**
068: * Returns the name of the database table.
069: *
070: * @return the name of the database table.
071: */
072: public final String getTableName() {
073: return TABLE_NAME;
074: }
075:
076: /**
077: * Returns the name of the primary key.
078: *
079: * @return the name of the primary key.
080: */
081: public final String getPrimaryKeyName() {
082: return PRIMARY_KEY_NAME;
083: }
084:
085: /**
086: * Returns the name of the dependent key.
087: *
088: * @return the name of the dependent key.
089: */
090: public final String getDependentKeyName() {
091: return null;
092: }
093:
094: /**
095: * Returns the query for selection of all objects.
096: *
097: * @return the query for selection of all objects.
098: */
099: public final Class getSelectAllQuery() {
100: return WM_PROPERTY_SELECT_ALL;
101: }
102:
103: /**
104: * Returns the query for selection of all dependent objects.
105: *
106: * @return the query for selection of all dependent objects.
107: */
108: public final Class getSelectDependentQuery() {
109: return null;
110: }
111:
112: /**
113: * Returns the query for insertion of all dependent objects.
114: *
115: * @return the query for insertion of all dependent objects.
116: */
117: public final Class getInsertDependentQuery() {
118: return null;
119: }
120:
121: }
|