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

Sqoop2: Add API documentation to private methods in repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.99.4
    • 2.0.0
    • sqoop2-framework
    • 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

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

              Dates

                Created:
                Updated: