mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-22 00:52:16 -05:00
Fix for java6
This commit is contained in:
parent
05ac1d3f84
commit
9f00f4924f
@ -8,6 +8,10 @@ import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
//IFJAVA8_START
|
||||
import java.util.stream.Stream;
|
||||
//IFJAVA8_END
|
||||
|
||||
@JdbcMapper.Mapper(
|
||||
cachePreparedStatements = JdbcMapper.OptionalBool.FALSE
|
||||
, allowReflection = JdbcMapper.OptionalBool.TRUE
|
||||
@ -157,10 +161,10 @@ public interface QmDao extends JdbcMapper {
|
||||
@SQL(selectThreePeople)
|
||||
ResultSetIterable<FieldPerson> getThreePeopleResultSetIterable(long personNo1, long personNo2, long personNo3) throws SQLException;
|
||||
|
||||
//IFJAVA 8_START
|
||||
//IFJAVA8_START
|
||||
|
||||
@SQL(selectThreePeople)
|
||||
java.util.stream.Stream<FieldPerson> getThreePeopleStream(long personNo1, long personNo2, long personNo3) throws SQLException;
|
||||
Stream<FieldPerson> getThreePeopleStream(long personNo1, long personNo2, long personNo3) throws SQLException;
|
||||
|
||||
//IFJAVA 8_END
|
||||
//IFJAVA8_END
|
||||
}
|
||||
|
@ -12,6 +12,10 @@ import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
//IFJAVA8_START
|
||||
import java.util.stream.Stream;
|
||||
//IFJAVA8_END
|
||||
|
||||
import static com.moparisthebest.jdbc.TryClose.tryClose;
|
||||
|
||||
public class QueryMapperQmDao implements QmDao {
|
||||
@ -248,7 +252,7 @@ public class QueryMapperQmDao implements QmDao {
|
||||
FieldPerson.class, personNo1, personNo2, personNo3);
|
||||
}
|
||||
|
||||
//IFJAVA 8_START
|
||||
//IFJAVA8_START
|
||||
|
||||
@Override
|
||||
public java.util.stream.Stream<FieldPerson> getThreePeopleStream(final long personNo1, final long personNo2, final long personNo3) throws SQLException {
|
||||
@ -256,5 +260,5 @@ public class QueryMapperQmDao implements QmDao {
|
||||
FieldPerson.class, personNo1, personNo2, personNo3);
|
||||
}
|
||||
|
||||
//IFJAVA 8_END
|
||||
//IFJAVA8_END
|
||||
}
|
||||
|
@ -454,7 +454,7 @@ public class QueryMapperTest {
|
||||
assertArrayEquals(people, fromDb.toArray());
|
||||
}
|
||||
|
||||
//IFJAVA 8_START
|
||||
//IFJAVA8_START
|
||||
|
||||
@Test
|
||||
public void testStream() throws SQLException {
|
||||
@ -465,7 +465,7 @@ public class QueryMapperTest {
|
||||
assertArrayEquals(people, fromDb.toArray());
|
||||
}
|
||||
|
||||
//IFJAVA 8_END
|
||||
//IFJAVA8_END
|
||||
|
||||
/*
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user