org.melati.app
Class PoemApp

Package class diagram package PoemApp
java.lang.Object
  extended by org.melati.app.AbstractConfigApp
      extended by org.melati.app.AbstractPoemApp
          extended by org.melati.app.PoemApp
All Implemented Interfaces:
App

public class PoemApp
extends AbstractPoemApp

An example of how to access a POEM database from the command line. Invoke:

 java -cp melati.jar;site\properties;lib\hsqldb.jar 
     org.melati.app.PoemApp poemtest
 
(Note: if you have configured a WebmacroServletTemplateEngine then you will need webmacro.jar and servlet.jar in your classpath).


Field Summary
 
Fields inherited from class org.melati.app.AbstractConfigApp
melatiConfig, output
 
Constructor Summary
PoemApp()
           
 
Method Summary
protected  void doPoemRequest(Melati melati)
          The main method to override.
static void main(String[] args)
          The main entry point.
 
Methods inherited from class org.melati.app.AbstractPoemApp
_handleException, doConfiguredRequest, handleException, init, poemContext, poemContextWithLDB, prePoemSession, setTableTroidMethod, term
 
Methods inherited from class org.melati.app.AbstractConfigApp
applyNamedArguments, getSysAdminEmail, getSysAdminName, melatiConfig, run, setOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.melati.app.App
run, setOutput
 

Constructor Detail

PoemApp

public PoemApp()
Method Detail

doPoemRequest

protected void doPoemRequest(Melati melati)
                      throws Exception
The main method to override.

Specified by:
doPoemRequest in class AbstractPoemApp
Parameters:
melati - A Melati with arguments and properties set
Throws:
Exception - if anything goes wrong
See Also:
AbstractPoemApp.doPoemRequest(org.melati.Melati)

main

public static void main(String[] args)
                 throws Exception
The main entry point.

Parameters:
args - in format db table troid method
Throws:
Exception


Copyright © 2000-2010 PanEris. All Rights Reserved.