Quadcap Embeddable Database

com.quadcap.sql.Row Class Reference

Inheritance diagram for com.quadcap.sql.Row:

com.quadcap.sql.ItemsRow com.quadcap.sql.JoinCrossRow com.quadcap.sql.JoinMapRow com.quadcap.sql.JoinNaturalRow com.quadcap.sql.LazyRow com.quadcap.sql.MapRow List of all members.

Detailed Description

Essentially, a vector with one-based indices.

Author:
Stan Bailes

Definition at line 61 of file Row.java.

Public Member Functions

 Row ()
 Default constructor.

 Row (int size)
 Construct an empty row with the specified number of columns.

 Row (Row r, Tuple tuple) throws SQLException
 Construct a row as a copy of another row.

 Row (ArrayList v)
 Construct a row using a ArrayList of values.

int size ()
 Return the number of values in this row.

int getBlobCount () throws IOException
 Return the number of BLOB values in this row.

Value item (int i) throws SQLException
 Return the specified value (one-based) from the row.

Value getItem (int i)
 Non-checked access: return the specified value (one-based) from the row.

void set (int i, Value val) throws SQLException
 Set value in the specified position (one-based) to a new value.

boolean isUpdateable (int i)
 Is the specified element updatable?

void addElement (Value val)
String toString ()

Package Attributes

int blobCnt = 0
ArrayList v = null


Constructor & Destructor Documentation

com.quadcap.sql.Row.Row  ) 
 

Default constructor.

Definition at line 68 of file Row.java.

References com.quadcap.sql.Row.v.

Referenced by com.quadcap.sql.ItemsRow.ItemsRow().

com.quadcap.sql.Row.Row int  size  ) 
 

Construct an empty row with the specified number of columns.

Definition at line 73 of file Row.java.

References com.quadcap.sql.Row.v.

com.quadcap.sql.Row.Row Row  r,
Tuple  tuple
throws SQLException
 

Construct a row as a copy of another row.

Definition at line 81 of file Row.java.

References com.quadcap.sql.Row.blobCnt, com.quadcap.sql.types.Type.convert(), and com.quadcap.sql.Row.v.

com.quadcap.sql.Row.Row ArrayList  v  ) 
 

Construct a row using a ArrayList of values.

The vector is zero-based, even though the row is one-based!

Definition at line 99 of file Row.java.

References com.quadcap.sql.Row.blobCnt.


Member Function Documentation

void com.quadcap.sql.Row.addElement Value  val  ) 
 

Definition at line 156 of file Row.java.

References com.quadcap.sql.Row.addElement(), com.quadcap.sql.Row.blobCnt, and com.quadcap.sql.Row.v.

Referenced by com.quadcap.sql.Row.addElement(), and com.quadcap.sql.VectorExpression.getValues().

int com.quadcap.sql.Row.getBlobCount  )  throws IOException
 

Return the number of BLOB values in this row.

(We can shortcut some possibly lengthy operations if we know there are no blobs)

Definition at line 115 of file Row.java.

References com.quadcap.sql.Row.blobCnt.

Value com.quadcap.sql.Row.getItem int  i  ) 
 

Non-checked access: return the specified value (one-based) from the row.

Definition at line 130 of file Row.java.

References com.quadcap.sql.Row.getItem(), and com.quadcap.sql.Row.v.

Referenced by com.quadcap.sql.Row.getItem(), and com.quadcap.sql.Database.getRow().

boolean com.quadcap.sql.Row.isUpdateable int  i  ) 
 

Is the specified element updatable?

Reimplemented in com.quadcap.sql.ItemsRow.

Definition at line 152 of file Row.java.

References com.quadcap.sql.Row.isUpdateable().

Referenced by com.quadcap.sql.Row.isUpdateable().

Value com.quadcap.sql.Row.item int  i  )  throws SQLException
 

Return the specified value (one-based) from the row.

Reimplemented in com.quadcap.sql.ItemsRow, com.quadcap.sql.JoinCrossRow, com.quadcap.sql.JoinMapRow, com.quadcap.sql.JoinNaturalRow, and com.quadcap.sql.MapRow.

Definition at line 120 of file Row.java.

References com.quadcap.sql.Row.item(), and com.quadcap.sql.Row.v.

Referenced by com.quadcap.sql.StmtInsert.execute(), com.quadcap.sql.StmtDropColumn.execute(), com.quadcap.sql.StmtAddColumn.execute(), com.quadcap.sql.StaticCursor.get(), com.quadcap.sql.StaticCursor.getComparator(), com.quadcap.sql.SelectExpression.getValue(), com.quadcap.sql.NameExpression.getValue(), com.quadcap.sql.FunctionExpression.getValue(), com.quadcap.sql.InExpression.getValue1(), com.quadcap.sql.InExpression.InSessionState.init(), com.quadcap.sql.Row.item(), com.quadcap.sql.MapRow.item(), com.quadcap.sql.JoinNaturalRow.item(), com.quadcap.sql.JoinMapRow.item(), com.quadcap.sql.JoinCrossRow.item(), com.quadcap.sql.ItemsRow.item(), com.quadcap.sql.InExpression.InSessionState.matchCorrelated(), com.quadcap.sql.HavingCursor.next(), com.quadcap.sql.SelectExpression.optimizeAggregate(), com.quadcap.sql.UpdateRow.redo(), com.quadcap.sql.InsertRow.redo(), and com.quadcap.sql.HavingCursor.updateRow().

