Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-1658

Sqoop2: Add API documentation to private methods in repository

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.99.4
    • Fix Version/s: 2.0.0
    • Component/s: sqoop2-framework
    • Labels:
      None

      Description

      Examples:

        private void insertConnectorDirection(Long connectorId, Direction direction, Connection conn)
            throws SQLException {
          PreparedStatement stmt = null;
      
          try {
            stmt = conn.prepareStatement(CommonRepositoryInsertUpdateDeleteSelectQuery.STMT_INSERT_SQ_CONNECTOR_DIRECTIONS);
            stmt.setLong(1, connectorId);
            stmt.setLong(2, getDirection(direction, conn));
      
            if (stmt.executeUpdate() != 1) {
              throw new SqoopException(CommonRepositoryError.COMMON_0043);
            }
          } finally {
            closeStatements(stmt);
          }
        }
      
        private void insertConnectorDirections(Long connectorId, SupportedDirections directions, Connection conn)
            throws SQLException {
          if (directions.isDirectionSupported(Direction.FROM)) {
            insertConnectorDirection(connectorId, Direction.FROM, conn);
          }
      
          if (directions.isDirectionSupported(Direction.TO)) {
            insertConnectorDirection(connectorId, Direction.TO, conn);
          }
        }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stanleyxu2005 Qian Xu
                Reporter:
                abec Abraham Elmahrek
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: