Package net.sf.jkniv.whinstone.commands
Class DefaultQueryHandler
- java.lang.Object
-
- net.sf.jkniv.whinstone.commands.DefaultCommandHandler
-
- net.sf.jkniv.whinstone.commands.DefaultQueryHandler
-
- All Implemented Interfaces:
CommandHandler
public abstract class DefaultQueryHandler extends DefaultCommandHandler
- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Field Summary
-
Fields inherited from class net.sf.jkniv.whinstone.commands.DefaultCommandHandler
handleableException, overloadResultRow, queryable, sql
-
-
Constructor Summary
Constructors Constructor Description DefaultQueryHandler(CommandAdapter cmdAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Trun()Execute the database command-
Methods inherited from class net.sf.jkniv.whinstone.commands.DefaultCommandHandler
checkSqlType, getCommandAdapter, postCallback, postCommit, postException, preCallback, with, with, with, with
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jkniv.whinstone.commands.CommandHandler
asCommand
-
-
-
-
Constructor Detail
-
DefaultQueryHandler
public DefaultQueryHandler(CommandAdapter cmdAdapter)
-
-
Method Detail
-
run
public <T> T run()
Description copied from interface:CommandHandlerExecute the database command- Specified by:
runin interfaceCommandHandler- Overrides:
runin classDefaultCommandHandler- Type Parameters:
T- Generic type of return, example: rows affected by a command or list of objects.- Returns:
- the result of the command execution
-
-