| java.lang.Object com.caucho.db.table.Column
All known Subclasses: com.caucho.db.table.IntColumn, com.caucho.db.table.DoubleColumn, com.caucho.db.table.BlobColumn, com.caucho.db.table.LongColumn, com.caucho.db.table.DateColumn, com.caucho.db.table.BinaryColumn, com.caucho.db.table.NumericColumn, com.caucho.db.table.StringColumn,
Column | abstract public class Column (Code) | | |
Method Summary | |
public void | close() Cleanup of the column on table shutdown. | 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 the result. | public int | getAutoIncrement() Set if the column is unique. | int | getColumnOffset() Returns the column offset. | public long | getDate(byte[] block, int rowOffset) Gets a double value in the column. | abstract public int | getDeclarationSize() Returns the column's size (from the decl). | public Expr | getDefault() | public double | getDouble(byte[] block, int rowOffset) Sets a double value in the column. | public BTree | getIndex() Returns the index. | public KeyCompare | getIndexKeyCompare() Returns the key compare for the column. | public int | getInteger(byte[] block, int rowOffset) Sets an integer value in the column. | public Class | getJavaType() Returns the java type. | abstract int | getLength() | public long | getLong(byte[] block, int rowOffset) Sets a long value in the column. | public String | getName() Returns the column's name. | abstract public String | getString(byte[] block, int rowOffset) Gets a string value from the column. | public Table | getTable() Gets the table. | abstract public int | getTypeCode() Returns the column's code. | public boolean | isEqual(byte[] block, int rowOffset, byte[] buffer, int offset, int length) Returns true if the bytes are equal. | public boolean | isEqual(byte[] buffer1, int rowOffset1, byte[] buffer2, int rowOffset2) Returns true if the bytes are equal. | public boolean | isEqual(byte[] block, int rowOffset, String string) Returns true if the string is equal. | public boolean | isNotNull() Returns true if the column is NOT NULL. | final public boolean | isNull(byte[] block, int rowOffset) Returns true if the column is null. | public boolean | isPrimaryKey() | public boolean | isUnique() Returns true if the column is unique. | public void | set(Transaction xa, TableIterator iter, Expr expr, QueryContext context) Sets based on an iterator. | public void | setAutoIncrement(int min) | void | setDate(Transaction xa, byte[] block, int rowOffset, double value) Sets a date value in the column. | public void | setDefault(Expr expr) | void | setDouble(Transaction xa, byte[] block, int rowOffset, double value) 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. | public void | setIndex(BTree index) Sets the index. | 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. | final protected void | setNonNull(byte[] block, int rowOffset) Sets the column non-null. | public void | setNotNull() Set true if the column is NOT NULL. | final public void | setNull(byte[] block, int rowOffset) Sets the column null. | public void | setPrimaryKey(boolean primaryKey) | abstract void | setString(Transaction xa, byte[] block, int rowOffset, String value) Sets a string value in the column. | void | setTable(Table table) Sets the table. | public void | setUnique() Set if the column is unique. | public String | toString() |
BLOB | final public static int BLOB(Code) | | |
DATE | final public static int DATE(Code) | | |
DOUBLE | final public static int DOUBLE(Code) | | |
INT | final public static int INT(Code) | | |
LONG | final public static int LONG(Code) | | |
NONE | final public static int NONE(Code) | | |
NUMERIC | final public static int NUMERIC(Code) | | |
VARBINARY | final public static int VARBINARY(Code) | | |
VARCHAR | final public static int VARCHAR(Code) | | |
_columnOffset | final protected int _columnOffset(Code) | | |
_nullMask | final protected byte _nullMask(Code) | | |
_nullOffset | final protected int _nullOffset(Code) | | |
close | public void close()(Code) | | Cleanup of the column on table shutdown.
|
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 |
getAutoIncrement | public int getAutoIncrement()(Code) | | Set if the column is unique.
|
getColumnOffset | int getColumnOffset()(Code) | | Returns the column offset.
|
getDate | public long getDate(byte[] block, int rowOffset) throws SQLException(Code) | | Gets a double value in the column.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block |
getDeclarationSize | abstract public int getDeclarationSize()(Code) | | Returns the column's size (from the decl).
|
getDefault | public Expr getDefault()(Code) | | Gets the default expression
|
getDouble | public double getDouble(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 |
getIndex | public BTree getIndex()(Code) | | Returns the index.
|
getIndexKeyCompare | public KeyCompare getIndexKeyCompare()(Code) | | Returns the key compare for the column.
|
getInteger | public int getInteger(byte[] block, int rowOffset) throws SQLException(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 |
getJavaType | public Class getJavaType()(Code) | | Returns the java type.
|
getLength | abstract int getLength()(Code) | | |
getLong | public long getLong(byte[] block, int rowOffset) throws SQLException(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 |
getName | public String getName()(Code) | | Returns the column's name.
|
getString | abstract 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 | abstract public int getTypeCode()(Code) | | Returns the column's code.
|
isEqual | public boolean isEqual(byte[] block, int rowOffset, byte[] buffer, int offset, int length)(Code) | | Returns true if the bytes are equal.
|
isEqual | public boolean isEqual(byte[] buffer1, int rowOffset1, byte[] buffer2, int rowOffset2)(Code) | | Returns true if the bytes are equal.
|
isEqual | public boolean isEqual(byte[] block, int rowOffset, String string)(Code) | | Returns true if the string is equal.
|
isNotNull | public boolean isNotNull()(Code) | | Returns true if the column is NOT NULL.
|
isNull | final public boolean isNull(byte[] block, int rowOffset)(Code) | | Returns true if the column is null.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block |
isPrimaryKey | public boolean isPrimaryKey()(Code) | | Returns true if the column is a primary key
|
isUnique | public boolean isUnique()(Code) | | Returns true if the column is unique.
|
setAutoIncrement | public void setAutoIncrement(int min)(Code) | | Returns true if the column is auto increment
|
setDate | void setDate(Transaction xa, byte[] block, int rowOffset, double value) throws SQLException(Code) | | Sets a date 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 |
setDefault | public void setDefault(Expr expr)(Code) | | Sets the default expression
|
setDouble | void setDouble(Transaction xa, byte[] block, int rowOffset, double value) 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 | public void setIndex(BTree index)(Code) | | Sets the index.
|
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) throws SQLException(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) throws SQLException(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 |
setNonNull | final protected void setNonNull(byte[] block, int rowOffset)(Code) | | Sets the column non-null.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block |
setNotNull | public void setNotNull()(Code) | | Set true if the column is NOT NULL.
|
setNull | final public void setNull(byte[] block, int rowOffset)(Code) | | Sets the column null.
Parameters: block - the block's buffer Parameters: rowOffset - the offset of the row in the block |
setPrimaryKey | public void setPrimaryKey(boolean primaryKey)(Code) | | Returns true if the column is a primary key
|
setString | abstract void setString(Transaction xa, byte[] block, int rowOffset, String value) 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 |
setTable | void setTable(Table table)(Code) | | Sets the table.
|
setUnique | public void setUnique()(Code) | | Set if the column is unique.
|
|
|