Class Hierarchy Index
Class COM.cloudscape.synchronization.StatementListVTI
java.lang.Object
|
+----COM.cloudscape.vti.VTITemplate
|
+----COM.cloudscape.synchronization.StatementListVTI
- public class StatementListVTI
- extends VTITemplate
Copyright © 1997-1999, Cloudscape, Inc. All rights reserved.
Virtual Table to wrap a list of Replicated Statements. This Virtual Table can be used on
- A file created by the COPY PUBLICATION statement
- A statement list nested inside a transaction being read by a TransactionListVTI
This Virtual Table has the following shape:
COLUMN NAME |
DATATYPE |
DESCRIPTION |
STATEMENT_NUMBER | int | statement number |
TYPE | varchar(15) |
One of the following: "COPY PREAMBLE", "DDL", "INSERT", "DELETE", "UPDATE", "WORK UNIT" |
SUMMARY | String | brief description of statement |
SUCCESS | char(1) | 'T' if the statement succeeded during replay, 'F' if it failed |
CHANGED_COLUMNS | BitSet |
BitSet of column IDs changed by this statement (null unless this is an UPDATE) |
ROW_LIST | ColumnResultSet |
A RowListVTI. null for "COPY PUBLICATION PREAMBLE" and "DDL".
For a "WORK UNIT", the rowList has one row, the parameter tuple.
See RowListVTI for a description of the layout of the row set
for "INSERT", "DELETE", "UPDATE". |
ROW_LIST varies depending on the value of TYPE.
- If TYPE is "COPY PUBLICATION PREAMBLE" or "DDL", ROW_LIST is null
- If TYPE is "WORK UNIT", ROW_LIST holds the work unit parameters. If the WorkUnit
took no parameters, ROW_LIST is null.
- If TYPE is "INSERT", "DELETE", or "UPDATE", ROW_LIST is a row set. See
RowListVTI for a description of the row set's layout.
Here's the SQL for creating a StatementListVTI on a file produced by the COPY PUBLICATION command:
SELECT * FROM new COM.cloudscape.synchronization.StatementListVTI( 'copy', 'p.cpy' ) SL
Here's the SQL stuffed inside a ColumnResultSet used for creating a StatementListVTI on the statement
list inside a transaction in a TransactionListVTI or the statement list inside a DML rowset.
The arguments are ( scanID, transactionNumber, nestingLevel, summaryColumnLength ).
SELECT * FROM new COM.cloudscape.synchronization.StatementListVTI
( '8000001c-00d0-fd77-3ed8-000a0a0b1900', 3, 0, 20 ) SL
-
CLASS_NAME
-
-
StatementListVTI(String, int, int, int)
- Make a StatementListVTI from an open transaction stream.
-
StatementListVTI(String, String, int)
- Make a StatementListVTI from a file, e.g., a file
created by the COPY PUBLICATION command.
-
close()
-
-
getInt(int)
-
-
getMetaData()
-
-
getObject(int)
-
-
getString(int)
-
-
next()
-
-
wasNull()
-
CLASS_NAME
public static final String CLASS_NAME
StatementListVTI
public StatementListVTI(String fileType,
String fileName,
int summaryColumnLength) throws SQLException
- Make a StatementListVTI from a file, e.g., a file
created by the COPY PUBLICATION command.
- Parameters:
- fileType - kind of file: "copy"
- fileName - file of replicated statements
- summaryColumnLength - display length of SUMMARY column
- Throws: SQLException
- thrown on error
StatementListVTI
public StatementListVTI(String scanID,
int transactionNumber,
int nestingLevel,
int summaryColumnLength) throws SQLException
- Make a StatementListVTI from an open transaction stream.
- Parameters:
- scanID - identifies the stream of replicated transactions
- transactionNumber - identifies the transaction in that stream
- nestingLevel - identifies statement depth inside this transaction
- summaryColumnLength - display length of SUMMARY column
- Throws: SQLException
- thrown on error
wasNull
public boolean wasNull()
- Overrides:
- wasNull in class VTITemplate
next
public boolean next() throws SQLException
- Throws: SQLException
- thrown on error
- Overrides:
- next in class VTITemplate
getMetaData
public ResultSetMetaData getMetaData()
- Overrides:
- getMetaData in class VTITemplate
getInt
public int getInt(int columnIndex) throws SQLException
- Throws: SQLException
- thrown on error
- Overrides:
- getInt in class VTITemplate
getString
public String getString(int columnIndex) throws SQLException
- Throws: SQLException
- thrown on error
- Overrides:
- getString in class VTITemplate
getObject
public Object getObject(int columnIndex) throws SQLException
- Throws: SQLException
- thrown on error
- Overrides:
- getObject in class VTITemplate
close
public void close() throws SQLException
- Throws: SQLException
- thrown on error
- Overrides:
- close in class VTITemplate
Class Hierarchy Index