|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.townleyenterprises.persistence.SQLProvider
This class provides a way to make the database queries that are used by these classes more modular and separate from the code. This class will provide access to the statements in the form of a HashMap-style interface, so that the SQL statements are accessed by a name.
It should also be said that there are no public, non-static methods for this class. The only public method is get() and will return the specific statement or null, if it doesn't exist.
Two separate files are used by this class. The first file is named 'statements.sql' and contains all of the vendor-independent SQL statments. Like the standard resource bundle, various statements_VENDOR.sql files are also consulted to create a unified statement map for the particular vendor. This vendor is retrieved from the application's AppConfig class.
Prior to using this class, it should be configured using the initialize() method.
Method Summary | |
static java.lang.String |
get(java.lang.String name)
This method returns the named statement based on the current environment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String get(java.lang.String name)
name
- the logical statement name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |