Revision 4212
Added by daigle over 15 years ago
DocumentImpl.java | ||
---|---|---|
2038 | 2038 |
int thisrev = DBUtil.getLatestRevisionInDocumentTable(docid); |
2039 | 2039 |
logMetacat.info("this revsion is: " + thisrev); |
2040 | 2040 |
// Save the old document publicaccessentry in a backup table |
2041 |
String accNumber = docid+PropertyService.getProperty("accNumSeparator")+thisrev; |
|
2041 |
String accNumber = docid+PropertyService.getProperty("document.accNumSeparator")+thisrev;
|
|
2042 | 2042 |
thisdoc = new DocumentImpl(accNumber, false); |
2043 | 2043 |
DocumentImpl.archiveDocAndNodesRevision(connection, docid, user, thisdoc); |
2044 | 2044 |
logMetacat.info("after archiveDoc"); |
... | ... | |
2426 | 2426 |
ForceReplicationHandler frh = new ForceReplicationHandler(accnum, |
2427 | 2427 |
action, true, null); |
2428 | 2428 |
// clear cache after inserting or updating a document |
2429 |
if (PropertyService.getProperty("query_cache_on").equals("true"))
|
|
2429 |
if (PropertyService.getProperty("database.queryCacheOn").equals("true"))
|
|
2430 | 2430 |
{ |
2431 | 2431 |
//System.out.println("the string stored into cache is "+ resultsetBuffer.toString()); |
2432 | 2432 |
DBQuery.clearQueryResultCache(); |
... | ... | |
2613 | 2613 |
} |
2614 | 2614 |
|
2615 | 2615 |
// clear cache after inserting or updating a document |
2616 |
if (PropertyService.getProperty("query_cache_on").equals("true"))
|
|
2616 |
if (PropertyService.getProperty("database.queryCacheOn").equals("true"))
|
|
2617 | 2617 |
{ |
2618 | 2618 |
//System.out.println("the string stored into cache is "+ resultsetBuffer.toString()); |
2619 | 2619 |
DBQuery.clearQueryResultCache(); |
... | ... | |
2926 | 2926 |
ForceReplicationHandler frh = new ForceReplicationHandler( |
2927 | 2927 |
accnum, ForceReplicationHandler.DELETE, isXML, notifyServer); |
2928 | 2928 |
// clear cache after inserting or updating a document |
2929 |
if (PropertyService.getProperty("query_cache_on").equals("true"))
|
|
2929 |
if (PropertyService.getProperty("database.queryCacheOn").equals("true"))
|
|
2930 | 2930 |
{ |
2931 | 2931 |
//System.out.println("the string stored into cache is "+ resultsetBuffer.toString()); |
2932 | 2932 |
DBQuery.clearQueryResultCache(); |
... | ... | |
3158 | 3158 |
|
3159 | 3159 |
try { |
3160 | 3160 |
if (doc == null) { |
3161 |
String accNumber = docid + PropertyService.getProperty("accNumSeparator") + |
|
3161 |
String accNumber = docid + PropertyService.getProperty("document.accNumSeparator") +
|
|
3162 | 3162 |
DBUtil.getLatestRevisionInDocumentTable(docid); |
3163 | 3163 |
doc = new DocumentImpl(accNumber); |
3164 | 3164 |
} |
Also available in: Unified diff
Continue to qualify property names