Simple ConnectionsEssentially, it uses a TNSNAMES type implementation whereby database connections are registered and accessed via simple calls. Typically, this will create the connection and return the connection object which is much cleaner and simpler to use than the traditional JDBC connection methods. The library supports not only direct JDBC connections but also JNDI connection pooling. An example of establishing a pooled connection would be as simple as this code:
ConnectionPool db = new ConnectionPool("orcl");
Connections can also be defined with explicit users rather than relying on the defined user account for the connection (if any). All stored connection parameters use DES encryption so no password is visible even from the file system where the classes and server processes reside. |
Simple Data Access
Beyond the connections we have also developed generic methods and classes for more easily implementing JSP dynamic data driven pages through one call classes. These classes fully support all aspects of the traditional approach and add many more. Effectively, they allow for simple one line constructs for establishing RecordSets. An example usage to establish a SQL RecordSet is as simple as:
query(db.getConnection(), myQuery);
Using this model, SQL can be kept in include files and delivered to the Java developer as simple copy and paste statements. The classes also contain fixes for JDBC classes that are only partially implemented by the vendor. Some classes such as OracleClob, provide simple constructs for coercing the objects into more manageable constructs. |