public final class DbUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
close(java.lang.AutoCloseable... closeables) |
static java.lang.String |
limitsClause(int from,
int to) |
static void |
setBytes(java.sql.PreparedStatement pstmt,
int index,
byte[] bytes) |
static void |
setIntZeroToNull(java.sql.PreparedStatement pstmt,
int index,
int n) |
static int |
setLimits(int index,
java.sql.PreparedStatement pstmt,
int from,
int to) |
static void |
setLongZeroToNull(java.sql.PreparedStatement pstmt,
int index,
long l) |
static void |
setString(java.sql.PreparedStatement pstmt,
int index,
java.lang.String s) |
public static void close(java.lang.AutoCloseable... closeables)
public static void setBytes(java.sql.PreparedStatement pstmt, int index, byte[] bytes) throws java.sql.SQLException
java.sql.SQLException
public static void setString(java.sql.PreparedStatement pstmt, int index, java.lang.String s) throws java.sql.SQLException
java.sql.SQLException
public static void setIntZeroToNull(java.sql.PreparedStatement pstmt, int index, int n) throws java.sql.SQLException
java.sql.SQLException
public static void setLongZeroToNull(java.sql.PreparedStatement pstmt, int index, long l) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String limitsClause(int from, int to)
public static int setLimits(int index, java.sql.PreparedStatement pstmt, int from, int to) throws java.sql.SQLException
java.sql.SQLException