|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataManager
| Method Summary | |
|---|---|
void |
close(java.sql.Connection con)
close this connection ignoring any errors |
void |
endTransaction(java.sql.Connection con)
end Db tranacton commiting any uncommited data |
java.lang.String |
formatDate(java.util.Date date)
get a text String ve rsion of a date that the |
java.sql.Connection |
getConnection()
get db connection |
java.util.Date |
getDate(java.lang.String dateStr)
get a date from a date String based on default database format database understands |
int |
getNextValue(java.sql.Connection con,
java.lang.String tablename)
get next value for the primary key |
int |
getNextValue(java.lang.String tablename)
get next value for the primary key |
Sequence |
getSequence()
|
java.lang.String |
getSqlText(java.lang.String text)
get a String that is escaped( handles ') |
java.lang.String[] |
getTableList()
|
void |
init()
|
void |
rollbackTransaction(java.sql.Connection con)
rollback uncommited data ignoring any errors |
void |
setReader(PropertiesReader reader)
|
void |
setSequence(Sequence seq)
Use this sequence generator NOTE this should not be used by a calling class |
void |
startTransaction(java.sql.Connection con)
start Db tranacton |
| Method Detail |
|---|
void setReader(PropertiesReader reader)
reader - Sequence getSequence()
void setSequence(Sequence seq)
seq - sequence objectvoid init()
java.sql.Connection getConnection()
throws java.sql.SQLException
sql - error
java.sql.SQLExceptionvoid close(java.sql.Connection con)
con - db connection
int getNextValue(java.lang.String tablename)
throws DBException
tablename - table name
DBException
int getNextValue(java.sql.Connection con,
java.lang.String tablename)
throws java.sql.SQLException
con - db connectiontablename - table name
java.sql.SQLException
void startTransaction(java.sql.Connection con)
throws java.sql.SQLException
con - db connection
java.sql.SQLException
void endTransaction(java.sql.Connection con)
throws java.sql.SQLException
con - db connection
java.sql.SQLExceptionvoid rollbackTransaction(java.sql.Connection con)
con - db connectionjava.lang.String formatDate(java.util.Date date)
date - to convert
java.util.Date getDate(java.lang.String dateStr)
throws java.text.ParseException
dateStr - date text
java.text.ParseExceptionjava.lang.String getSqlText(java.lang.String text)
text - sql
java.lang.String[] getTableList()
throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||