|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.rdb.sql.SQLClause
|
+--com.jdc.rdb.sql.dml.DMLClause
|
+--com.jdc.rdb.sql.dml.clause.Commit
Commit represents a Select,
Insert, Update,
or Delete statement COMMIT
clause. The optional COMMIT clause specifies how the
Database will commit an active transaction when the SQL
statement is executed and/or whether the commit operation performs an operating
system (OS) flush to disk. Normally, an SQL statement implicitly
uses a transaction if one is not already active.
SQL statement clause is not compatible with the
ANSI SQL-92 standard.
Select,
Insert,
Update,
Delete,
Serialized Form| Field Summary |
| Fields inherited from class com.jdc.rdb.sql.dml.DMLClause |
sqlClause |
| Fields inherited from class com.jdc.lang.Object |
string |
| Constructor Summary | |
Commit()
Constructs a new Commit clause object. |
|
Commit(boolean forceFlush)
Constructs a new Commit clause object for the specified flush
status. |
|
Commit(int interval)
Constructs a new Commit clause object for the specified
commit interval. |
|
| Method Summary | |
String |
getKeyword()
Returns the Commit clause keyword. |
String |
getValue()
Returns the Commit clause value. |
Commit |
setForceFlush()
Specifies that the SQL statement commit operation
should perform an operating system flush to disk. |
Commit |
setInterval(int interval)
Specifies the interval that the SQL statement commit
operation will use to commit an active transaction. |
String |
toString()
Returns a String representation of this Commit clause. |
| Methods inherited from class com.jdc.rdb.sql.dml.DMLClause |
getKeyword |
| Methods inherited from class com.jdc.rdb.sql.SQLClause |
contains, setKeyword, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Commit()
Commit clause object.
public Commit(boolean forceFlush)
Commit clause object for the specified flush
status. If true the force flush status specifies that
the SQL statement commit operation should perform
an operating system flush to disk.
setForceFlush()public Commit(int interval)
Commit clause object for the specified
commit interval. The commit interval specifies the interval that the
SQL statement commit operation will use to commit
an active transaction.
SQLInvalidException - The interval specified is less than 1
or greater than 9999.setInterval(int)| Method Detail |
public String getKeyword()
Commit clause keyword.
getKeyword in class SQLClauseCommit clause keyword.public String getValue()
Commit clause value.
getValue in class SQLClauseCommit clause value.public Commit setForceFlush()
SQL statement commit operation
should perform an operating system flush to disk.
Commit clause object.public Commit setInterval(int interval)
SQL statement commit
operation will use to commit an active transaction.
Commit clause object.
SQLInvalidException - The interval specified is less than 1
or greater than 9999.public String toString()
String representation of this Commit clause.
toString in interface SelectClausetoString in class SQLClauseString representation of this Commit clause.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||