|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cgiams.esl.util.CustomDataManagerImpl
This class is merely an object shell for verifying multiple data access
layers can be created through the DataManagerFactory object. It currently
provides no real implementation.
Modification History | ||
---|---|---|
Programmer | Date | Description |
Scott Bowers | 04/06/2005 | Original Author |
Constructor Summary | |
CustomDataManagerImpl(java.lang.String as_config_file)
Default constructor required by the DataManagerFactory class. |
Method Summary | |
void |
commitTxn()
Commit a transaction. |
java.util.Collection |
getData(java.lang.String as_sql_id)
This method will retrieve a data set based on the specified SQL ID. |
java.util.Collection |
getData(java.lang.String as_sql_id,
java.lang.Object ao_arguments)
This method will retrieve a data set based on the specified SQL ID and arguments. |
java.lang.String |
getSystemOptionString(java.lang.String as_option_name)
This method will return the String value for the specified option name. |
ValueListResultContext |
getValueObjects(ValueListSearchContext ao_search_parms)
Retrieves a list of value objects based on the incoming search parameters and returns the list in the ValueListResultContext. |
void |
rollbackTxn()
Rollback a transaction. |
void |
startTxn()
Start a transaction. |
org.w3c.dom.Document |
toXML(java.lang.String as_root_name,
java.lang.String[] as_sql_ids,
java.lang.String[] as_xml_tags,
java.lang.Object ao_arguments)
This method will take a list of SQL IDs to execute, convert the results to an XML document, and return the document. |
void |
updateData(java.lang.String as_sql_id,
java.lang.Object ao_arguments)
This method will execute an update based on the specified SQL ID and arguments. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CustomDataManagerImpl(java.lang.String as_config_file)
as_config_file
- The configuration file name.Method Detail |
public void startTxn() throws java.sql.SQLException
startTxn
in interface DataManager
java.sql.SQLException
- If any error occurs.public void commitTxn() throws java.sql.SQLException
commitTxn
in interface DataManager
java.sql.SQLException
- If any error occurs.public void rollbackTxn() throws java.sql.SQLException
rollbackTxn
in interface DataManager
java.sql.SQLException
- If any error occurs.public java.lang.String getSystemOptionString(java.lang.String as_option_name) throws java.lang.Exception
getSystemOptionString
in interface DataManager
as_option_name
- The option name to return the String value for.
java.lang.Exception
- If an error occurres.public java.util.Collection getData(java.lang.String as_sql_id) throws java.lang.Exception
getData
in interface DataManager
as_sql_id
- The ID of a predefined SQL Select statement to execute.
java.lang.Exception
- If an error occurres.public java.util.Collection getData(java.lang.String as_sql_id, java.lang.Object ao_arguments) throws java.lang.Exception
getData
in interface DataManager
as_sql_id
- The ID of a predefined SQL Select statement to execute.ao_arguments
- The arguments that will be passed to and used by the SQL
Select statement. This argument can be null.
java.lang.Exception
- If an error occurres.public void updateData(java.lang.String as_sql_id, java.lang.Object ao_arguments) throws java.lang.Exception
updateData
in interface DataManager
as_sql_id
- The ID of a predefined SQL Insert or Update statement to execute.ao_arguments
- The arguments that will be passed to and used by the SQL
Insert or Update statement.
java.lang.Exception
- If an error occurres.public org.w3c.dom.Document toXML(java.lang.String as_root_name, java.lang.String[] as_sql_ids, java.lang.String[] as_xml_tags, java.lang.Object ao_arguments) throws java.lang.Exception
toXML
in interface DataManager
as_root_name
- The name that will be used as the root element in the XML
document that will be returned.as_sql_ids
- The SQL IDs that are to be executed.as_xml_tags
- The corresponding XML tag names for the SQL IDs.ao_arguments
- A Java Bean or Map containing the arguments to the SQL Selects
defined by as_sql_ids.
java.lang.Exception
- If an error occurres.public ValueListResultContext getValueObjects(ValueListSearchContext ao_search_parms) throws ESLException
getValueObjects
in interface ValueListHandler
ao_search_parms
- A ValueListSearchContext object indicating how
and what to retrieve.
ESLException
- If any error occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |