|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.connector.hl7.framework.persist.connection.AbstractDBConnection
public class AbstractDBConnection
DOCUMENT ME!
Field Summary | |
---|---|
protected static java.lang.String |
BATCH_DML_ERROR
Batch Database Manipulation Language error |
protected static java.lang.String |
DML_ERROR
Database Manipulation Language error |
protected java.sql.Connection |
mConn
The JDBC connection |
Constructor Summary | |
---|---|
AbstractDBConnection(java.sql.Connection conn)
constructor |
Method Summary | |
---|---|
protected void |
batchDelete(java.util.List objs)
|
protected void |
batchInsert(java.util.List objs)
|
protected void |
batchUpdate(java.util.List objs)
|
void |
delete(DBObject obj)
|
void |
delete(java.util.List objs)
|
int |
executeUpdateOrDelete(java.lang.String sql)
executes query |
java.sql.ResultSet |
get(java.lang.String query,
java.util.List vals)
executes query |
java.sql.ResultSet |
getRow(DBObject dbo)
executes query |
java.sql.Connection |
getUnderlyingConnection()
A handle to the undelying JDBC connection |
void |
insert(DBObject obj)
|
void |
insert(java.util.List objs)
|
int |
update(DBObject obj)
|
void |
update(java.util.List objs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.sql.Connection mConn
protected static java.lang.String BATCH_DML_ERROR
protected static java.lang.String DML_ERROR
Constructor Detail |
---|
public AbstractDBConnection(java.sql.Connection conn) throws java.sql.SQLException
conn
- jdbc connection
java.sql.SQLException
- SQLExceptionMethod Detail |
---|
public java.sql.Connection getUnderlyingConnection()
public void insert(DBObject obj) throws java.sql.SQLException
obj
- DBObject
java.sql.SQLException
- SQLExceptionpublic void insert(java.util.List objs) throws java.sql.SQLException
objs
- Listjava.sql.SQLException
- SQLExceptionpublic int update(DBObject obj) throws java.sql.SQLException
obj
- DBObject
java.sql.SQLException
- SQLExceptionpublic void update(java.util.List objs) throws java.sql.SQLException
objs
- Listjava.sql.SQLException
- SQLExceptionpublic void delete(DBObject obj) throws java.sql.SQLException
obj
- DBObject
java.sql.SQLException
- SQLExceptionpublic void delete(java.util.List objs) throws java.sql.SQLException
objs
- Listjava.sql.SQLException
- SQLExceptionpublic java.sql.ResultSet getRow(DBObject dbo) throws java.sql.SQLException
obj
- DBObject
java.sql.SQLException
- SQLExceptionpublic java.sql.ResultSet get(java.lang.String query, java.util.List vals) throws java.sql.SQLException
query
- query preparedstatement stringvals
- values to be bound to query string
java.sql.SQLException
- SQLExceptionpublic int executeUpdateOrDelete(java.lang.String sql) throws java.sql.SQLException
sql
- query preparedstatement string
java.sql.SQLException
- SQLExceptionprotected void batchInsert(java.util.List objs) throws java.sql.SQLException
java.sql.SQLException
protected void batchUpdate(java.util.List objs) throws java.sql.SQLException
java.sql.SQLException
protected void batchDelete(java.util.List objs) throws java.sql.SQLException
java.sql.SQLException
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |