| java.lang.Object com.caucho.db.table.Column com.caucho.db.table.IntColumn
IntColumn | class IntColumn extends Column (Code) | | Represents a 32-bit integer column.
|
Method Summary | |
void | delete(Transaction xa, byte[] block, int rowOffset) Deleting the row, based on the column. | int | evalToBuffer(byte[] block, int rowOffset, byte[] buffer, int bufferOffset) Evaluate to a buffer. | public void | evalToResult(byte[] block, int rowOffset, SelectResult result) Evaluates the column to a stream. | public int | getDeclarationSize() Returns the column's declaration size. | public KeyCompare | getIndexKeyCompare() Returns the key compare for the column. | public int | getInteger(byte[] block, int rowOffset) Returns a int value from the column. | public Class | getJavaType() Returns the column's Java type. | public int | getLength() Returns the column's size. | public long | getLong(byte[] block, int rowOffset) Returns a long value from the column. | public String | getString(byte[] block, int rowOffset) Returns a String value from the column. | public int | getTypeCode() Returns the column's type code. | public boolean | isEqual(byte[] block1, int rowOffset1, byte[] block2, int rowOffset2) Returns true if the items in the given rows match. | public void | set(TableIterator iter, Expr expr, QueryContext context) Sets based on an iterator. | void | setExpr(Transaction xa, byte[] block, int rowOffset, Expr expr, QueryContext context) Sets the column based on an expression. | void | setIndex(Transaction xa, byte[] block, int rowOffset, long rowAddr, QueryContext context) Sets any index for the column. | void | setInteger(Transaction xa, byte[] block, int rowOffset, int value) Sets an integer value in the column. | void | setLong(Transaction xa, byte[] block, int rowOffset, long value) Sets a long value in the column. | void | setString(Transaction xa, byte[] block, int rowOffset, String str) Sets a string value in the column. |
IntColumn | IntColumn(Row row, String name)(Code) | | Creates a utf-8 string column.
Parameters: columnOffset - the offset within the row Parameters: maxLength - the maximum length of the string |
delete | void delete(Transaction xa, byte[] block, int rowOffset) throws SQLException(Code) | | Deleting the row, based on the column.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block Parameters: expr - the expression to store |
evalToBuffer | int evalToBuffer(byte[] block, int rowOffset, byte[] buffer, int bufferOffset) throws SQLException(Code) | | Evaluate to a buffer.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block Parameters: buffer - the result buffer Parameters: buffer - the result buffer offset the length of the value |
evalToResult | public void evalToResult(byte[] block, int rowOffset, SelectResult result)(Code) | | Evaluates the column to a stream.
|
getDeclarationSize | public int getDeclarationSize()(Code) | | Returns the column's declaration size.
|
getIndexKeyCompare | public KeyCompare getIndexKeyCompare()(Code) | | Returns the key compare for the column.
|
getInteger | public int getInteger(byte[] block, int rowOffset)(Code) | | Returns a int value from the column.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block |
getJavaType | public Class getJavaType()(Code) | | Returns the column's Java type.
|
getLength | public int getLength()(Code) | | Returns the column's size.
|
getLong | public long getLong(byte[] block, int rowOffset)(Code) | | Returns a long value from the column.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block |
getString | public String getString(byte[] block, int rowOffset)(Code) | | Returns a String value from the column.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block |
getTypeCode | public int getTypeCode()(Code) | | Returns the column's type code.
|
isEqual | public boolean isEqual(byte[] block1, int rowOffset1, byte[] block2, int rowOffset2)(Code) | | Returns true if the items in the given rows match.
|
setExpr | void setExpr(Transaction xa, byte[] block, int rowOffset, Expr expr, QueryContext context) throws SQLException(Code) | | Sets the column based on an expression.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block Parameters: expr - the expression to store |
setIndex | void setIndex(Transaction xa, byte[] block, int rowOffset, long rowAddr, QueryContext context) throws SQLException(Code) | | Sets any index for the column.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block Parameters: rowAddr - the address of the row |
setInteger | void setInteger(Transaction xa, byte[] block, int rowOffset, int value)(Code) | | Sets an integer value in the column.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block Parameters: value - the value to store |
setLong | void setLong(Transaction xa, byte[] block, int rowOffset, long value)(Code) | | Sets a long value in the column.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block Parameters: value - the value to store |
setString | void setString(Transaction xa, byte[] block, int rowOffset, String str)(Code) | | Sets a string value in the column.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block Parameters: value - the value to store |
Methods inherited from com.caucho.db.table.Column | public void close()(Code)(Java Doc) void delete(Transaction xa, byte[] block, int rowOffset) throws SQLException(Code)(Java Doc) int evalToBuffer(byte[] block, int rowOffset, byte[] buffer, int bufferOffset) throws SQLException(Code)(Java Doc) public void evalToResult(byte[] block, int rowOffset, SelectResult result) throws SQLException(Code)(Java Doc) public int getAutoIncrement()(Code)(Java Doc) int getColumnOffset()(Code)(Java Doc) public long getDate(byte[] block, int rowOffset) throws SQLException(Code)(Java Doc) abstract public int getDeclarationSize()(Code)(Java Doc) public Expr getDefault()(Code)(Java Doc) public double getDouble(byte[] block, int rowOffset) throws SQLException(Code)(Java Doc) public BTree getIndex()(Code)(Java Doc) public KeyCompare getIndexKeyCompare()(Code)(Java Doc) public int getInteger(byte[] block, int rowOffset) throws SQLException(Code)(Java Doc) public Class getJavaType()(Code)(Java Doc) abstract int getLength()(Code)(Java Doc) public long getLong(byte[] block, int rowOffset) throws SQLException(Code)(Java Doc) public String getName()(Code)(Java Doc) abstract public String getString(byte[] block, int rowOffset) throws SQLException(Code)(Java Doc) public Table getTable()(Code)(Java Doc) abstract public int getTypeCode()(Code)(Java Doc) public boolean isEqual(byte[] block, int rowOffset, byte[] buffer, int offset, int length)(Code)(Java Doc) public boolean isEqual(byte[] buffer1, int rowOffset1, byte[] buffer2, int rowOffset2)(Code)(Java Doc) public boolean isEqual(byte[] block, int rowOffset, String string)(Code)(Java Doc) public boolean isNotNull()(Code)(Java Doc) final public boolean isNull(byte[] block, int rowOffset)(Code)(Java Doc) public boolean isPrimaryKey()(Code)(Java Doc) public boolean isUnique()(Code)(Java Doc) public void set(Transaction xa, TableIterator iter, Expr expr, QueryContext context) throws SQLException(Code)(Java Doc) public void setAutoIncrement(int min)(Code)(Java Doc) void setDate(Transaction xa, byte[] block, int rowOffset, double value) throws SQLException(Code)(Java Doc) public void setDefault(Expr expr)(Code)(Java Doc) void setDouble(Transaction xa, byte[] block, int rowOffset, double value) throws SQLException(Code)(Java Doc) void setExpr(Transaction xa, byte[] block, int rowOffset, Expr expr, QueryContext context) throws SQLException(Code)(Java Doc) public void setIndex(BTree index)(Code)(Java Doc) void setIndex(Transaction xa, byte[] block, int rowOffset, long rowAddr, QueryContext context) throws SQLException(Code)(Java Doc) void setInteger(Transaction xa, byte[] block, int rowOffset, int value) throws SQLException(Code)(Java Doc) void setLong(Transaction xa, byte[] block, int rowOffset, long value) throws SQLException(Code)(Java Doc) final protected void setNonNull(byte[] block, int rowOffset)(Code)(Java Doc) public void setNotNull()(Code)(Java Doc) final public void setNull(byte[] block, int rowOffset)(Code)(Java Doc) public void setPrimaryKey(boolean primaryKey)(Code)(Java Doc) abstract void setString(Transaction xa, byte[] block, int rowOffset, String value) throws SQLException(Code)(Java Doc) void setTable(Table table)(Code)(Java Doc) public void setUnique()(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|