Feature

The jpTools project contains general helper classes and complete frameworks. The list below gives an overview of the main features of this library.

  • Resource management: The resource management wraps the concrete acces to a resource. A resource handler can defined for specific resources. As example the ClasspathResourceHandler loads resource from classpath. An alias of a resource can defined to change the concrete resource name in a configuration file and not in the source code.
  • Logger: A complete logging framework. It is compatible with the apache commons logging API and the apache log4j logger. The standard java logger can also be used. This framework can be used to wrap the concrete logger. This log wrapper is very small but easy to understand.

  • Profile: A simple and straigt foreward implementation of a profile tool allows to profile working source code.

  • DatabaseManager (JDBC helper classes): The DatabaseManager wraps the access to a JDBC DataSource. A SQLProcessor defines an SQL statement an the method to process the ResultSet. The DatabaseManager can execute a SQLProcessor. The BatchSQLProcessor executes multiple SQL statements in one transaction. The SQL Processor Generator creates Java processor source code of a given SQL statement.

    The advantage of the concept of the SQLProcessors is a programmer has not to care about:

    • getting a connection
    • create a statement
    • execute the statement
    • process the result set
    • closing the result set
    • closing the statement
    • closing the connection

    The code only defines the statement and the the processing code.

    IMPORTANT: The ProcessorGenerator can create SQLProcessor java source code from a given SQL-Code! The generate code compiles without any changes and can be used directly.



  • EJB Generator: The ejb generator creates from a given java interface or class source a valid EJB.

  • Data Access Object Generator (DAO): The data access object generator creates from a given java interface or class source a DAO object which can be a simple class or an EJB.

  • Value Object Generator (VO): The value object generator creates well formed value objects. It generates getter-, setter-, equals-, hashCode and toString methods.

  • Framework (main class) to run junit testcases. It supports a configuration file which defines the testcases which should be executed. The configuration supports additional specific macros.

  • Excel util: There are some handy classes to support excel file format.