org.sormula.active.operation
Class Select<R extends ActiveRecord<R>>

java.lang.Object
  extended by org.sormula.active.operation.ActiveOperation<R,R>
      extended by org.sormula.active.operation.Select<R>
Type Parameters:
R - record type

public class Select<R extends ActiveRecord<R>>
extends ActiveOperation<R,R>

Delegate for Table.select(Object...).

Since:
1.7 and 2.1
Author:
Jeff Miller

Constructor Summary
Select(ActiveTable<R> activeTable, java.lang.Object... primaryKeys)
           
 
Method Summary
 R operate()
          Invoked by ActiveOperation.execute() to perform the operation.
 
Methods inherited from class org.sormula.active.operation.ActiveOperation
attach, attach, close, execute, getOperationDatabase, getTable, isLocalTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Select

public Select(ActiveTable<R> activeTable,
              java.lang.Object... primaryKeys)
Method Detail

operate

public R operate()
                                  throws java.lang.Exception
Description copied from class: ActiveOperation
Invoked by ActiveOperation.execute() to perform the operation. Subclasses must implement.

Specified by:
operate in class ActiveOperation<R extends ActiveRecord<R>,R extends ActiveRecord<R>>
Returns:
result of operation (Integer, List, etc.)
Throws:
java.lang.Exception