View Javadoc

1   /*
2    * #%L
3    * Bitrepository Reference Pillar
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.service.audit;
23  
24  /**
25   * Container for the constants for the audit trail database.
26   * All the names of the tables and the fields in these tables.
27   */
28  public final class AuditDatabaseConstants {
29      
30      /** Private constructor to prevent instantiation of this constants class.*/
31      private AuditDatabaseConstants() { }
32      
33      /** The name of the audit trail table.*/
34      public final static String AUDITTRAIL_TABLE = "audittrail";
35      /** The name of the sequence number field in the audit trail table. */
36      public final static String AUDITTRAIL_SEQUENCE_NUMBER = "sequence_number";
37      /** The name of the file guid field in the audit trail table. */
38      public final static String AUDITTRAIL_FILE_GUID = "file_guid";
39      /** The name of the actor guid field in the audit trail table. */
40      public final static String AUDITTRAIL_ACTOR_GUID = "actor_guid";
41      /** The name of the operation field in the audit trail table. */
42      public final static String AUDITTRAIL_OPERATION = "operation";
43      /** The name of the operation date field in the audit trail table. */
44      public final static String AUDITTRAIL_OPERATION_DATE = "operation_date";
45      /** The name of the information field in the audit trail table. */
46      public final static String AUDITTRAIL_INFORMATION = "information";
47      /** The name of the audit field in the audit trail table. */
48      public final static String AUDITTRAIL_AUDIT = "audit";    
49      
50      /** The name of the file table.*/
51      public final static String FILE_TABLE = "file";
52      /** The name of the file guid field in the file table.*/
53      public final static String FILE_GUID = "file_guid";
54      /** The name of the fileid field in the file table.*/
55      public final static String FILE_FILEID = "fileid";
56      /** The name of the collectionid field in the file table.*/
57      public final static String FILE_COLLECTIONID = "collectionid";
58      
59      /** The name of the actor table.*/
60      public final static String ACTOR_TABLE = "actor";
61      /** The name of the actor guid field in the actor table.*/
62      public final static String ACTOR_GUID = "actor_guid";
63      /** The name of the actor name field in the actor table.*/
64      public final static String ACTOR_NAME = "actor_name";
65      
66      /** The name of the version table entry for the database.*/
67      public final static String DATABASE_VERSION_ENTRY = "auditcontributordb";
68  }