| java.lang.Object com.caucho.db.table.Column com.caucho.db.table.NumericColumn
NumericColumn | class NumericColumn extends Column (Code) | | Represents a numeric 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 double | getDouble(Transaction xa, byte[] block, int rowOffset) Sets a double value in the column. | public Class | getJavaType() Returns the column's Java type. | public int | getLength() | long | getNumeric(byte[] block, int rowOffset) Gets a long value from the column. | public int | getPrecision() Returns the precision. | public int | getScale() Returns the scale. | public String | getString(byte[] block, int rowOffset) Gets 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. | public void | setDouble(Transaction xa, byte[] block, int rowOffset, double v) Sets a double value in the column. | 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 | setNumeric(Transaction xa, byte[] block, int rowOffset, long value) Sets a numeric value in the column. | void | setString(Transaction xa, byte[] block, int rowOffset, String str) Sets a string value in the column. |
NumericColumn | NumericColumn(Row row, String name, int precision, int scale)(Code) | | Creates a date column.
Parameters: row - the row the column is being added to Parameters: name - the column's name |
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 |
getDeclarationSize | public int getDeclarationSize()(Code) | | Returns the column's declaration size.
|
getDouble | public double getDouble(Transaction xa, byte[] block, int rowOffset) throws SQLException(Code) | | Sets a double 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 |
getJavaType | public Class getJavaType()(Code) | | Returns the column's Java type.
|
getLength | public int getLength()(Code) | | Returns the column's length
|
getNumeric | long getNumeric(byte[] block, int rowOffset)(Code) | | Gets a long value from the column.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block |
getPrecision | public int getPrecision()(Code) | | Returns the precision.
|
getScale | public int getScale()(Code) | | Returns the scale.
|
getString | public String getString(byte[] block, int rowOffset) throws SQLException(Code) | | Gets 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.
|
setDouble | public void setDouble(Transaction xa, byte[] block, int rowOffset, double v) throws SQLException(Code) | | Sets a double 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 |
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 |
setNumeric | void setNumeric(Transaction xa, byte[] block, int rowOffset, long value)(Code) | | Sets a numeric 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) throws SQLException(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)
|
|
|