|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object openlsd.database.session.LSDDbRequest
public class LSDDbRequest
Class to handle request
Constructor Summary | |
---|---|
LSDDbRequest(LSDDbSession ls)
Create a new request from the LSDDbSession |
Method Summary | |
---|---|
void |
close()
Finished a Request (ready for a new one) |
static java.lang.String |
getIsNull(java.lang.String value)
Test if value is null and create the string for insert/update |
long |
getLastId()
Get the last ID autoincrement from the last request |
static long |
getLastId(java.sql.ResultSet resultSet)
Get the last ID autoincrement from the result |
static boolean |
getNext(java.sql.ResultSet resultSet)
Move the cursor to the next result |
int |
query(java.lang.String query)
Execute a UPDATE/INSERT/DELETE statement and returns the number of row or -1 if an error occurs The previous statement and resultSet are closed. |
java.sql.ResultSet |
select(java.lang.String select)
Execute a SELECT statement and returns the set of Result. |
java.sql.ResultSet |
select(java.lang.String select,
int nbFetch)
Execute a SELECT statement and returns the set of Result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LSDDbRequest(LSDDbSession ls)
ls
- Method Detail |
---|
public java.sql.ResultSet select(java.lang.String select)
select
-
public java.sql.ResultSet select(java.lang.String select, int nbFetch)
select
- nbFetch
- the number of pre fetch rows
public int query(java.lang.String query)
query
-
public void close()
public long getLastId()
public static long getLastId(java.sql.ResultSet resultSet)
resultSet
-
public static boolean getNext(java.sql.ResultSet resultSet)
resultSet
-
public static java.lang.String getIsNull(java.lang.String value)
value
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |