|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.brains2b.data.cursor.Cursor
org.brains2b.data.sql.cursor.SqlCursor
org.brains2b.sql.oracle.cursor.OracleCursor
public class OracleCursor
Overwrite of the Cursor object to add functionality for having queries with parameters.
The sql statement can contain placeholder characters ? signifying a
parameter which can be set at runtime by calling addParameter(index, value). The index
corresponds with the count of the placeholder character in the SQL statement starting at 1
| Field Summary |
|---|
| Fields inherited from class org.brains2b.data.sql.cursor.SqlCursor |
|---|
m_con, m_prep, m_select |
| Fields inherited from class org.brains2b.data.cursor.Cursor |
|---|
m_prototype |
| Constructor Summary | |
|---|---|
OracleCursor()
Deprecated. use OracleCursor(String, String) and OracleCursor(Connection,String,String) |
|
OracleCursor(java.sql.Connection con,
java.lang.String name,
java.lang.String sql)
Deprecated. Constructor for OracleCursor. |
|
OracleCursor(java.lang.String name,
java.lang.String sql)
Deprecated. Constructor for OracleCursor |
|
| Method Summary | |
|---|---|
java.util.Vector |
select()
Deprecated. |
| Methods inherited from class org.brains2b.data.sql.cursor.SqlCursor |
|---|
addParameter, addParameter, addParameter, addParameter, delete, getConnection, getObject, getPreparedStatement, getProtoType, getProtoType, getSelect, insert, reset, retrieve, retrieveList, retrieveList, setConnection, toString, update |
| Methods inherited from class org.brains2b.data.cursor.Cursor |
|---|
getName, getNewCursorData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OracleCursor()
public OracleCursor(java.lang.String name,
java.lang.String sql)
name - String, the name of the cursorsql - String, the SQL-statement to use for this cursor
public OracleCursor(java.sql.Connection con,
java.lang.String name,
java.lang.String sql)
Usually the Connection does not have to be set at initialization, you can use setConnection(Connection)
con - java.sql.Connection, the JDBC connection to use for this Cursorname - String, the name of the cursorsql - String, the SQL-statement to use for this cursor| Method Detail |
|---|
public java.util.Vector select()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||