|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.util.SQLCatalog
A Catalog for SQL Statements
Constructor Summary | |
SQLCatalog(java.lang.String name,
java.lang.String vendor)
Create a new catalog. |
Method Summary | |
boolean |
contains(java.lang.String name)
Does this Catalog contain a given entry ? |
java.lang.String |
getParameterizedSQL(java.lang.String name,
java.util.Map valueMap)
return the SQL statement that has been created with the parameters. |
java.lang.String |
getSQL(java.lang.String name)
return the SQL statement from the catalog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SQLCatalog(java.lang.String name, java.lang.String vendor) throws InvalidCatalogException
name
- the name of the catalogvendor
- the vendor flavour to useMethod Detail |
public java.lang.String getSQL(java.lang.String name) throws InvalidCatalogEntryException
name
- the name of the statement to use
InvalidCatalogEntryException
- if the entry is not found in the
catalogpublic java.lang.String getParameterizedSQL(java.lang.String name, java.util.Map valueMap) throws InvalidCatalogEntryException
name
- the name of the statement to usevalueMap
- the names that have to be replaced, and the values
that have to be put instead
InvalidCatalogEntryException
- if the entry is not found in
the catalog or name
is null
public boolean contains(java.lang.String name)
name
- the name of the catalog entry
true
if there is an entry there
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |