Package io.ebeaninternal.server.type
Class DataBind
- java.lang.Object
-
- io.ebeaninternal.server.type.DataBind
-
- Direct Known Subclasses:
DataBindCapture
public class DataBind extends Object
-
-
Constructor Summary
Constructors Constructor Description DataBind(DataTimeZone dataTimeZone, PreparedStatement pstmt, Connection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilder
append(Object entry)
Append an entry to the bind log.void
close()
Close the underlying prepared statement.int
currentPos()
void
decrementPos()
int
executeUpdate()
List<InputStream>
getInputStreams()
Return any inputStreams that have been bound (and should be closed).PreparedStatement
getPstmt()
StringBuilder
log()
Return the bind log.int
nextPos()
void
setArray(String arrayType, Object[] elements)
void
setBigDecimal(BigDecimal v)
void
setBinaryStream(InputStream inputStream, long length)
void
setBlob(byte[] bytes)
void
setBoolean(boolean v)
void
setByte(byte v)
void
setBytes(byte[] v)
void
setChar(char v)
void
setClob(String content)
void
setDate(Date v)
void
setDouble(double i)
void
setFloat(float i)
void
setInt(int i)
void
setLong(long i)
void
setNull(int jdbcType)
void
setObject(Object value)
void
setObject(Object value, int sqlType)
void
setShort(short i)
void
setString(String s)
void
setTime(Time v)
void
setTimestamp(Timestamp v)
-
-
-
Constructor Detail
-
DataBind
public DataBind(DataTimeZone dataTimeZone, PreparedStatement pstmt, Connection connection)
-
-
Method Detail
-
append
public StringBuilder append(Object entry)
Append an entry to the bind log.
-
log
public StringBuilder log()
Return the bind log.
-
close
public void close() throws SQLException
Close the underlying prepared statement.- Throws:
SQLException
-
currentPos
public int currentPos()
-
setObject
public void setObject(Object value) throws SQLException
- Throws:
SQLException
-
setObject
public void setObject(Object value, int sqlType) throws SQLException
- Throws:
SQLException
-
setNull
public void setNull(int jdbcType) throws SQLException
- Throws:
SQLException
-
nextPos
public int nextPos()
-
decrementPos
public void decrementPos()
-
executeUpdate
public int executeUpdate() throws SQLException
- Throws:
SQLException
-
getPstmt
public PreparedStatement getPstmt()
-
setString
public void setString(String s) throws SQLException
- Throws:
SQLException
-
setInt
public void setInt(int i) throws SQLException
- Throws:
SQLException
-
setLong
public void setLong(long i) throws SQLException
- Throws:
SQLException
-
setShort
public void setShort(short i) throws SQLException
- Throws:
SQLException
-
setFloat
public void setFloat(float i) throws SQLException
- Throws:
SQLException
-
setDouble
public void setDouble(double i) throws SQLException
- Throws:
SQLException
-
setBigDecimal
public void setBigDecimal(BigDecimal v) throws SQLException
- Throws:
SQLException
-
setDate
public void setDate(Date v) throws SQLException
- Throws:
SQLException
-
setTimestamp
public void setTimestamp(Timestamp v) throws SQLException
- Throws:
SQLException
-
setTime
public void setTime(Time v) throws SQLException
- Throws:
SQLException
-
setBoolean
public void setBoolean(boolean v) throws SQLException
- Throws:
SQLException
-
setBytes
public void setBytes(byte[] v) throws SQLException
- Throws:
SQLException
-
setByte
public void setByte(byte v) throws SQLException
- Throws:
SQLException
-
setChar
public void setChar(char v) throws SQLException
- Throws:
SQLException
-
getInputStreams
public List<InputStream> getInputStreams()
Return any inputStreams that have been bound (and should be closed). This is used for batched statement execution only.
-
setBinaryStream
public void setBinaryStream(InputStream inputStream, long length) throws SQLException
- Throws:
SQLException
-
setBlob
public void setBlob(byte[] bytes) throws SQLException
- Throws:
SQLException
-
setClob
public void setClob(String content) throws SQLException
- Throws:
SQLException
-
setArray
public void setArray(String arrayType, Object[] elements) throws SQLException
- Throws:
SQLException
-
-