Skip to content

Commit

Permalink
html
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 12, 2023
1 parent a8dcad3 commit 7dbc9bb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/com/jcabi/jdbc/JdbcSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
/**
* Universal JDBC wrapper.
*
* <p>Execute a simple SQL query over a JDBC data source:
* <p>Execute a simple SQL query over a JDBC data source:</p>
*
* <pre> String name = new JdbcSession(source)
* .sql("SELECT name FROM foo WHERE id = ?")
Expand All @@ -61,7 +61,7 @@
*
* <p>There are a number of convenient pre-defined outcomes, like
* {@link Outcome#VOID}, {@link Outcome#NOT_EMPTY}, {@link Outcome#UPDATE_COUNT}
* {@link SingleOutcome}, etc.
* {@link SingleOutcome}, etc.</p>
*
* <p>Methods {@link #insert(Outcome)},
* {@link #update(Outcome)},
Expand All @@ -71,7 +71,7 @@
* it's necessary to perform a number of SQL statements in a group. For
* example, the following construct will execute two SQL queries, in a single
* transaction and will "commit" at the end (or rollback the entire transaction
* in case of any error in between):
* in case of any error in between):</p>
*
* <pre> new JdbcSession(source)
* .autocommit(false)
Expand All @@ -84,7 +84,7 @@
* .execute()
* .commit();</pre>
*
* <p>The following SQL queries will be sent to the database:
* <p>The following SQL queries will be sent to the database:</p>
*
* <pre> START TRANSACTION;
* DELETE FROM foo WHERE id = 444;
Expand All @@ -94,7 +94,7 @@
* <p>{@link #autocommit(boolean)} (with {@code false} as an argument)
* can be used when it's necessary to execute
* a statement and leave the connection open. For example when shutting down
* the database through SQL:
* the database through SQL:</p>
*
* <pre> new JdbcSession(&#47;* H2 Database data source *&#47;)
* .autocommit(false)
Expand Down Expand Up @@ -208,7 +208,7 @@ public JdbcSession(final DataSource src) {
*
* <p>The query will be used in {@link PreparedStatement}, that's why
* you can use the same formatting as there. Arguments shall be marked
* as {@code "?"} (question marks). For example:
* as {@code "?"} (question marks). For example:</p>
*
* <pre> String name = new JdbcSession(source)
* .sql("INSERT INTO foo (id, name) VALUES (?, ?)")
Expand All @@ -233,7 +233,7 @@ public JdbcSession sql(final String sql) {
* {@link #insert(Outcome)}, {@link #execute()}, and
* {@link #select(Outcome)} will
* call {@link Connection#commit()} after
* their successful execution.
* their successful execution.</p>
*
* @param autocommit Shall we?
* @return This object
Expand All @@ -252,7 +252,7 @@ public JdbcSession autocommit(final boolean autocommit) {
* {@link java.sql.Date},
* {@link Utc}, {@link Long}, {@link Float}, byte[], {@link Integer}, {@link UUID}.
* All other types will be converted to {@link String} using
* their {@code toString()} methods.
* their {@code toString()} methods.</p>
*
* @param value The value to add
* @return This object
Expand Down

0 comments on commit 7dbc9bb

Please sign in to comment.