http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5527
amost have update working. still need to get unit test squared away.
Add comments
Fix the bug of http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4645. handleGetRevisionAndDocTypeAction will search both xml_documents and xml_revisions table.It also changed some constrain in AccessionNumber when user update a document, of which all previous versions are in xml_revisions table.
Change location of PropertyService to properties directory
Create database and shared directories for database management code and shared code respectively.
revert the changes for: -- On update, check if the accession number exists in the db. If not, change the action to insert.
On update, check if the accession number exists in the db. If not, change the action to insert.
Move the DBAdaptor accessor into a DatabaseService class
Continue to qualify property names
Merge 1.9 changes into Head
Removed the release ant token from all files in 'src'.
release
Cleaned up AccessionNumber class to get rid of unused methods. It seems the entire accession_number table is no longer used but has not been deleted from the build. Will do in subsequent commit.
Fixed handling of various docid formats.
Added eml-2.0.1 tags for eml processing.
Also fixed a bug. The error returned in case of no revision number specified was just null. Now it says that revision number is required.
Change method accessNumberUsed to static method.
Merge DBConnection branch to head.
Change back to using Connection. The DBConnection will be store in a cvs branch.
Change the API for dbAdopter.
Change for every method to use getDBConnection and returnDBConnection to manage DBConnection.
Delete the control that when action="insert", rev should be 1
A method named getLastRevisionNumber was added. And condition for checking accession number was revised too. Now metacat wouldn't refuse a revsion number which is 2 or more greater than current revision number in the database. This is for bug 417.
changes according to bug# 234 - metacat accession # handling, done
changed all mentions of DBAdapter to the new name AbstractDatabase
changed like with =
Changed the order of generating and getting Unique ID forxml_nodes.nodeid and for uniqueid part of the accession#because of SQl Server capabilities:first let the db to generate unique id on insert (by db trigger and sequence or by IDENTITY key),then get that unique id for further use by the application....
- changed to use the DBAdapter uniform interface for all apperance of "sysdate" and uniqueid generation from sequenceMetaCatUtil:- reads from metacat.properties the dbadapter class implemented the interfaceand creates an instance of that class (in static public variable named dbAdapter) for use....
fix - added back generate(docid, action) method called from DataFileServer.java where rev is defaulted to 1
- changes to expect revisionid to come from the client on INSERT/UPDATE/DELETE;now the client should send accession# as:sitecode.uniqueid.revisionidINSERT checks if sitecode.uniqueid part does not exist in xml_documents and xml_revisions and revisionid=1...
Added license terms to source code files, and cleaned up some javadocdocumentation in a few places.
changed acc# generation to use db sequence instead of timestamp
made replication on insert or update us. Also made a method in AccessionNumber public so that you can tell if an accession number has already been used.e place be
change the generation of Accession# in the form of <sidecode>.<createdate>
Changed to prevent the insertion if the provided Accession# is in use as Dan suggested.
change Assession# generation to use the same db connection
cleared static methods in AccessionNumber classes for fixing bug foundwhen multiple requests to the servlet at a time.
Added "release" keyword to all metacat source files so that the releasenumber will be evident in software distributions.
Fixed bugs associated with the new UPDATE and DELETE functions ofDBWriter. There were problematic interactions between some staticvariables used in DBEntityResolver and the way in which theServlet objects are re-used across multiple client invocations....
Merged in substantial changes to DBWriter and associated classes and tothe MetaCatServlet in order to accomodate the new UPDATE and DELETEfunctions. The command line tools and the parameters for theservlet have changed substantially.
1) Simplified database connection creation by adding new utility routine in MetaCatUtil that reads configuration information from the properties file.2) Created MetaCatUtil.getOption() to retrieve options from properties file.3) Unified SAX Parser creation by specifying parser driver in the properties file and dynamically loading it using the XMLReaderFactory interface....
added missed conn.close()
fixed string broken over two lines
documentation cleanup
minor modifications to fix problems introduced with AccessionNumber module
gen acc # in new connectionchanging to static methodsinclude action parameter
no message
new class for registering of Accession numbers into metacat db