You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Veena Basavaraj (JIRA)" <ji...@apache.org> on 2015/01/21 19:38:34 UTC
[jira] [Commented] (SQOOP-1658) Sqoop2: Add API documentation to
private methods in repository
[ https://issues.apache.org/jira/browse/SQOOP-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14286028#comment-14286028 ]
Veena Basavaraj commented on SQOOP-1658:
----------------------------------------
do we really nee this for 1.99.5 [~abec]?
> Sqoop2: Add API documentation to private methods in repository
> --------------------------------------------------------------
>
> Key: SQOOP-1658
> URL: https://issues.apache.org/jira/browse/SQOOP-1658
> Project: Sqoop
> Issue Type: Bug
> Components: sqoop2-framework
> Affects Versions: 1.99.4
> Reporter: Abraham Elmahrek
> Assignee: Qian Xu
> Fix For: 1.99.5
>
>
> Examples:
> {code}
> 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);
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)