APISonar


com.microsoft.sqlserver.testframework.Constants.DATE

> com > microsoft > sqlserver > testframework > Constants > DATE
com APIs microsoft APIs sqlserver APIs testframework APIs Constants APIs DATE APIs

Example 1
private void populateDateTable(Connection connection) throws SQLException {
        String sql = "insert into " + AbstractSQLGenerator.escapeIdentifier(DATE_TABLE_AE) + " values( " + "?,?,?"
                + ")";
        try (PreparedStatement sqlPstmt = connection.prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY,
                ResultSet.CONCUR_READ_ONLY, connection.getHoldability())) {
            sqlPstmt.setObject(1, Constants.DATE);
            sqlPstmt.setObject(2, Constants.DATE);
            sqlPstmt.setObject(3, Constants.DATE);
            sqlPstmt.executeUpdate();
        }
    }