org.sormula.operation.cascade.lazy
Interface LazySelectable

All Known Implementing Classes:
AbstractLazySelector, ActiveRecord, DurableLazySelector, SimpleLazySelector

public interface LazySelectable

Interface for notifying and performing lazy select cascades.

Since:
1.8 and 2.2
Author:
Jeff Miller

Method Summary
 void checkLazySelects(java.lang.String fieldName)
          Checks if lazy select needs to be performed.
 void pendingLazySelects(Database database)
          Informs a lazy selector that there are lazy selects to be performed.
 

Method Detail

pendingLazySelects

void pendingLazySelects(Database database)
                        throws LazyCascadeException
Informs a lazy selector that there are lazy selects to be performed. Invoked by ScalarSelectOperation.readNext() when a least one field has a SelectCascade.lazy() set to true. Use Table.getLazySelectCascadeFields() to know which fields are to be lazily selected.

Parameters:
database - the database where lazy select fields are to be read
Throws:
LazyCascadeException - if error

checkLazySelects

void checkLazySelects(java.lang.String fieldName)
                      throws LazyCascadeException
Checks if lazy select needs to be performed. Perform the select for the field if it has not yet been selected. Otherwise do nothing.

Parameters:
fieldName - check field with this name
Throws:
LazyCascadeException - if error