Revision 5025
Added by daigle over 14 years ago
DBUtil.java | ||
---|---|---|
50 | 50 |
import edu.ucsb.nceas.metacat.database.DBConnection; |
51 | 51 |
import edu.ucsb.nceas.metacat.database.DBConnectionPool; |
52 | 52 |
import edu.ucsb.nceas.metacat.service.PropertyService; |
53 |
import edu.ucsb.nceas.metacat.util.MetacatUtil;
|
|
53 |
import edu.ucsb.nceas.metacat.util.DocumentUtil;
|
|
54 | 54 |
import edu.ucsb.nceas.metacat.util.SystemUtil; |
55 | 55 |
import edu.ucsb.nceas.utilities.PropertyNotFoundException; |
56 | 56 |
|
... | ... | |
632 | 632 |
String docType = null; |
633 | 633 |
|
634 | 634 |
// Get docid without rev |
635 |
docIdWithoutRevision = MetacatUtil.getDocIdFromString(givenDocId);
|
|
635 |
docIdWithoutRevision = DocumentUtil.getDocIdFromString(givenDocId);
|
|
636 | 636 |
// SQL comand is: |
637 | 637 |
sqlCommand = "select rev, doctype from xml_documents where docid like ?"; |
638 | 638 |
|
Also available in: Unified diff
Move document specific utilities to DocumentUtil from MetacatUtil. This makes it easier to define a layer between the core metacat services and the rest of the code.