|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SqlOperation
psdo: comments
SqlOperation defines ability to execute SQL operation.
Class that implements this interface has to be associated with corresponding
annotation using
SqlAnnotation
.
When DDao framework finds annotation that associates interface method with class implementing this
interface it will instantiate that class and will initialize it with method information
Method Summary | |
---|---|
void |
init(java.lang.reflect.Method method)
initialize instance with data defined by annotations attached to given method |
java.lang.Object |
invoke(java.sql.Connection connection,
java.lang.reflect.Method method,
java.lang.Object[] args)
this method executes SQL operation and returns result mapped to java object |
Method Detail |
---|
java.lang.Object invoke(java.sql.Connection connection, java.lang.reflect.Method method, java.lang.Object[] args)
connection
- - JDBC connection that should be used to execute operationmethod
- - Dao method object associated with this operation invocationargs
- - argument array given with Dao method invocation
void init(java.lang.reflect.Method method) throws InitializerException
method
- - method that should be used to initialize this operation,
usually we use annotation attached to this method and that annotation has SQL
InitializerException
- - thrown when given method can not be used to
initialize this operation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |