JSqsh is a Java implementation of sqsh, a console based database query tool featuring much of the functionality provided by a good shell, such as variables, redirection, pipes, history, command line editing, and dynamic configuration
JSqsh has been moved to: https://github.com/scgray/jsqsh