|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectgeneralDatabase.pamCursor.PamCursorManager
public class PamCursorManager
| Field Summary | |
|---|---|
private static int |
cursorType
|
static int |
NON_SCROLLABLE
Underlying database does not support updateable cursors, so the functionality is implemented using more simple SQL update statements |
static int |
SCROLLABLE
The underlying database does support updateable cursors, so most functionality can be simply passed straight through to the underlying database. |
| Constructor Summary | |
|---|---|
PamCursorManager()
|
|
| Method Summary | |
|---|---|
static PamCursor |
createCursor(java.sql.Connection connection,
EmptyTableDefinition tableDefinition)
Create a cursor using any connection to a database. |
static PamCursor |
createCursor(EmptyTableDefinition tableDefinition)
Create a cursor using the connection to the main database |
static int |
getCursorType()
|
static void |
setCursorType(int cursorType)
Set the cursor type, SCROLLABLE or NON_SCROLLABLE |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NON_SCROLLABLE
public static final int SCROLLABLE
private static int cursorType
| Constructor Detail |
|---|
public PamCursorManager()
| Method Detail |
|---|
public static void setCursorType(int cursorType)
cursorType - cursor typepublic static int getCursorType()
public static PamCursor createCursor(EmptyTableDefinition tableDefinition)
tableDefinition - table definition for cursor
public static PamCursor createCursor(java.sql.Connection connection,
EmptyTableDefinition tableDefinition)
connection - database connectiontableDefinition - table definition for cursor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||