## Uses of Class
edu.ucsb.nceas.metacat.database.DBConnection

- Packages that use DBConnection
  Package | Description
  --- | ---
  edu.ucsb.nceas.metacat |
  edu.ucsb.nceas.metacat.accesscontrol |
  edu.ucsb.nceas.metacat.database |
  edu.ucsb.nceas.metacat.replication |
  edu.ucsb.nceas.metacat.shared |
  edu.ucsb.nceas.metacat.spatial |

- - ### Uses of DBConnection in edu.ucsb.nceas.metacat

    Fields in edu.ucsb.nceas.metacat declared as DBConnection
    Modifier and Type | Field and Description
    --- | ---
    `protected DBConnection` | DocumentImpl.`connection`
    `protected DBConnection` | DBSAXHandler.`connection`

    Methods in edu.ucsb.nceas.metacat with parameters of type DBConnection
    Modifier and Type | Method and Description
    --- | ---
    `void` | DBSAXNode.`updateNodeIndex(DBConnection conn, java.lang.String docid, java.lang.String doctype)` USED FROM SEPARATE THREAD RUNNED from DBSAXHandler on endDocument() Update the node index (xml_index) for this node by generating test strings that represent all of the relative and absolute paths through the XML tree from document root to this node
    `void` | IdentifierManager.`updateSystemMetadata(org.dataone.service.types.v2.SystemMetadata sm, DBConnection dbConn)` Insert the system metadata fields into the db
    `java.lang.String` | DocumentImplWrapper.`write(DBConnection conn, java.lang.String xml, java.lang.String pub, java.io.Reader dtd, java.lang.String action, java.lang.String docid, java.lang.String user, java.lang.String[] groups, byte[] xmlBytes, java.lang.String schemaLocalLocation, org.dataone.service.types.v1.Checksum checksum)`
    `static java.lang.String` | DocumentImpl.`write(DBConnection conn, java.lang.String xmlString, java.lang.String pub, java.io.Reader dtd, java.lang.String action, java.lang.String accnum, java.lang.String user, java.lang.String[] groups, int serverCode, boolean override, java.lang.String ruleBase, boolean needValidation, boolean writeAccessRules, byte[] xmlBytes, java.lang.String schemaLocation, org.dataone.service.types.v1.Checksum checksum)` Write an XML file to the database, given a Reader
    `static java.lang.String` | DocumentImpl.`write(DBConnection conn, java.lang.String xmlString, java.lang.String pub, java.io.Reader dtd, java.lang.String action, java.lang.String docid, java.lang.String user, java.lang.String[] groups, java.lang.String ruleBase, boolean needValidation, boolean writeAccessRules, byte[] xmlBytes, java.lang.String schemaLocation, org.dataone.service.types.v1.Checksum checksum)` Write an XML file to the database, given a filename
    `java.lang.String` | DocumentImplWrapper.`writeReplication(DBConnection conn, java.lang.String xml, byte[] xmlBytes, java.lang.String pub, java.io.Reader dtd, java.lang.String action, java.lang.String accnum, java.lang.String user, java.lang.String[] groups, java.lang.String homeServer, java.lang.String notifyServer, java.util.Date createDate, java.util.Date updateDate)`
    `java.lang.String` | DocumentImplWrapper.`writeReplication(DBConnection conn, java.lang.String xml, byte[] xmlBytes, java.lang.String pub, java.io.Reader dtd, java.lang.String action, java.lang.String accnum, java.lang.String user, java.lang.String[] groups, java.lang.String homeServer, java.lang.String notifyServer, java.lang.String tableName, boolean timedReplication, java.util.Date createDate, java.util.Date updateDate)` Constructor with tableName - this doc is in xml_documents or xml_revsions If in xml_revisions, it need a special handler.
    `static java.lang.String` | DocumentImpl.`writeReplication(DBConnection conn, java.lang.String xmlString, byte[] xmlBytes, java.lang.String pub, java.io.Reader dtd, java.lang.String action, java.lang.String accnum, java.lang.String user, java.lang.String[] groups, java.lang.String homeServer, java.lang.String notifyServer, java.lang.String ruleBase, boolean needValidation, java.lang.String tableName, boolean timedReplication, java.util.Date createDate, java.util.Date updateDate, java.lang.String schemaLocation)` Write an XML file to the database during replication

    Constructors in edu.ucsb.nceas.metacat with parameters of type DBConnection
    Constructor and Description
    `AssociateAccessPolicy(DBConnection conn)` construct an instance of the DBQuery class
    `DBDTDHandler(DBConnection conn)` Construct an instance of the DBDTDHandler clas
    `DBEntityResolver(DBConnection conn)` Construct an instance of the DBEntityResolver class
    `DBEntityResolver(DBConnection conn, org.xml.sax.helpers.DefaultHandler handler, java.io.Reader dtd)` Construct an instance of the DBEntityResolver class
    `DBSAXHandler(DBConnection conn, java.lang.String action, java.lang.String docid, java.lang.String revision, java.lang.String user, java.lang.String[] groups, java.lang.String pub, int serverCode, java.util.Date createDate, java.util.Date updateDate, boolean writeAccessRules)` Construct an instance of the handler class In this constructor, user can specify the version need to upadate
    `DBSAXNode(DBConnection conn, java.lang.String docid)` Construct a new node instance for DOCUMENT nodes
    `DBSAXNode(DBConnection conn, java.lang.String qName, java.lang.String lName, DBSAXNode parentNode, long rootnodeid, java.lang.String docid, java.lang.String doctype)` Construct a new node instance for ELEMENT nodes
    `DBSAXNode(DBConnection conn, java.lang.String docName, java.lang.String publicId, java.lang.String systemId, DBSAXNode parentNode, long rootnodeid, java.lang.String docid)` Construct a new node instance for DTD nodes This Node will write docname, publicId and systemId into db.
    `DBValidate(DBConnection conn)` Construct a new validation object using a database entity resolver
    `DocumentImpl(DBConnection conn, long rootNodeId, java.lang.String docName, java.lang.String docType, java.lang.String docId, java.lang.String newRevision, java.lang.String action, java.lang.String user, java.lang.String pub, java.lang.String catalogId, int serverCode, java.util.Date createDate, java.util.Date updateDate)` Construct a new document instance, writing the contents to the database.
    `Eml200SAXHandler(DBConnection conn, java.lang.String action, java.lang.String docid, java.lang.String revision, java.lang.String user, java.lang.String[] groups, java.lang.String pub, int serverCode, java.util.Date createDate, java.util.Date updateDate, boolean writeAccessRules, java.util.Vector<java.lang.String> guidsToSync)` Construct an instance of the handler class In this constructor, user can specify the version need to upadate
    `Eml210SAXHandler(DBConnection conn, java.lang.String action, java.lang.String docid, java.lang.String revision, java.lang.String user, java.lang.String[] groups, java.lang.String pub, int serverCode, java.util.Date createDate, java.util.Date updateDate, boolean writeAccessRules, java.util.Vector<java.lang.String> guidsToSync)` Construct an instance of the handler class In this constructor, user can specify the version need to update
    `RelationHandler(java.lang.String docid, java.lang.String doctype, DBConnection conn, edu.ucsb.nceas.utilities.triple.TripleCollection list)` Constructor for this class.

  - ### Uses of DBConnection in edu.ucsb.nceas.metacat.accesscontrol

    Constructors in edu.ucsb.nceas.metacat.accesscontrol with parameters of type DBConnection
    Constructor and Description
    `AccessControlList(DBConnection conn)` Construct an instance of the AccessControlList class.
    `AccessControlList(DBConnection conn, java.lang.String aclid, int rev, java.lang.String user, java.lang.String[] groups, int serverCode)` Construct an instance of the AccessControlList class.

  - ### Uses of DBConnection in edu.ucsb.nceas.metacat.database

    Methods in edu.ucsb.nceas.metacat.database that return DBConnection
    Modifier and Type | Method and Description
    --- | ---
    `static DBConnection` | DBConnectionPool.`getDBConnection(java.lang.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.

    Methods in edu.ucsb.nceas.metacat.database with parameters of type DBConnection
    Modifier and Type | Method and Description
    --- | ---
    `static void` | DBConnectionPool.`returnDBConnection(DBConnection conn, int serialNumber)` Method to return a connection to DBConnection pool.

  - ### Uses of DBConnection in edu.ucsb.nceas.metacat.replication

    Methods in edu.ucsb.nceas.metacat.replication with parameters of type DBConnection
    Modifier and Type | Method and Description
    --- | ---
    `static void` | ReplicationService.`updateUserOwner(DBConnection dbConn, java.lang.String docid, java.lang.String owner, java.lang.String updater)`

  - ### Uses of DBConnection in edu.ucsb.nceas.metacat.shared

    Methods in edu.ucsb.nceas.metacat.shared with parameters of type DBConnection
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | BaseAccess.`closeDBObjects(java.sql.PreparedStatement pstmt, DBConnection conn, int serialNumber, org.apache.log4j.Logger logMetacat)`

  - ### Uses of DBConnection in edu.ucsb.nceas.metacat.spatial

    Constructors in edu.ucsb.nceas.metacat.spatial with parameters of type DBConnection
    Constructor and Description
    `SpatialDocument(java.lang.String docid, DBConnection dbconn)` Constructor that queries the db

Copyright © 2020 Regents of the University of California. All Rights Reserved.