Uses of Class
edu.ucsb.nceas.metacat.database.DBConnection
Package
Description
-
Uses of DBConnection in edu.ucsb.nceas.metacat
Modifier and TypeMethodDescriptionvoid
IdentifierManager.createMapping
(String guid, String localId, DBConnection dbConn) Create a mapping between the dataone identifier and local docid in the identifier tablestatic void
DocumentImpl.registerDocument
(String docname, String doctype, DBConnection conn, String accnum, String user) Register a document that resides on the filesystem with the database.protected String
MetacatHandler.registerToDB
(org.dataone.service.types.v1.Identifier pid, MetacatHandler.Action action, DBConnection conn, String user, String docType, org.dataone.service.types.v1.Identifier prePid) Register the dataone identifier into database (the xml_documents/revisions, identifier tables).ModifierConstructorDescriptionconstruct an instance of the DBQuery classDBValidate
(DBConnection conn) Construct a new validation object using a database entity resolver -
Uses of DBConnection in edu.ucsb.nceas.metacat.accesscontrol
Modifier and TypeMethodDescriptionvoid
XMLAccessAccess.deleteXMLAccessForDoc
(String guid, String permType, DBConnection conn) Delete xml access.void
XMLAccessAccess.insertAccess
(String guid, List<edu.ucsb.nceas.utilities.access.XMLAccessDAO> xmlAccessList, DBConnection conn) Set permissions for a given document. -
Uses of DBConnection in edu.ucsb.nceas.metacat.database
Modifier and TypeMethodDescriptionstatic DBConnection
DBConnectionPool.getDBConnection
(String methodName) Method to get a DBConnection in connection pool 1) try to get a DBConnection from DBConnection pool 2) if 1) failed, then check the size of pool.Modifier and TypeMethodDescriptionstatic void
DBConnectionPool.returnDBConnection
(DBConnection conn, int serialNumber) Method to return a connection to DBConnection pool. -
Uses of DBConnection in edu.ucsb.nceas.metacat.systemmetadata
Modifier and TypeMethodDescriptionvoid
ChecksumsManager.delete
(org.dataone.service.types.v1.Identifier pid, DBConnection conn) Delete the checksums from the table for the given pidvoid
SystemMetadataManager.delete
(org.dataone.service.types.v1.Identifier guid, DBConnection dbConn) Delete the system metadata for the given guid with the DBConnection object.void
ChecksumsManager.save
(org.dataone.service.types.v1.Identifier id, Map<String, String> checksums, DBConnection dbConn) Save the checksums into database.void
SystemMetadataManager.store
(org.dataone.service.types.v2.SystemMetadata sysmeta, boolean changeModifyTime, DBConnection dbConn, SystemMetadataManager.SysMetaVersion sysMetaCheck) Store a system metadata record into the store.static String
SystemMetadataManager.storeRollBack
(org.dataone.service.types.v1.Identifier pid, Exception e, DBConnection conn, org.dataone.service.types.v2.SystemMetadata... backupCopies) RollBack the change in database and hashtore when the store methods failedprotected void
SystemMetadataManager.updateSystemMetadata
(org.dataone.service.types.v2.SystemMetadata sm, DBConnection dbConn) Insert the system metadata fields into the db