|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.bc.sql.service.SQLService
public class SQLService
| Constructor Summary | |
|---|---|
SQLService(java.util.logging.Logger logger)
|
|
| Method Summary | |
|---|---|
void |
resultSetAsXMLOutputStream(java.sql.ResultSet resultSet,
java.io.OutputStream outputStream,
boolean showAttributes)
Transform the given resultSet as an XML outputStream |
java.sql.ResultSet |
select(java.lang.String sql,
java.sql.Connection connection)
Execute the select SQL command on the given connection. |
void |
sqlParametersAsXMLOutputStream(java.util.List<SQLParameter> sqlParameters,
java.io.OutputStream outputStream,
boolean isResultXML)
Inject the given list of SQL parameters into a XML outputStream. |
void |
storedProcedure(java.util.List<SQLParameter> sqlParameters,
java.lang.String call,
java.sql.Connection connection)
Execute the SQL Stored Procedure on the given connection. |
int |
update(java.lang.String sql,
java.sql.Connection connection)
Execute the update SQL command on the given connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLService(java.util.logging.Logger logger)
| Method Detail |
|---|
public java.sql.ResultSet select(java.lang.String sql,
java.sql.Connection connection)
throws java.sql.SQLException
sql - connection -
java.sql.SQLException
public void storedProcedure(java.util.List<SQLParameter> sqlParameters,
java.lang.String call,
java.sql.Connection connection)
throws java.sql.SQLException,
java.text.ParseException,
javax.jbi.messaging.MessagingException,
java.io.IOException
sql - connection -
java.sql.SQLException
java.text.ParseException
javax.jbi.messaging.MessagingException
java.io.IOException
public int update(java.lang.String sql,
java.sql.Connection connection)
throws java.sql.SQLException
sql - connection -
java.sql.SQLException
public void resultSetAsXMLOutputStream(java.sql.ResultSet resultSet,
java.io.OutputStream outputStream,
boolean showAttributes)
throws java.sql.SQLException,
javax.xml.stream.XMLStreamException
resultSet - the jdbc resultSet to transformoutputStream - the stream where the XML is writtenshowAttributes - row index, column name and type are set as xml attributes in
the response
java.sql.SQLException
javax.xml.stream.XMLStreamException
public void sqlParametersAsXMLOutputStream(java.util.List<SQLParameter> sqlParameters,
java.io.OutputStream outputStream,
boolean isResultXML)
throws javax.xml.stream.XMLStreamException,
java.io.IOException
sqlParameters - the list of SQL parameters from the Stored StatementoutputStream - the stream where the XML is writtenisResultXML - if true,
javax.xml.stream.XMLStreamException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||