void com.quadcap.sql.Row.set int  i,
Value  val
throws SQLException
 

Set value in the specified position (one-based) to a new value.

Reimplemented in com.quadcap.sql.ItemsRow, com.quadcap.sql.JoinCrossRow, com.quadcap.sql.JoinMapRow, com.quadcap.sql.JoinNaturalRow, com.quadcap.sql.LazyRow, and com.quadcap.sql.MapRow.

Definition at line 137 of file Row.java.

References com.quadcap.sql.Row.blobCnt, com.quadcap.sql.Row.set(), and com.quadcap.sql.Row.v.

Referenced by com.quadcap.sql.meta.MetaTypes.addType(), com.quadcap.sql.meta.MetaTableTypes.addType(), com.quadcap.sql.ImportedKeyConstraint.checkInsert(), com.quadcap.sql.meta.MetaPrimaryKeys.doColumn(), com.quadcap.sql.meta.MetaIndexInfo.doColumn(), com.quadcap.sql.meta.MetaCrossReference.doColumn(), com.quadcap.sql.meta.MetaColumns.doColumn(), com.quadcap.sql.meta.MetaBestRowId.doColumn(), com.quadcap.sql.StmtInsert.execute(), com.quadcap.sql.StmtDropColumn.execute(), com.quadcap.sql.StmtAddColumn.execute(), com.quadcap.sql.SelectExpression.getCursor(), com.quadcap.sql.Expression.getValues(), com.quadcap.sql.meta.MetaTables.makeRow(), com.quadcap.sql.IndexCursor.makeValues(), com.quadcap.sql.meta.MetaSchemas.MetaSchemas(), com.quadcap.sql.HavingCursor.next(), com.quadcap.sql.ItemsRow.nextRow(), com.quadcap.sql.StaticCursor.put(), com.quadcap.sql.UpdateRow.redo(), com.quadcap.sql.InsertRow.redo(), com.quadcap.sql.Row.set(), com.quadcap.sql.MapRow.set(), com.quadcap.sql.JoinNaturalRow.set(), com.quadcap.sql.JoinMapRow.set(), com.quadcap.sql.JoinCrossRow.set(), com.quadcap.sql.ItemsRow.set(), com.quadcap.sql.StmtInsert.setVrow(), com.quadcap.sql.SelectExpression.staticCursor(), and com.quadcap.sql.HavingCursor.updateRow().

int com.quadcap.sql.Row.size  ) 
 

Return the number of values in this row.

Reimplemented in com.quadcap.sql.ItemsRow, com.quadcap.sql.JoinCrossRow, com.quadcap.sql.JoinMapRow, com.quadcap.sql.JoinNaturalRow, and com.quadcap.sql.MapRow.

Definition at line 109 of file Row.java.

References com.quadcap.sql.Row.v.

Referenced by com.quadcap.sql.LazyRow.bulkLoad(), com.quadcap.sql.StmtInsert.execute(), com.quadcap.sql.StmtDropColumn.execute(), com.quadcap.sql.StmtAddColumn.execute(), com.quadcap.sql.StaticCursor.getColumnCount(), com.quadcap.sql.Database.getRow(), com.quadcap.sql.SelectExpression.getValue(), com.quadcap.sql.FunctionExpression.getValue(), com.quadcap.sql.InExpression.getValue1(), com.quadcap.sql.JoinCrossRow.JoinCrossRow(), com.quadcap.sql.JoinNaturalRow.JoinNaturalRow(), com.quadcap.sql.IndexCursor.makeValues(), com.quadcap.sql.UpdateRow.redo(), com.quadcap.sql.InsertRow.redo(), com.quadcap.sql.LazyRow.resetDirty(), com.quadcap.sql.StmtInsert.setVrow(), com.quadcap.sql.JoinCrossRow.size(), com.quadcap.sql.Row.toString(), and com.quadcap.sql.HavingCursor.updateRow().

String com.quadcap.sql.Row.toString  ) 
 

Definition at line 162 of file Row.java.

References com.quadcap.sql.Row.size().

Referenced by com.quadcap.sql.JoinMapRow.toString1().


Member Data Documentation

int com.quadcap.sql.Row.blobCnt = 0 [package]
 

Definition at line 62 of file Row.java.

Referenced by com.quadcap.sql.Row.addElement(), com.quadcap.sql.Row.getBlobCount(), com.quadcap.sql.Row.Row(), and com.quadcap.sql.Row.set().

ArrayList com.quadcap.sql.Row.v = null [package]
 

Definition at line 63 of file Row.java.

Referenced by com.quadcap.sql.Row.addElement(), com.quadcap.sql.Row.getItem(), com.quadcap.sql.Row.item(), com.quadcap.sql.Row.Row(), com.quadcap.sql.Row.set(), and com.quadcap.sql.Row.size().