Microsoft SDK for Java

Recordset Class

The Recordset class of the com.ms.wfc.data package encapsulates the ADO Recordset object, which represents the set of records from a base table or from the results of an executed command.

public class Recordset implements Cloneable, IDataSource, IMarshal, IPersistStream
{
  // Methods
  public void addDataSourceListener(IDataSourceListener dsl);
  public void addNew();
  public void addNew(Object[] valueList);
  public void addNew(Object[] fieldList, Object[] valueList);
  public void addOnEndOfRecordset(RecordsetEventHandler handler);
  public void addOnFetchComplete(RecordsetEventHandler handler);
  public void addOnFetchProgress(RecordsetEventHandler handler);
  public void addOnFieldChangeComplete(RecordsetEventHandler handler);
  public void addOnMoveComplete(RecordsetEventHandler handler);
  public void addOnRecordChangeComplete(RecordsetEventHandler handler);
  public void addOnRecordsetChangeComplete(RecordsetEventHandler
    handler);
  public void addOnWillChangeField(RecordsetEventHandler handler);
  public void addOnWillChangeRecord(RecordsetEventHandler handler);
  public void addOnWillChangeRecordset(RecordsetEventHandler handler);
  public void addOnWillMove(RecordsetEventHandler handler);
  public void cancel();
  public void cancelBatch();
  public void cancelBatch(int affectRecords);
  public void cancelUpdate();
  public Object clone();
  public Object clone(int lockType);
  public void close();
  public int compareBookmarks(Object bookmark1, Object bookmark2);
  public void delete();
  public void delete(int affectRecords);
  public void find(String criteria);
  public void find(String criteria, int SkipRecords);
  public void find(String criteria, int SkipRecords, 
    int searchDirection);
  public void find(String criteria, int SkipRecords, int searchDirection,
    Object bmkStart);
  public int getAbsolutePage();
  public int getAbsolutePosition();
  public Command getActiveCommand();
  public com.ms.wfc.data.Connection getActiveConnection();
  public boolean getBOF();
  public Object getBookmark();
  public int getCacheSize();
  public int getCursorLocation();
  public int getCursorType();
  public String getDataMember();
  public com.ms.com.IUnknown getDataMember(String s, 
    com.ms.com._Guid guid);
  public IUnknown getDataSource();
  public int getEditMode();
  public boolean getEOF();
  public com.ms.wfc.data.Field getField(int n);
  public com.ms.wfc.data.Field getField(String n);
  public Object getFilter();
  public int getLockType();
  public int getMarshalOptions();
  public int getMaxRecords();
  public int getPageCount();
  public int getPageSize();
  public AdoProperties getProperties();
  public int getRecordCount();
  public static com.ms.wfc.data.Recordset
    getRecordset(com.ms.wfc.data.IDataSource p1, java.lang.String p2);
  public com.ms.com.Variant getRows();
  public com.ms.com.Variant getRows(int Rows);
  public com.ms.com.Variant getRows(int Rows, java.lang.Object bmkStart);
  public Object[][] getRows(int Rows, Object bmkStart, 
    Object[] fieldList);
  public String getSort();
  public String getSource();
  public int getState();
  public int getStatus();
  public boolean getStayInSync();
  public String getString(int StringFormat);
  public String getString(int StringFormat, int NumRows);
  public String getString(int StringFormat, int NumRows, 
    String ColumnDelimiter, String RowDelimiter);
  public String getString(int StringFormat, int NumRows, 
    String ColumnDelimiter, String RowDelimiter, String NullExpr);
  public void move(int numRecords);
  public void move(int numRecords, Object bmkStart);
  public void moveFirst();
  public void moveLast();
  public void moveNext();
  public void movePrevious();
  public Recordset nextRecordset();
  public Recordset nextRecordset(int[] recordsAffected);
  public void open();
  public void open(Object source);
  public void open(Object source, Object activeConnection);
  public void open(Object source, Object activeConnection, 
    int cursorType);
  public void open(Object source, Object activeConnection, 
    int cursorType, int lockType);
  public void open(Object source, Object activeConnection, 
    int cursorType, int lockType, int options);
  public void removeOnEndOfRecordset(RecordsetEventHandler handler);
  public void removeOnFetchComplete(RecordsetEventHandler handler);
  public void removeOnFetchProgress(RecordsetEventHandler handler);
  public void removeOnFieldChangeComplete(RecordsetEventHandler handler);
  public void removeOnMoveComplete(RecordsetEventHandler handler);
  public void removeOnRecordChangeComplete
    (RecordsetEventHandler handler);
  public void removeOnRecordsetChangeComplete
    (RecordsetEventHandler handler);
  public void removeOnWillChangeField(RecordsetEventHandler handler);
  public void removeOnWillChangeRecord(RecordsetEventHandler handler);
  public void removeOnWillChangeRecordset(RecordsetEventHandler handler);
  public void removeOnWillMove(RecordsetEventHandler handler);
  public void requery();
  public void requery(int options);
  public void resync();
  public void resync(int affectRecords, int resyncValues);
  public void save(String fileName);
  public void save(String fileName, int persistFormat);
  public void setAbsolutePage(int page);
  public void setAbsolutePosition(int pos);
  public void setActiveConnection(com.ms.wfc.data.Connection con);
  public void setActiveConnection(String conString);
  public void setBookmark(Object bmk);
  public void setCacheSize(int size);
  public void setCursorLocation(int cursorLoc);
  public void setCursorType(int cursorType);
  public void setDataMember(String pbstrDataMember);
  public void setDataSource(IUnknown dataSource);
  public void setFilter(Object filter);
  public void setLockType(int lockType);
  public void setMarshalOptions(int options);
  public void setMaxRecords(int maxRecords);
  public void setPageSize(int pageSize);
  public void setSort(String criteria);
  public void setSource(Command command);
  public void setSource(String query);
  public void setStayInSync(boolean pbStayInSync);
  public boolean supports(int cursorOptions);
  public void update();
  public void update(Object[] valueList);
  public void update(Object[] fieldList, Object[] valueList);
  public void updateBatch();
  public void updateBatch(int affectRecords);
}

© 1999 Microsoft Corporation. All rights reserved. Terms of use.