| java.lang.Object com.caucho.db.table.Column com.caucho.db.table.BinaryColumn
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() | public KeyCompare | getIndexKeyCompare() Returns the key compare for the column. | public Class | getJavaType() Returns the java type. | public int | getLength() Returns the column's size. | public String | getString(byte[] block, int rowOffset) | public int | getTypeCode() Returns the type code for the column. | public boolean | isEqual(byte[] block1, int rowOffset1, byte[] block2, int rowOffset2) Returns true if the items in the given rows match. | public boolean | isEqual(byte[] block, int rowOffset, byte[] buffer, int offset, int length) Returns true if the bytes match. | public boolean | isEqual(byte[] block, int rowOffset, String value) | 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 | setString(Transaction xa, byte[] block, int rowOffset, String str) Sets the string value. | public String | toString() |
BinaryColumn | BinaryColumn(Row row, String name, int maxLength)(Code) | | Creates a binary column.
Parameters: columnOffset - the offset within the row Parameters: maxLength - the maximum length of the binary |
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 declaration size
|
getIndexKeyCompare | public KeyCompare getIndexKeyCompare()(Code) | | Returns the key compare for the column.
|
getJavaType | public Class getJavaType()(Code) | | Returns the java type.
|
getLength | public int getLength()(Code) | | Returns the column's size.
|
getString | public String getString(byte[] block, int rowOffset)(Code) | | |
getTypeCode | public int getTypeCode()(Code) | | Returns the type code for the column.
|
isEqual | public boolean isEqual(byte[] block1, int rowOffset1, byte[] block2, int rowOffset2)(Code) | | Returns true if the items in the given rows match.
|
isEqual | public boolean isEqual(byte[] block, int rowOffset, byte[] buffer, int offset, int length)(Code) | | Returns true if the bytes match.
|
isEqual | public boolean isEqual(byte[] block, int rowOffset, String value)(Code) | | |
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 |
setString | void setString(Transaction xa, byte[] block, int rowOffset, String str)(Code) | | Sets the string value.
Parameters: block - the buffer to store the row Parameters: rowOffset - the offset into the row Parameters: str - the string value |
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)
|
|
|