Unverified 提交 d5714322 authored 作者: Noel Grandin's avatar Noel Grandin 提交者: GitHub

Merge pull request #886 from katzyn/misc

Fix building of documentation
...@@ -120,6 +120,8 @@ public final class GeneratedKeys { ...@@ -120,6 +120,8 @@ public final class GeneratedKeys {
/** /**
* Returns generated keys. * Returns generated keys.
* *
* @param session
* session
* @return local result with generated keys * @return local result with generated keys
*/ */
public LocalResult getKeys(Session session) { public LocalResult getKeys(Session session) {
......
...@@ -215,7 +215,7 @@ public class ToDateParser { ...@@ -215,7 +215,7 @@ public class ToDateParser {
this.minute = minute; this.minute = minute;
} }
void setSecord(int second) { void setSecond(int second) {
this.second = second; this.second = second;
} }
......
...@@ -389,7 +389,7 @@ class ToDateTokenizer { ...@@ -389,7 +389,7 @@ class ToDateTokenizer {
inputFragmentStr = matchStringOrThrow( inputFragmentStr = matchStringOrThrow(
PATTERN_TWO_DIGITS_OR_LESS, params, formatTokenEnum); PATTERN_TWO_DIGITS_OR_LESS, params, formatTokenEnum);
dateNr = Integer.parseInt(inputFragmentStr); dateNr = Integer.parseInt(inputFragmentStr);
params.setSecord(dateNr); params.setSecond(dateNr);
break; break;
case SSSSS: { case SSSSS: {
inputFragmentStr = matchStringOrThrow(PATTERN_NUMBER, params, inputFragmentStr = matchStringOrThrow(PATTERN_NUMBER, params,
...@@ -402,7 +402,7 @@ class ToDateTokenizer { ...@@ -402,7 +402,7 @@ class ToDateTokenizer {
int hour = dateNr % 24; int hour = dateNr % 24;
params.setHour(hour); params.setHour(hour);
params.setMinute(minute); params.setMinute(minute);
params.setSecord(second); params.setSecond(second);
break; break;
} }
case FF: case FF:
......
...@@ -1453,9 +1453,9 @@ public abstract class TestBase { ...@@ -1453,9 +1453,9 @@ public abstract class TestBase {
* *
* @return the path to java * @return the path to java
*/ */
private String getJVM() { private static String getJVM() {
return System.getProperty("java.home") + File.separatorChar + "bin" + return System.getProperty("java.home") + File.separatorChar + "bin"
File.separator + "java"; + File.separator + "java";
} }
/** /**
...@@ -1702,7 +1702,7 @@ public abstract class TestBase { ...@@ -1702,7 +1702,7 @@ public abstract class TestBase {
} }
public ProcessBuilder buildChild(String name, Class<? extends TestBase> childClass, public ProcessBuilder buildChild(String name, Class<? extends TestBase> childClass,
String... jvmArgs) { String... jvmArgs) {
List<String> args = new ArrayList<>(16); List<String> args = new ArrayList<>(16);
args.add(getJVM()); args.add(getJVM());
Collections.addAll(args, jvmArgs); Collections.addAll(args, jvmArgs);
......
...@@ -61,7 +61,7 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -61,7 +61,7 @@ public class TestGetGeneratedKeys extends TestBase {
deleteDb("getGeneratedKeys"); deleteDb("getGeneratedKeys");
Connection conn = getConnection("getGeneratedKeys"); Connection conn = getConnection("getGeneratedKeys");
testBatchAndMergeInto(conn); testBatchAndMergeInto(conn);
testCalledSequenses(conn); testCalledSequences(conn);
testInsertWithSelect(conn); testInsertWithSelect(conn);
testMergeUsing(conn); testMergeUsing(conn);
testMultithreaded(conn); testMultithreaded(conn);
...@@ -171,7 +171,7 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -171,7 +171,7 @@ public class TestGetGeneratedKeys extends TestBase {
* @throws Exception * @throws Exception
* on exception * on exception
*/ */
private void testCalledSequenses(Connection conn) throws Exception { private void testCalledSequences(Connection conn) throws Exception {
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
stat.execute("CREATE SEQUENCE SEQ"); stat.execute("CREATE SEQUENCE SEQ");
...@@ -418,7 +418,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -418,7 +418,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String)}.{@link PreparedStatement#execute()}. * {@link Connection#prepareStatement(String)}
* .{@link PreparedStatement#execute()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -439,7 +440,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -439,7 +440,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String)}.{@link PreparedStatement#executeBatch()}. * {@link Connection#prepareStatement(String)}
* .{@link PreparedStatement#executeBatch()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -462,7 +464,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -462,7 +464,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String)}.{@link PreparedStatement#executeLargeBatch()}. * {@link Connection#prepareStatement(String)}
* .{@link PreparedStatement#executeLargeBatch()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -486,7 +489,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -486,7 +489,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String)}.{@link PreparedStatement#executeLargeUpdate()}. * {@link Connection#prepareStatement(String)}
* .{@link PreparedStatement#executeLargeUpdate()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -508,7 +512,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -508,7 +512,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String)}.{@link PreparedStatement#executeUpdate()}. * {@link Connection#prepareStatement(String)}
* .{@link PreparedStatement#executeUpdate()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -529,7 +534,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -529,7 +534,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, int)}.{@link PreparedStatement#execute()}. * {@link Connection#prepareStatement(String, int)}
* .{@link PreparedStatement#execute()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -562,7 +568,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -562,7 +568,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, int)}.{@link PreparedStatement#executeBatch()}. * {@link Connection#prepareStatement(String, int)}
* .{@link PreparedStatement#executeBatch()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -601,8 +608,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -601,8 +608,8 @@ public class TestGetGeneratedKeys extends TestBase {
} }
/** /**
* Test method for * Test method for {@link Connection#prepareStatement(String, int)}
* {@link Connection#prepareStatement(String, int)}.{@link PreparedStatement#executeLargeBatch()}. * .{@link PreparedStatement#executeLargeBatch()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -643,7 +650,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -643,7 +650,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, int)}.{@link PreparedStatement#executeLargeUpdate()}. * {@link Connection#prepareStatement(String, int)}
* .{@link PreparedStatement#executeLargeUpdate()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -677,7 +685,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -677,7 +685,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, int)}.{@link PreparedStatement#executeUpdate()}. * {@link Connection#prepareStatement(String, int)}
* .{@link PreparedStatement#executeUpdate()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -710,7 +719,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -710,7 +719,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, int[])}.{@link PreparedStatement#execute()}. * {@link Connection#prepareStatement(String, int[])}
* .{@link PreparedStatement#execute()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -762,7 +772,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -762,7 +772,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, int[])}.{@link PreparedStatement#executeBatch()}. * {@link Connection#prepareStatement(String, int[])}
* .{@link PreparedStatement#executeBatch()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -830,7 +841,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -830,7 +841,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, int[])}.{@link PreparedStatement#executeLargeBatch()}. * {@link Connection#prepareStatement(String, int[])}
* .{@link PreparedStatement#executeLargeBatch()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -849,7 +861,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -849,7 +861,8 @@ public class TestGetGeneratedKeys extends TestBase {
ResultSet rs = prep.getGeneratedKeys(); ResultSet rs = prep.getGeneratedKeys();
assertFalse(rs.next()); assertFalse(rs.next());
rs.close(); rs.close();
prep = (JdbcPreparedStatement) conn.prepareStatement("INSERT INTO TEST(VALUE) VALUES (20)", new int[] { 1, 2 }); prep = (JdbcPreparedStatement) conn.prepareStatement("INSERT INTO TEST(VALUE) VALUES (20)",
new int[] { 1, 2 });
prep.addBatch(); prep.addBatch();
prep.addBatch(); prep.addBatch();
prep.executeLargeBatch(); prep.executeLargeBatch();
...@@ -865,7 +878,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -865,7 +878,8 @@ public class TestGetGeneratedKeys extends TestBase {
assertEquals(UUID.class, rs.getObject(2).getClass()); assertEquals(UUID.class, rs.getObject(2).getClass());
assertFalse(rs.next()); assertFalse(rs.next());
rs.close(); rs.close();
prep = (JdbcPreparedStatement) conn.prepareStatement("INSERT INTO TEST(VALUE) VALUES (30)", new int[] { 2, 1 }); prep = (JdbcPreparedStatement) conn.prepareStatement("INSERT INTO TEST(VALUE) VALUES (30)",
new int[] { 2, 1 });
prep.addBatch(); prep.addBatch();
prep.addBatch(); prep.addBatch();
prep.executeLargeBatch(); prep.executeLargeBatch();
...@@ -899,7 +913,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -899,7 +913,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, int[])}.{@link PreparedStatement#executeLargeUpdate()}. * {@link Connection#prepareStatement(String, int[])}
* .{@link PreparedStatement#executeLargeUpdate()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -916,7 +931,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -916,7 +931,8 @@ public class TestGetGeneratedKeys extends TestBase {
ResultSet rs = prep.getGeneratedKeys(); ResultSet rs = prep.getGeneratedKeys();
assertFalse(rs.next()); assertFalse(rs.next());
rs.close(); rs.close();
prep = (JdbcPreparedStatement) conn.prepareStatement("INSERT INTO TEST(VALUE) VALUES (20)", new int[] { 1, 2 }); prep = (JdbcPreparedStatement) conn.prepareStatement("INSERT INTO TEST(VALUE) VALUES (20)",
new int[] { 1, 2 });
prep.executeLargeUpdate(); prep.executeLargeUpdate();
rs = prep.getGeneratedKeys(); rs = prep.getGeneratedKeys();
assertEquals(2, rs.getMetaData().getColumnCount()); assertEquals(2, rs.getMetaData().getColumnCount());
...@@ -927,7 +943,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -927,7 +943,8 @@ public class TestGetGeneratedKeys extends TestBase {
assertEquals(UUID.class, rs.getObject(2).getClass()); assertEquals(UUID.class, rs.getObject(2).getClass());
assertFalse(rs.next()); assertFalse(rs.next());
rs.close(); rs.close();
prep = (JdbcPreparedStatement) conn.prepareStatement("INSERT INTO TEST(VALUE) VALUES (30)", new int[] { 2, 1 }); prep = (JdbcPreparedStatement) conn.prepareStatement("INSERT INTO TEST(VALUE) VALUES (30)",
new int[] { 2, 1 });
prep.executeLargeUpdate(); prep.executeLargeUpdate();
rs = prep.getGeneratedKeys(); rs = prep.getGeneratedKeys();
assertEquals(2, rs.getMetaData().getColumnCount()); assertEquals(2, rs.getMetaData().getColumnCount());
...@@ -952,7 +969,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -952,7 +969,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, int[])}.{@link PreparedStatement#executeUpdate()}. * {@link Connection#prepareStatement(String, int[])}
* .{@link PreparedStatement#executeUpdate()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -1004,7 +1022,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -1004,7 +1022,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, String[])}.{@link PreparedStatement#execute()}. * {@link Connection#prepareStatement(String, String[])}
* .{@link PreparedStatement#execute()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -1056,7 +1075,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -1056,7 +1075,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, String[])}.{@link PreparedStatement#executeBatch()}. * {@link Connection#prepareStatement(String, String[])}
* .{@link PreparedStatement#executeBatch()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -1124,7 +1144,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -1124,7 +1144,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, String[])}.{@link PreparedStatement#executeLargeBatch()}. * {@link Connection#prepareStatement(String, String[])}
* .{@link PreparedStatement#executeLargeBatch()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -1196,7 +1217,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -1196,7 +1217,8 @@ public class TestGetGeneratedKeys extends TestBase {
/** /**
* Test method for * Test method for
* {@link Connection#prepareStatement(String, String[])}.{@link PreparedStatement#executeLargeUpdate()}. * {@link Connection#prepareStatement(String, String[])}
* .{@link PreparedStatement#executeLargeUpdate()}.
* *
* @param conn * @param conn
* connection * connection
...@@ -1251,8 +1273,8 @@ public class TestGetGeneratedKeys extends TestBase { ...@@ -1251,8 +1273,8 @@ public class TestGetGeneratedKeys extends TestBase {
} }
/** /**
* Test method for * Test method for {@link Connection#prepareStatement(String, String[])}
* {@link Connection#prepareStatement(String, String[])}.{@link PreparedStatement#executeUpdate()}. * .{@link PreparedStatement#executeUpdate()}.
* *
* @param conn * @param conn
* connection * connection
......
...@@ -765,4 +765,4 @@ jacoco xdata invokes sourcefiles classfiles duplication crypto stacktraces prt d ...@@ -765,4 +765,4 @@ jacoco xdata invokes sourcefiles classfiles duplication crypto stacktraces prt d
interpolated thead interpolated thead
die weekdiff osx subprocess dow proleptic microsecond microseconds divisible cmp denormalized suppressed saturated mcs die weekdiff osx subprocess dow proleptic microsecond microseconds divisible cmp denormalized suppressed saturated mcs
london london dfs weekdays intermittent looked
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论