Project

General

Profile

« Previous | Next » 

Revision 5319

Added by Matt Jones about 14 years ago

Modifications to support the DataONE service API version 0.1.0. For DataONE, the get() and
create() services are partially complete. Several more functions and checks need to be added to
create() before it is viable. This DataONE support is not complete, and the current support breaks the MetacatRestClientTest for the time being (this client will eventually be removed).

View differences:

ReplicationService.java
279 279
				//Get hub value
280 280
				hub = ((String[]) params.get("hub"))[0];
281 281

  
282
				String toDateSql = DatabaseService.getDBAdapter().toDate("01/01/1980","MM/DD/YYYY");
282
				String toDateSql = DatabaseService.getInstance().getDBAdapter().toDate("01/01/1980","MM/DD/YYYY");
283 283
				String sql = "INSERT INTO xml_replication "
284 284
						+ "(server, last_checked, replicate, datareplicate, hub) "
285 285
						+ "VALUES (?," + toDateSql + ",?,?,?)";
......
1181 1181

  
1182 1182
			// Get correct docid that reside on this server according the requesting
1183 1183
			// server's replicate and data replicate value in xml_replication table
1184
			docsql.append(DatabaseService.getDBAdapter().getReplicationDocumentListSQL());
1184
			docsql.append(DatabaseService.getInstance().getDBAdapter().getReplicationDocumentListSQL());
1185 1185
			//docsql.append("select docid, rev, doctype from xml_documents where (docid not in (select a.docid from xml_documents a, xml_revisions b where a.docid=b.docid and a.rev<=b.rev)) ");
1186 1186
			revisionSql.append("select docid, rev, doctype from xml_revisions ");
1187 1187
			// If the localhost is not a hub to the remote server, only replicate

Also available in: Unified diff