SQLFire 1.0.3

com.vmware.sqlfire.callbacks
Interface RowLoader


public interface RowLoader

This interface should be implemented by the user to insert an entire row. If there is a select on the primary key and the fabric database does not have the corresponding row in the table then it will call the load method of the implementation of this interface to obtain the row corresponding to that primary key.


Method Summary
 Object getRow(String schemaName, String tableName, Object[] primarykey)
           
 void init(String initStr)
          This method is called to initialize the RowLoader with the parameters passed for the loader in the create table ddl.
 

Method Detail

getRow

Object getRow(String schemaName,
              String tableName,
              Object[] primarykey)
              throws SQLException
Parameters:
schemaName - Name of the schema.
tableName - Name of the table.
primarykey - The primary key as Object[] as multiple column can make up the primary key.
Returns:
The values of the columns as either a List or a ResultSet. The order of values should be in the same order as the order of columns in the table. If a ResultSet is returned, then only the first row will be read from it.
Throws:
SQLException

init

void init(String initStr)
          throws SQLException
This method is called to initialize the RowLoader with the parameters passed for the loader in the create table ddl.

Parameters:
initStr - is the string passed to SYS.ATTACH_LOADER procedure
Throws:
SQLException

SQLFire 1.0.3

Copyright © 2010-2012 VMware, Inc. All rights reserved.