public class BytesType extends TnAbstractValueType
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
BytesType.BlobTrait |
static class |
BytesType.BytesTrait |
static class |
BytesType.StreamTrait |
static interface |
BytesType.Trait |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static BytesType.Trait |
BLOB_TRAIT |
static BytesType.Trait |
BYTES_TRAIT |
static byte[] |
EMPTY_BYTES |
static BytesType.Trait |
STREAM_TRAIT |
protected BytesType.Trait |
trait |
_sqlType| コンストラクタと説明 |
|---|
BytesType(BytesType.Trait trait) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
bindValue(Connection conn,
CallableStatement cs,
String parameterName,
Object value) |
void |
bindValue(Connection conn,
PreparedStatement ps,
int index,
Object value)
Bind the value.
|
Object |
getValue(CallableStatement cs,
int index) |
Object |
getValue(CallableStatement cs,
String parameterName) |
Object |
getValue(ResultSet rs,
int index) |
Object |
getValue(ResultSet rs,
String columnName) |
static byte[] |
toBytes(Blob blob) |
static byte[] |
toBytes(InputStream is) |
getSqlType, registerOutParameter, registerOutParameter, setNull, setNullpublic static final byte[] EMPTY_BYTES
public static final BytesType.Trait BYTES_TRAIT
public static final BytesType.Trait STREAM_TRAIT
public static final BytesType.Trait BLOB_TRAIT
protected BytesType.Trait trait
public BytesType(BytesType.Trait trait)
public void bindValue(Connection conn, PreparedStatement ps, int index, Object value) throws SQLException
ValueTypeconn - The connection for the database. (NotNull)ps - The prepared statement. (NotNull)index - The parameter index.value - The parameter value. (NullAllowed)SQLException - When it fails to handle the SQL.public void bindValue(Connection conn, CallableStatement cs, String parameterName, Object value) throws SQLException
SQLExceptionpublic Object getValue(ResultSet rs, int index) throws SQLException
SQLExceptionpublic Object getValue(ResultSet rs, String columnName) throws SQLException
SQLExceptionpublic Object getValue(CallableStatement cs, int index) throws SQLException
SQLExceptionpublic Object getValue(CallableStatement cs, String parameterName) throws SQLException
SQLExceptionpublic static byte[] toBytes(InputStream is) throws SQLException
SQLExceptionpublic static byte[] toBytes(Blob blob) throws SQLException
SQLExceptionCopyright © 2014–2015 The DBFlute Project. All rights reserved.