diff --git a/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoAnyBean.java b/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoAnyBean.java index 8adfc98..586bc4b 100644 --- a/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoAnyBean.java +++ b/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoAnyBean.java @@ -1561,6 +1561,30 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL } } + @Override + public java.sql.ResultSet getFieldPeopleResultSet(final java.util.List personNos) throws java.sql.SQLException { + PreparedStatement ps = null; + ResultSet rs = null; + final Array[] _bindArrays = new Array[1]; + try { + _bindArrays[0] = conn.createArrayOf("NUMERIC", personNos.toArray(new java.lang.Long[personNos.size()])); + ps = this.prepareStatement(62, "SELECT person_no, first_name, last_name, birth_date from person WHERE (person_no = ANY(?)) ORDER BY person_no"); + ps.setArray(1, _bindArrays[0]); + rs = ps.executeQuery(); + return rs; + } catch(Throwable e) { + tryClose(rs); + if(e instanceof SQLException) + throw (SQLException)e; + if(e instanceof RuntimeException) + throw (RuntimeException)e; + throw new RuntimeException(e); + } finally { + for(final Array _bindArray : _bindArrays) + tryClose(_bindArray); + } + } + private static final java.lang.reflect.Field[] _fields = new java.lang.reflect.Field[] { com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "personNo"), com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "firstName"), @@ -1576,7 +1600,7 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.ReverseFieldPerson.class, "first_name"), }; - private final PreparedStatement[] psCache = new PreparedStatement[62]; + private final PreparedStatement[] psCache = new PreparedStatement[63]; private PreparedStatement prepareStatement(final int index, final String sql) throws SQLException { final PreparedStatement ps = psCache[index]; diff --git a/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoBean.java b/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoBean.java index 10163a1..5d4173c 100644 --- a/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoBean.java +++ b/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoBean.java @@ -1559,6 +1559,28 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL } } + @Override + public java.sql.ResultSet getFieldPeopleResultSet(final java.util.List personNos) throws java.sql.SQLException { + PreparedStatement ps = null; + ResultSet rs = null; + try { + ps = conn.prepareStatement("SELECT person_no, first_name, last_name, birth_date from person WHERE " + com.moparisthebest.jdbc.util.InListUtil.toInList("person_no", personNos) + " ORDER BY person_no"); + int psParamCount = 0; + for(final java.lang.Long _bindInListParam : personNos) + ps.setObject(++psParamCount, _bindInListParam); + rs = ps.executeQuery(); + return new com.moparisthebest.jdbc.StatementClosingResultSet(rs, ps); + } catch(Throwable e) { + tryClose(rs); + tryClose(ps); + if(e instanceof SQLException) + throw (SQLException)e; + if(e instanceof RuntimeException) + throw (RuntimeException)e; + throw new RuntimeException(e); + } + } + private static final java.lang.reflect.Field[] _fields = new java.lang.reflect.Field[] { com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "personNo"), com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "firstName"), diff --git a/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoBindBean.java b/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoBindBean.java index 0b167f9..58f5251 100644 --- a/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoBindBean.java +++ b/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoBindBean.java @@ -1559,6 +1559,28 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL } } + @Override + public java.sql.ResultSet getFieldPeopleResultSet(final java.util.List personNos) throws java.sql.SQLException { + PreparedStatement ps = null; + ResultSet rs = null; + try { + ps = conn.prepareStatement("SELECT person_no, first_name, last_name, birth_date from person WHERE " + com.moparisthebest.jdbc.util.InListUtil.toInList("person_no", personNos) + " ORDER BY person_no"); + int psParamCount = 0; + for(final java.lang.Long _bindInListParam : personNos) + ps.setObject(++psParamCount, _bindInListParam); + rs = ps.executeQuery(); + return new com.moparisthebest.jdbc.StatementClosingResultSet(rs, ps); + } catch(Throwable e) { + tryClose(rs); + tryClose(ps); + if(e instanceof SQLException) + throw (SQLException)e; + if(e instanceof RuntimeException) + throw (RuntimeException)e; + throw new RuntimeException(e); + } + } + private static final java.lang.reflect.Field[] _fields = new java.lang.reflect.Field[] { com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "personNo"), com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "firstName"), diff --git a/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoOracleBean.java b/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoOracleBean.java index baafb49..d2821a0 100644 --- a/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoOracleBean.java +++ b/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoOracleBean.java @@ -1561,6 +1561,30 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL } } + @Override + public java.sql.ResultSet getFieldPeopleResultSet(final java.util.List personNos) throws java.sql.SQLException { + PreparedStatement ps = null; + ResultSet rs = null; + final Array[] _bindArrays = new Array[1]; + try { + _bindArrays[0] = conn.unwrap(oracle.jdbc.OracleConnection.class).createOracleArray("ARRAY_NUM_TYPE", personNos.toArray(new java.lang.Long[personNos.size()])); + ps = this.prepareStatement(62, "SELECT person_no, first_name, last_name, birth_date from person WHERE (person_no IN(select column_value from table(?))) ORDER BY person_no"); + ps.setArray(1, _bindArrays[0]); + rs = ps.executeQuery(); + return rs; + } catch(Throwable e) { + tryClose(rs); + if(e instanceof SQLException) + throw (SQLException)e; + if(e instanceof RuntimeException) + throw (RuntimeException)e; + throw new RuntimeException(e); + } finally { + for(final Array _bindArray : _bindArrays) + tryClose(_bindArray); + } + } + private static final java.lang.reflect.Field[] _fields = new java.lang.reflect.Field[] { com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "personNo"), com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "firstName"), @@ -1576,7 +1600,7 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.ReverseFieldPerson.class, "first_name"), }; - private final PreparedStatement[] psCache = new PreparedStatement[62]; + private final PreparedStatement[] psCache = new PreparedStatement[63]; private PreparedStatement prepareStatement(final int index, final String sql) throws SQLException { final PreparedStatement ps = psCache[index]; diff --git a/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoUnNestBean.java b/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoUnNestBean.java index 5df3775..239b6c6 100644 --- a/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoUnNestBean.java +++ b/test/src/test/snapshot/com/moparisthebest/jdbc/codegen/QmDaoUnNestBean.java @@ -1561,6 +1561,30 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL } } + @Override + public java.sql.ResultSet getFieldPeopleResultSet(final java.util.List personNos) throws java.sql.SQLException { + PreparedStatement ps = null; + ResultSet rs = null; + final Array[] _bindArrays = new Array[1]; + try { + _bindArrays[0] = conn.createArrayOf("NUMERIC", personNos.toArray(new java.lang.Long[personNos.size()])); + ps = this.prepareStatement(62, "SELECT person_no, first_name, last_name, birth_date from person WHERE (person_no IN(UNNEST(?))) ORDER BY person_no"); + ps.setArray(1, _bindArrays[0]); + rs = ps.executeQuery(); + return rs; + } catch(Throwable e) { + tryClose(rs); + if(e instanceof SQLException) + throw (SQLException)e; + if(e instanceof RuntimeException) + throw (RuntimeException)e; + throw new RuntimeException(e); + } finally { + for(final Array _bindArray : _bindArrays) + tryClose(_bindArray); + } + } + private static final java.lang.reflect.Field[] _fields = new java.lang.reflect.Field[] { com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "personNo"), com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "firstName"), @@ -1576,7 +1600,7 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.ReverseFieldPerson.class, "first_name"), }; - private final PreparedStatement[] psCache = new PreparedStatement[62]; + private final PreparedStatement[] psCache = new PreparedStatement[63]; private PreparedStatement prepareStatement(final int index, final String sql) throws SQLException { final PreparedStatement ps = psCache[index]; diff --git a/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoAnyBean.java b/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoAnyBean.java index 7f0f3eb..025cec2 100644 --- a/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoAnyBean.java +++ b/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoAnyBean.java @@ -1278,6 +1278,30 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL } } + @Override + public java.sql.ResultSet getFieldPeopleResultSet(final java.util.List personNos) throws java.sql.SQLException { + PreparedStatement ps = null; + ResultSet rs = null; + final Array[] _bindArrays = new Array[1]; + try { + _bindArrays[0] = conn.createArrayOf("NUMERIC", personNos.toArray(new java.lang.Long[personNos.size()])); + ps = this.prepareStatement(48, "SELECT person_no, first_name, last_name, birth_date from person WHERE (person_no = ANY(?)) ORDER BY person_no"); + ps.setArray(1, _bindArrays[0]); + rs = ps.executeQuery(); + return rs; + } catch(Throwable e) { + tryClose(rs); + if(e instanceof SQLException) + throw (SQLException)e; + if(e instanceof RuntimeException) + throw (RuntimeException)e; + throw new RuntimeException(e); + } finally { + for(final Array _bindArray : _bindArrays) + tryClose(_bindArray); + } + } + private static final java.lang.reflect.Field[] _fields = new java.lang.reflect.Field[] { com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "personNo"), com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "firstName"), @@ -1293,7 +1317,7 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.ReverseFieldPerson.class, "first_name"), }; - private final PreparedStatement[] psCache = new PreparedStatement[48]; + private final PreparedStatement[] psCache = new PreparedStatement[49]; private PreparedStatement prepareStatement(final int index, final String sql) throws SQLException { final PreparedStatement ps = psCache[index]; diff --git a/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoBean.java b/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoBean.java index 4c48ed9..9b8f321 100644 --- a/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoBean.java +++ b/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoBean.java @@ -1276,6 +1276,28 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL } } + @Override + public java.sql.ResultSet getFieldPeopleResultSet(final java.util.List personNos) throws java.sql.SQLException { + PreparedStatement ps = null; + ResultSet rs = null; + try { + ps = conn.prepareStatement("SELECT person_no, first_name, last_name, birth_date from person WHERE " + com.moparisthebest.jdbc.util.InListUtil.toInList("person_no", personNos) + " ORDER BY person_no"); + int psParamCount = 0; + for(final java.lang.Long _bindInListParam : personNos) + ps.setObject(++psParamCount, _bindInListParam); + rs = ps.executeQuery(); + return new com.moparisthebest.jdbc.StatementClosingResultSet(rs, ps); + } catch(Throwable e) { + tryClose(rs); + tryClose(ps); + if(e instanceof SQLException) + throw (SQLException)e; + if(e instanceof RuntimeException) + throw (RuntimeException)e; + throw new RuntimeException(e); + } + } + private static final java.lang.reflect.Field[] _fields = new java.lang.reflect.Field[] { com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "personNo"), com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "firstName"), diff --git a/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoBindBean.java b/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoBindBean.java index 017fda4..754fb74 100644 --- a/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoBindBean.java +++ b/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoBindBean.java @@ -1276,6 +1276,28 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL } } + @Override + public java.sql.ResultSet getFieldPeopleResultSet(final java.util.List personNos) throws java.sql.SQLException { + PreparedStatement ps = null; + ResultSet rs = null; + try { + ps = conn.prepareStatement("SELECT person_no, first_name, last_name, birth_date from person WHERE " + com.moparisthebest.jdbc.util.InListUtil.toInList("person_no", personNos) + " ORDER BY person_no"); + int psParamCount = 0; + for(final java.lang.Long _bindInListParam : personNos) + ps.setObject(++psParamCount, _bindInListParam); + rs = ps.executeQuery(); + return new com.moparisthebest.jdbc.StatementClosingResultSet(rs, ps); + } catch(Throwable e) { + tryClose(rs); + tryClose(ps); + if(e instanceof SQLException) + throw (SQLException)e; + if(e instanceof RuntimeException) + throw (RuntimeException)e; + throw new RuntimeException(e); + } + } + private static final java.lang.reflect.Field[] _fields = new java.lang.reflect.Field[] { com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "personNo"), com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "firstName"), diff --git a/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoOracleBean.java b/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoOracleBean.java index 8b51637..9e7fee6 100644 --- a/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoOracleBean.java +++ b/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoOracleBean.java @@ -1278,6 +1278,30 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL } } + @Override + public java.sql.ResultSet getFieldPeopleResultSet(final java.util.List personNos) throws java.sql.SQLException { + PreparedStatement ps = null; + ResultSet rs = null; + final Array[] _bindArrays = new Array[1]; + try { + _bindArrays[0] = conn.unwrap(oracle.jdbc.OracleConnection.class).createOracleArray("ARRAY_NUM_TYPE", personNos.toArray(new java.lang.Long[personNos.size()])); + ps = this.prepareStatement(48, "SELECT person_no, first_name, last_name, birth_date from person WHERE (person_no IN(select column_value from table(?))) ORDER BY person_no"); + ps.setArray(1, _bindArrays[0]); + rs = ps.executeQuery(); + return rs; + } catch(Throwable e) { + tryClose(rs); + if(e instanceof SQLException) + throw (SQLException)e; + if(e instanceof RuntimeException) + throw (RuntimeException)e; + throw new RuntimeException(e); + } finally { + for(final Array _bindArray : _bindArrays) + tryClose(_bindArray); + } + } + private static final java.lang.reflect.Field[] _fields = new java.lang.reflect.Field[] { com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "personNo"), com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "firstName"), @@ -1293,7 +1317,7 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.ReverseFieldPerson.class, "first_name"), }; - private final PreparedStatement[] psCache = new PreparedStatement[48]; + private final PreparedStatement[] psCache = new PreparedStatement[49]; private PreparedStatement prepareStatement(final int index, final String sql) throws SQLException { final PreparedStatement ps = psCache[index]; diff --git a/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoUnNestBean.java b/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoUnNestBean.java index 98de6b9..01741cb 100644 --- a/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoUnNestBean.java +++ b/test/src/test/snapshot/jdk6/com/moparisthebest/jdbc/codegen/QmDaoUnNestBean.java @@ -1278,6 +1278,30 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL } } + @Override + public java.sql.ResultSet getFieldPeopleResultSet(final java.util.List personNos) throws java.sql.SQLException { + PreparedStatement ps = null; + ResultSet rs = null; + final Array[] _bindArrays = new Array[1]; + try { + _bindArrays[0] = conn.createArrayOf("NUMERIC", personNos.toArray(new java.lang.Long[personNos.size()])); + ps = this.prepareStatement(48, "SELECT person_no, first_name, last_name, birth_date from person WHERE (person_no IN(UNNEST(?))) ORDER BY person_no"); + ps.setArray(1, _bindArrays[0]); + rs = ps.executeQuery(); + return rs; + } catch(Throwable e) { + tryClose(rs); + if(e instanceof SQLException) + throw (SQLException)e; + if(e instanceof RuntimeException) + throw (RuntimeException)e; + throw new RuntimeException(e); + } finally { + for(final Array _bindArray : _bindArrays) + tryClose(_bindArray); + } + } + private static final java.lang.reflect.Field[] _fields = new java.lang.reflect.Field[] { com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "personNo"), com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.FieldPerson.class, "firstName"), @@ -1293,7 +1317,7 @@ final java.lang.Long ret = com.moparisthebest.jdbc.util.ResultSetUtil.getObjectL com.moparisthebest.jdbc.util.ReflectionUtil.getAccessibleField(com.moparisthebest.jdbc.dto.ReverseFieldPerson.class, "first_name"), }; - private final PreparedStatement[] psCache = new PreparedStatement[48]; + private final PreparedStatement[] psCache = new PreparedStatement[49]; private PreparedStatement prepareStatement(final int index, final String sql) throws SQLException { final PreparedStatement ps = psCache[index];