001: /*
002: * <copyright>
003: *
004: * Copyright 1997-2004 BBNT Solutions, LLC
005: * under sponsorship of the Defense Advanced Research Projects
006: * Agency (DARPA).
007: *
008: * You can redistribute this software and/or modify it under the
009: * terms of the Cougaar Open Source License as published on the
010: * Cougaar Open Source Website (www.cougaar.org).
011: *
012: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
013: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
014: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
015: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
016: * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
017: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
018: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
019: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
020: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
021: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
022: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
023: *
024: * </copyright>
025: */
026:
027: package org.cougaar.core.persist;
028:
029: /**
030: * Persistence constants.
031: */
032: interface PersistenceNames {
033: // Property name prefix
034: final String PERSISTENCE_PROP_PREFIX = "org.cougaar.core.persistence.";
035:
036: // Simple names (plugin parameter names)
037: final String PERSISTENCE_ARCHIVE_COUNT_NAME = "archiveCount";
038: final String PERSISTENCE_CONSOLIDATION_PERIOD_NAME = "consolidationPeriod";
039: final String PERSISTENCE_INTERVAL_NAME = "lazyInterval";
040: final String PERSISTENCE_ENABLE_NAME = "enable";
041: final String PERSISTENCE_VERIFY_JAVA_IO_PATCH_NAME = "verifyJavaIOPatch";
042: final String PERSISTENCE_DISABLE_WRITE_NAME = "disableWrite";
043: final String PERSISTENCE_ARCHIVE_NUMBER_NAME = "archiveNumber";
044: final String PERSISTENCE_CLASS_NAME = "class";
045: final String PERSISTENCE_ROOT_NAME = "persistenceRoot";
046: final String PERSISTENCE_DB_DRIVER_NAME = "driver";
047: final String PERSISTENCE_DB_URL_NAME = "url";
048: final String PERSISTENCE_DB_USER_NAME = "user";
049: final String PERSISTENCE_DB_PASSWORD_NAME = "password";
050: final String PERSISTENCE_DB_INTDEF_NAME = "intDef";
051: final String PERSISTENCE_DB_LONGBINARYDEF_NAME = "longBinaryDef";
052: final String PERSISTENCE_PARAMETERS_NAME = "parameters";
053: final String[] NAMES = { PERSISTENCE_ARCHIVE_COUNT_NAME,
054: PERSISTENCE_CONSOLIDATION_PERIOD_NAME,
055: PERSISTENCE_INTERVAL_NAME, PERSISTENCE_ENABLE_NAME,
056: PERSISTENCE_VERIFY_JAVA_IO_PATCH_NAME,
057: PERSISTENCE_DISABLE_WRITE_NAME,
058: PERSISTENCE_ARCHIVE_NUMBER_NAME, PERSISTENCE_CLASS_NAME,
059: PERSISTENCE_ROOT_NAME, PERSISTENCE_DB_DRIVER_NAME,
060: PERSISTENCE_DB_URL_NAME, PERSISTENCE_DB_USER_NAME,
061: PERSISTENCE_DB_PASSWORD_NAME, PERSISTENCE_DB_INTDEF_NAME,
062: PERSISTENCE_DB_LONGBINARYDEF_NAME,
063: PERSISTENCE_PARAMETERS_NAME };
064:
065: // Simple names with equal signs for "startsWith"
066: final String PERSISTENCE_ARCHIVE_COUNT_PREFIX = PERSISTENCE_ARCHIVE_COUNT_NAME
067: + "=";
068: final String PERSISTENCE_CONSOLIDATION_PERIOD_PREFIX = PERSISTENCE_CONSOLIDATION_PERIOD_NAME
069: + "=";
070: final String PERSISTENCE_INTERVAL_PREFIX = PERSISTENCE_INTERVAL_NAME
071: + "=";
072: final String PERSISTENCE_ENABLE_PREFIX = PERSISTENCE_ENABLE_NAME
073: + "=";
074: final String PERSISTENCE_VERIFY_JAVA_IO_PATCH_PREFIX = PERSISTENCE_VERIFY_JAVA_IO_PATCH_NAME
075: + "=";
076: final String PERSISTENCE_DISABLE_WRITE_PREFIX = PERSISTENCE_DISABLE_WRITE_NAME
077: + "=";
078: final String PERSISTENCE_ARCHIVE_NUMBER_PREFIX = PERSISTENCE_ARCHIVE_NUMBER_NAME
079: + "=";
080: final String PERSISTENCE_CLASS_PREFIX = PERSISTENCE_CLASS_NAME
081: + "=";
082: final String PERSISTENCE_ROOT_PREFIX = PERSISTENCE_ROOT_NAME + "=";
083: final String PERSISTENCE_DB_DRIVER_PREFIX = PERSISTENCE_DB_DRIVER_NAME
084: + "=";
085: final String PERSISTENCE_DB_URL_PREFIX = PERSISTENCE_DB_URL_NAME
086: + "=";
087: final String PERSISTENCE_DB_USER_PREFIX = PERSISTENCE_DB_USER_NAME
088: + "=";
089: final String PERSISTENCE_DB_PASSWORD_PREFIX = PERSISTENCE_DB_PASSWORD_NAME
090: + "=";
091: final String PERSISTENCE_DB_INTDEF_PREFIX = PERSISTENCE_DB_INTDEF_NAME
092: + "=";
093: final String PERSISTENCE_DB_LONGBINARYDEF_PREFIX = PERSISTENCE_DB_LONGBINARYDEF_NAME
094: + "=";
095: final String PERSISTENCE_PARAMETERS_PREFIX = PERSISTENCE_PARAMETERS_NAME
096: + "=";
097:
098: // Fully-qualified property names
099: final String PERSISTENCE_ARCHIVE_COUNT_PROP = PERSISTENCE_PROP_PREFIX
100: + PERSISTENCE_ARCHIVE_COUNT_NAME;
101: final String PERSISTENCE_CONSOLIDATION_PERIOD_PROP = PERSISTENCE_PROP_PREFIX
102: + PERSISTENCE_CONSOLIDATION_PERIOD_NAME;
103: final String PERSISTENCE_INTERVAL_PROP = PERSISTENCE_PROP_PREFIX
104: + PERSISTENCE_INTERVAL_NAME;
105: final String PERSISTENCE_ENABLE_PROP = PERSISTENCE_PROP_PREFIX
106: + PERSISTENCE_ENABLE_NAME;
107: final String PERSISTENCE_VERIFY_JAVA_IO_PATCH_PROP = PERSISTENCE_PROP_PREFIX
108: + PERSISTENCE_VERIFY_JAVA_IO_PATCH_NAME;
109: final String PERSISTENCE_DISABLE_WRITE_PROP = PERSISTENCE_PROP_PREFIX
110: + PERSISTENCE_DISABLE_WRITE_NAME;
111: final String PERSISTENCE_ARCHIVE_NUMBER_PROP = PERSISTENCE_PROP_PREFIX
112: + PERSISTENCE_ARCHIVE_NUMBER_NAME;
113: final String PERSISTENCE_CLASS_PROP = PERSISTENCE_PROP_PREFIX
114: + PERSISTENCE_CLASS_NAME;
115: final String PERSISTENCE_ROOT_PROP = PERSISTENCE_PROP_PREFIX
116: + PERSISTENCE_ROOT_NAME;
117: final String PERSISTENCE_DB_DRIVER_PROP = PERSISTENCE_PROP_PREFIX
118: + PERSISTENCE_DB_DRIVER_NAME;
119: final String PERSISTENCE_DB_URL_PROP = PERSISTENCE_PROP_PREFIX
120: + PERSISTENCE_DB_URL_NAME;
121: final String PERSISTENCE_DB_USER_PROP = PERSISTENCE_PROP_PREFIX
122: + PERSISTENCE_DB_USER_NAME;
123: final String PERSISTENCE_DB_PASSWORD_PROP = PERSISTENCE_PROP_PREFIX
124: + PERSISTENCE_DB_PASSWORD_NAME;
125: final String PERSISTENCE_DB_INTDEF_PROP = PERSISTENCE_PROP_PREFIX
126: + PERSISTENCE_DB_INTDEF_NAME;
127: final String PERSISTENCE_DB_LONGBINARYDEF_PROP = PERSISTENCE_PROP_PREFIX
128: + PERSISTENCE_DB_LONGBINARYDEF_NAME;
129: final String PERSISTENCE_PARAMETERS_PROP = PERSISTENCE_PROP_PREFIX
130: + PERSISTENCE_PARAMETERS_NAME;
131: }
|