View Javadoc

1   /*
2    * #%L
3    * Bitrepository Alarm Service
4    * %%
5    * Copyright (C) 2010 - 2012 The State and University Library, The Royal Library and The State Archives, Denmark
6    * %%
7    * This program is free software: you can redistribute it and/or modify
8    * it under the terms of the GNU Lesser General Public License as 
9    * published by the Free Software Foundation, either version 2.1 of the 
10   * License, or (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 Lesser Public License for more details.
16   * 
17   * You should have received a copy of the GNU General Lesser Public 
18   * License along with this program.  If not, see
19   * <http://www.gnu.org/licenses/lgpl-2.1.html>.
20   * #L%
21   */
22  package org.bitrepository.alarm.store;
23  
24  /**
25   * The constants for the AlarmService database.
26   */
27  public class AlarmDatabaseConstants {
28      /** Private constructor to prevent instantiation of this constants class.*/
29      private AlarmDatabaseConstants() { }
30      
31      /** The name of the Alarm table.*/
32      public static final String ALARM_TABLE = "alarm";
33      /** The name of the guid field in the alarm table.*/
34      public static final String ALARM_GUID = "guid";
35      /** The name of the component guid field in the alarm table.*/
36      public static final String ALARM_COMPONENT_GUID = "component_guid";
37      /** The name of the alarm code field in the alarm table.*/
38      public static final String ALARM_CODE = "alarm_code";
39      /** The name of the alarm text field in the alarm table.*/
40      public static final String ALARM_TEXT = "alarm_text";
41      /** The name of the alarm date field in the alarm table.*/
42      public static final String ALARM_DATE = "alarm_date";
43      /** The name of the file id field in the alarm table.*/
44      public static final String ALARM_FILE_ID = "file_id";
45      /** The name of the collection id field in the alarm table */
46      public static final String ALARM_COLLECTION_ID = "collection_id";
47      
48      /** The name of the component table.*/
49      public static final String COMPONENT_TABLE = "component";
50      /** The name of the component guid field in the component table.*/
51      public static final String COMPONENT_GUID = "component_guid";
52      /** The name of the component id field in the component table.*/
53      public static final String COMPONENT_ID = "component_id";
54      
55      /** The name of the version table entry for the database.*/
56      public final static String ALARM_TABLE_VERSION_ENTRY = "alarm";
57  }