| 程序包 | 说明 |
|---|---|
| cn.gongler.util.db | |
| cn.gongler.util.function | |
| cn.gongler.util.net.client |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,R> R |
DbUtil.Stream(Connection conn,
ExceptionFunction<ResultSet,T> t,
ExceptionFunction<java.util.stream.Stream<T>,R> mapper,
String query,
Object... args) |
static <T,R> R |
DbUtil.Stream(Connection conn,
ExceptionFunction<ResultSet,T> t,
ExceptionFunction<java.util.stream.Stream<T>,R> mapper,
String query,
Object... args) |
static <T> java.util.stream.Stream<T> |
DbUtil.Stream(Connection conn,
ExceptionFunction<ResultSet,T> t,
String query,
Object... args)
try (Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@222.223.9.162:21521:tsgjgps1", "ts", "tsgprs1")) {
System.out.println("" + conn);
long count = Stream(conn, r -> r.getString("pack_note"), "select * from ext_pack_send_queue where rownum《?"
|
static <T> java.util.stream.Stream<T> |
DbUtil.Stream(ResultSet rs,
ExceptionFunction<ResultSet,T> t) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
ExceptionUnaryOperator<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
default <V> ExceptionFunction<T,V> |
ExceptionFunction.andThen(ExceptionFunction<? super R,? extends V> after)
Returns a composed function that first applies this function to its
input, and then applies the
after function to the result. |
default <V> ExceptionFunction<V,R> |
ExceptionFunction.compose(ExceptionFunction<? super V,? extends T> before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
static <T> ExceptionFunction<T,T> |
ExceptionFunction.identity()
Returns a function that always returns its input argument.
|
| 限定符和类型 | 方法和说明 |
|---|---|
default <V> ExceptionFunction<T,V> |
ExceptionFunction.andThen(ExceptionFunction<? super R,? extends V> after)
Returns a composed function that first applies this function to its
input, and then applies the
after function to the result. |
default <V> ExceptionFunction<V,R> |
ExceptionFunction.compose(ExceptionFunction<? super V,? extends T> before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
| 构造器和说明 |
|---|
TcpClient(String host,
int port,
java.util.function.Supplier<IReceiveHandler<Pack>> recvFactory,
ExceptionFunction<Pack,byte[]> packToBytes,
ExceptionFunction<ITcpClientContext,Pack> connPackFactory,
ExceptionFunction<ITcpClientContext,Pack> heartPackFactory) |
TcpClient(String host,
int port,
java.util.function.Supplier<IReceiveHandler<Pack>> recvFactory,
ExceptionFunction<Pack,byte[]> packToBytes,
ExceptionFunction<ITcpClientContext,Pack> connPackFactory,
ExceptionFunction<ITcpClientContext,Pack> heartPackFactory) |
TcpClient(String host,
int port,
java.util.function.Supplier<IReceiveHandler<Pack>> recvFactory,
ExceptionFunction<Pack,byte[]> packToBytes,
ExceptionFunction<ITcpClientContext,Pack> connPackFactory,
ExceptionFunction<ITcpClientContext,Pack> heartPackFactory) |
Copyright © 2022. All rights reserved.