public class NibbleColumn
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
LENGTH_SIZE_BINARY |
protected static int |
LENGTH_SIZE_INT16 |
protected static int |
LENGTH_SIZE_INT32 |
protected static int |
LENGTH_SIZE_INT8 |
protected java.nio.ByteBuffer |
mByteBuffer
데이타를 byte array 형태로 담은 버퍼.
|
protected boolean |
mIsNull |
protected int |
mLength
데이타의 길이.
|
protected java.util.Set<java.lang.Integer> |
mMappedJdbcTypeSet |
protected int |
mMaxBinaryLength |
protected java.util.List<java.lang.Object> |
mValues |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMappedJdbcTypeSet(int aType) |
protected void |
clear() |
void |
clearCurrentColumnValue() |
void |
clearCurrentValue() |
void |
clearValues()
컬럼데이터가 저장되어 있는 ArrayList를 초기화 한다.
|
DynamicArray |
createTypedDynamicArray() |
protected void |
ensureAlloc(int aByteSize) |
java.io.InputStream |
getAsciiStream() |
protected java.io.InputStream |
getAsciiStreamSub() |
java.math.BigDecimal |
getBigDecimal() |
protected java.math.BigDecimal |
getBigDecimalSub() |
java.io.InputStream |
getBinaryStream() |
protected java.io.InputStream |
getBinaryStreamSub() |
java.sql.Blob |
getBlob() |
protected java.sql.Blob |
getBlobSub() |
boolean |
getBoolean() |
protected boolean |
getBooleanSub() |
byte |
getByte() |
byte[] |
getBytes() |
protected byte[] |
getBytesSub()
nibble을 byte[]로 변환해 반환한다.
|
protected byte |
getByteSub() |
java.io.Reader |
getCharacterStream() |
protected java.io.Reader |
getCharacterStreamSub() |
java.sql.Clob |
getClob() |
protected java.sql.Clob |
getClobSub() |
int |
getColumnIndex()
컬럼의 인덱스를 가져온다.
|
ColumnInfo |
getColumnInfo() |
java.sql.Date |
getDate() |
java.sql.Date |
getDate(java.util.Calendar aCalendar) |
protected java.sql.Date |
getDateSub() |
protected java.sql.Date |
getDateSub(java.util.Calendar aCalendar) |
int |
getDBColumnType() |
java.lang.String |
getDBColumnTypeName() |
void |
getDefaultColumnInfo(ColumnInfo aColumnInfo) |
double |
getDouble() |
protected double |
getDoubleSub() |
float |
getFloat() |
protected float |
getFloatSub() |
int |
getInt() |
protected int |
getIntSub() |
long |
getLong() |
protected long |
getLongSub() |
java.util.Set<java.lang.Integer> |
getMappedJDBCTypes() |
int |
getMaxBinaryLength() |
int |
getMaxDisplaySize() |
java.lang.Object |
getObject() |
java.lang.String |
getObjectClassName() |
protected java.lang.Object |
getObjectSub() |
int |
getOctetLength()
SQL/CLI 의 SQL_DESC_OCTET_LENGTH 에 대응되는 column 의 최대 길이를 반환한다.
|
short |
getShort() |
protected short |
getShortSub() |
java.lang.String |
getString() |
protected java.lang.String |
getStringSub() |
java.sql.Time |
getTime() |
java.sql.Time |
getTime(java.util.Calendar aCalendar) |
java.sql.Timestamp |
getTimestamp() |
java.sql.Timestamp |
getTimestamp(java.util.Calendar aCalendar) |
protected java.sql.Timestamp |
getTimestampSub() |
protected java.sql.Timestamp |
getTimestampSub(java.util.Calendar aCalendar) |
protected java.sql.Time |
getTimeSub() |
protected java.sql.Time |
getTimeSub(java.util.Calendar aCalendar) |
boolean |
isArrayCompatible(DynamicArray aArray) |
boolean |
isCleared() |
boolean |
isMappedJDBCType(int aSqlType) |
boolean |
isNull() |
protected boolean |
isNullValueSet() |
boolean |
isNumberType() |
void |
loadFrom(DynamicArray aArray) |
void |
loadFrom(int aLoadIndex)
ArrayList로 부터 컬럼데이터를 읽어들인다.
|
protected void |
loadFromSub(DynamicArray aArray) |
protected void |
loadFromSub(int aLoadIndex) |
protected int |
nullLength() |
int |
prepareToWrite(CmBufferWriter aBufferWriter)
Column.writeTo(CmBufferWriter)로 에 쓸 준비를 하고, 쓸 데이타의 길이를 반환한다. |
protected void |
readAndStoreValue(CmChannel aChannel) |
void |
readFrom(CmChannel aChannel,
CmFetchResult aFetchResult)
채널로부터 컬럼데이터를 읽어와 해당하는 인덱스의 DynamicArray에 바로 저장한다.
|
protected void |
readFromSub(CmChannel aChannel) |
protected void |
readFromSub(CmChannel aChannel,
DynamicArray aArray)
채널로부터 컬럼데이터를 읽어 바로 DynamicArray에 저장한다.
|
void |
readParamsFrom(CmChannel aChannel) |
void |
readParamsFromSub(CmChannel aChannel) |
void |
setCleared(boolean aIsCleared) |
void |
setColumnIndex(int aColumnIndex)
컬럼 인덱스를 셋팅한다.
|
void |
setColumnInfo(ColumnInfo aInfo) |
void |
setMaxBinaryLength(int aMaxLength) |
protected void |
setNull() |
protected void |
setNullOrNotNull() |
protected void |
setNullValue() |
void |
setValue(java.lang.Object aValue) |
protected void |
setValueSub(java.lang.Object aValue) |
void |
storeTo()
컬럼 데이터를 ArrayList에 저장한다.
|
void |
storeTo(DynamicArray aArray) |
void |
storeTo(ListBufferHandle aBufferWriter)
List Protocol 을 위한 ByteBuffer 에 프로토콜에서 정의한 바이너리 형태로 데이타를 쓴다.
|
protected int |
toByteLength(int aNibbleLength) |
int |
writeTo(CmBufferWriter aBufferWriter)
ByteBuffer에 프로토콜에서 정의한 바이너리 형태로 데이타를 쓴다.
|
protected static final int LENGTH_SIZE_INT8
protected static final int LENGTH_SIZE_INT16
protected static final int LENGTH_SIZE_INT32
protected static final int LENGTH_SIZE_BINARY
protected int mLength
protected java.nio.ByteBuffer mByteBuffer
protected boolean mIsNull
protected int mMaxBinaryLength
protected java.util.List<java.lang.Object> mValues
protected java.util.Set<java.lang.Integer> mMappedJdbcTypeSet
protected int toByteLength(int aNibbleLength)
protected int nullLength()
public int getDBColumnType()
public java.lang.String getDBColumnTypeName()
public java.lang.String getObjectClassName()
public int getMaxDisplaySize()
protected byte getByteSub()
throws java.sql.SQLException
java.sql.SQLException - stream의 길이가 2가 아닌 경우protected byte[] getBytesSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.lang.String getStringSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.io.InputStream getBinaryStreamSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.lang.Object getObjectSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected void setValueSub(java.lang.Object aValue)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void clear()
public void getDefaultColumnInfo(ColumnInfo aColumnInfo)
public int getOctetLength()
Columnprotected final void ensureAlloc(int aByteSize)
public DynamicArray createTypedDynamicArray()
public boolean isArrayCompatible(DynamicArray aArray)
public void storeTo(DynamicArray aArray)
public void storeTo()
Columnprotected void loadFromSub(DynamicArray aArray)
protected void loadFromSub(int aLoadIndex)
public int prepareToWrite(CmBufferWriter aBufferWriter) throws java.sql.SQLException
ColumnColumn.writeTo(CmBufferWriter)로 에 쓸 준비를 하고, 쓸 데이타의 길이를 반환한다.aBufferWriter - 데이타를 쓸 ByteBuffer Writerjava.sql.SQLException - 쓸 데이타를 준비하는데 실패했을 경우public int writeTo(CmBufferWriter aBufferWriter) throws java.sql.SQLException
ColumnaBufferWriter - 데이타를 쓸 ByteBuffer Writerjava.sql.SQLException - 데이타 전송에 실패했을 경우protected void readFromSub(CmChannel aChannel) throws java.sql.SQLException
java.sql.SQLExceptionprotected void readFromSub(CmChannel aChannel, DynamicArray aArray) throws java.sql.SQLException
aChannel - 소켓통신을 위한 채널객체aArray - 컬럼데이터를 저장할 DynamicArray객체java.sql.SQLException - 정상적으로 컬럼데이터를 로드하지 못한 경우protected void readAndStoreValue(CmChannel aChannel) throws java.sql.SQLException
java.sql.SQLExceptionprotected void setNullValue()
protected boolean isNullValueSet()
protected boolean getBooleanSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected short getShortSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected int getIntSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected long getLongSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected float getFloatSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected double getDoubleSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.io.InputStream getAsciiStreamSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.io.Reader getCharacterStreamSub()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void clearCurrentColumnValue()
protected void addMappedJdbcTypeSet(int aType)
public java.util.Set<java.lang.Integer> getMappedJDBCTypes()
getMappedJDBCTypes in interface Columnprotected java.math.BigDecimal getBigDecimalSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected final java.sql.Date getDateSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.sql.Date getDateSub(java.util.Calendar aCalendar)
throws java.sql.SQLException
java.sql.SQLExceptionprotected final java.sql.Time getTimeSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.sql.Time getTimeSub(java.util.Calendar aCalendar)
throws java.sql.SQLException
java.sql.SQLExceptionprotected final java.sql.Timestamp getTimestampSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.sql.Timestamp getTimestampSub(java.util.Calendar aCalendar)
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.sql.Blob getBlobSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.sql.Clob getClobSub()
throws java.sql.SQLException
java.sql.SQLExceptionprotected void setNull()
protected void setNullOrNotNull()
public final boolean isNumberType()
isNumberType in interface Columnpublic boolean isMappedJDBCType(int aSqlType)
isMappedJDBCType in interface Columnpublic void readParamsFrom(CmChannel aChannel) throws java.sql.SQLException
readParamsFrom in interface Columnjava.sql.SQLExceptionpublic void readParamsFromSub(CmChannel aChannel) throws java.sql.SQLException
java.sql.SQLExceptionpublic void readFrom(CmChannel aChannel, CmFetchResult aFetchResult) throws java.sql.SQLException
Columnpublic int getMaxBinaryLength()
public void setMaxBinaryLength(int aMaxLength)
setMaxBinaryLength in interface Columnpublic void loadFrom(DynamicArray aArray)
public void loadFrom(int aLoadIndex)
Columnpublic void setColumnInfo(ColumnInfo aInfo)
setColumnInfo in interface Columnpublic ColumnInfo getColumnInfo()
getColumnInfo in interface Columnpublic void setValue(java.lang.Object aValue)
throws java.sql.SQLException
public boolean getBoolean()
throws java.sql.SQLException
getBoolean in interface Columnjava.sql.SQLExceptionpublic byte getByte()
throws java.sql.SQLException
public byte[] getBytes()
throws java.sql.SQLException
public short getShort()
throws java.sql.SQLException
public int getInt()
throws java.sql.SQLException
public long getLong()
throws java.sql.SQLException
public float getFloat()
throws java.sql.SQLException
public double getDouble()
throws java.sql.SQLException
public java.math.BigDecimal getBigDecimal()
throws java.sql.SQLException
getBigDecimal in interface Columnjava.sql.SQLExceptionpublic java.lang.String getString()
throws java.sql.SQLException
public java.sql.Date getDate()
throws java.sql.SQLException
public java.sql.Date getDate(java.util.Calendar aCalendar)
throws java.sql.SQLException
public java.sql.Time getTime()
throws java.sql.SQLException
public java.sql.Time getTime(java.util.Calendar aCalendar)
throws java.sql.SQLException
public java.sql.Timestamp getTimestamp()
throws java.sql.SQLException
getTimestamp in interface Columnjava.sql.SQLExceptionpublic java.sql.Timestamp getTimestamp(java.util.Calendar aCalendar)
throws java.sql.SQLException
getTimestamp in interface Columnjava.sql.SQLExceptionpublic java.io.InputStream getAsciiStream()
throws java.sql.SQLException
getAsciiStream in interface Columnjava.sql.SQLExceptionpublic java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface Columnjava.sql.SQLExceptionpublic java.io.Reader getCharacterStream()
throws java.sql.SQLException
getCharacterStream in interface Columnjava.sql.SQLExceptionpublic java.sql.Blob getBlob()
throws java.sql.SQLException
public java.sql.Clob getClob()
throws java.sql.SQLException
public java.lang.Object getObject()
throws java.sql.SQLException
public void storeTo(ListBufferHandle aBufferWriter) throws java.sql.SQLException
Columnpublic int getColumnIndex()
ColumngetColumnIndex in interface Columnpublic void setColumnIndex(int aColumnIndex)
ColumnsetColumnIndex in interface ColumnaColumnIndex - 컬럼 인덱스public void clearValues()
ColumnclearValues in interface Columnpublic void setCleared(boolean aIsCleared)
setCleared in interface Columnpublic void clearCurrentValue()
clearCurrentValue in interface Column