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.audittrails.store; 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 key field for the entries in the table.*/ 36 public final static String AUDITTRAIL_KEY = "audit_key"; 37 /** The name of the sequence number field in the audit trail table. */ 38 public final static String AUDITTRAIL_SEQUENCE_NUMBER = "sequence_number"; 39 /** The name of teh contributor key in the audit trail table.*/ 40 public final static String AUDITTRAIL_CONTRIBUTOR_KEY = "contributor_key"; 41 /** The name of the file key field in the audit trail table. */ 42 public final static String AUDITTRAIL_FILE_KEY = "file_key"; 43 /** The name of the actor key field in the audit trail table. */ 44 public final static String AUDITTRAIL_ACTOR_KEY = "actor_key"; 45 /** The name of the operation field in the audit trail table. */ 46 public final static String AUDITTRAIL_OPERATION = "operation"; 47 /** The name of the operation date field in the audit trail table. */ 48 public final static String AUDITTRAIL_OPERATION_DATE = "operation_date"; 49 /** The name of the audit field in the audit trail table. */ 50 public final static String AUDITTRAIL_AUDIT = "audit"; 51 /** The name of the information field in the audit trail table. */ 52 public final static String AUDITTRAIL_INFORMATION = "information"; 53 /** The name of the operationID field in the audit trail table. */ 54 public final static String AUDITTRAIL_OPERATION_ID = "operationID"; 55 /** The name of the fingerprint field in the audit trail table. */ 56 public final static String AUDITTRAIL_FINGERPRINT = "fingerprint"; 57 58 /** The name of the file table.*/ 59 public final static String FILE_TABLE = "file"; 60 /** The name of the file key field in the file table.*/ 61 public final static String FILE_KEY = "file_key"; 62 /** The name of the fileid field in the file table.*/ 63 public final static String FILE_FILEID = "fileid"; 64 /** The name of the collectionkey field in the file table.*/ 65 public final static String FILE_COLLECTION_KEY = "collection_key"; 66 67 /** The name of the collection table.*/ 68 public final static String COLLECTION_TABLE = "collection"; 69 /** The key for entries in the collection table.*/ 70 public final static String COLLECTION_KEY = "collection_key"; 71 /** The id for the collection.*/ 72 public final static String COLLECTION_ID = "collectionid"; 73 74 /** The name of the contributor table.*/ 75 public final static String CONTRIBUTOR_TABLE = "contributor"; 76 /** The name of the contributor key field in the contributor table.*/ 77 public final static String CONTRIBUTOR_KEY = "contributor_key"; 78 /** The name of the contributor id field in the contributor table.*/ 79 public final static String CONTRIBUTOR_ID = "contributor_id"; 80 81 /** The name of the actor table.*/ 82 public final static String ACTOR_TABLE = "actor"; 83 /** The name of the actor key field in the actor table.*/ 84 public final static String ACTOR_KEY = "actor_key"; 85 /** The name of the actor name field in the actor table.*/ 86 public final static String ACTOR_NAME = "actor_name"; 87 88 /** The name of the preservation table.*/ 89 public final static String PRESERVATION_TABLE = "preservation"; 90 /** The key for the entry in the preservation table. */ 91 public final static String PRESERVATION_KEY = "preservation_key"; 92 /** The key for the collection. */ 93 public final static String PRESERVATION_COLLECTION_KEY = "collection_key"; 94 /** The key for the contributor.*/ 95 public final static String PRESERVATION_CONTRIBUTOR_KEY = "contributor_key"; 96 /** The name of the preservation sequence number field in the contributor table.*/ 97 public final static String PRESERVATION_SEQ = "preserved_seq_number"; 98 99 /** The name of the version table entry for the database.*/ 100 public final static String DATABASE_VERSION_ENTRY = "auditservicedb"; 101 }