public interface StatementBatch
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SINGLE_STATEMENTS
single statements only
|
static java.util.concurrent.atomic.AtomicLong |
STATEMENTS_WRITTEN
How many statements have been written in total ?
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInsert(java.lang.String statement) |
void |
addPreStatements(java.lang.String statement) |
void |
addRowTrans(RowTrans rt)
add a row transaction
|
void |
addSystemTransaction(java.lang.String systemCode) |
void |
addUpdate(java.lang.String statement) |
void |
beginTransaction() |
void |
copyFieldToTrans(DBClass dbClass,
java.lang.Long rowKey,
DBField field) |
void |
copyFieldToTrans(DBClass dbClass,
java.lang.Long rowKey,
java.lang.String fieldID)
copy the field into the transaction table.
|
void |
correctJournal(long rowUID,
DBClass rootClass)
we know the journal is wrong for this row.
|
void |
deleteCriteria(java.lang.String table,
java.lang.String criteria)
delete a criteria from a table.
|
void |
deleteCriteriaPost(java.lang.String table,
java.lang.String criteria)
delete a criteria from a table.
|
void |
deleteField(java.lang.String table,
long row,
GlobalId fieldId) |
void |
deleteRow(java.lang.String table,
long row) |
void |
execute()
If the transaction is not handled externally then I'll handle it.
|
int |
generateFieldSegment(DBObject obj,
DBField field,
java.lang.Object current,
java.lang.Object previous,
int startSeq,
java.util.ArrayList segmentList,
int pos)
create a list of segments
|
java.lang.String |
getRecentLink(DBField field) |
long |
getTransMS()
the transaction milliseconds
|
long |
getTransNr()
the transaction number
|
boolean |
hasSQLEscape() |
void |
postSave()
post save
|
void |
preparedInsert(java.lang.String statement,
java.lang.Object[] args)
prepared statement
|
void |
setRecentLink(DBField field,
java.lang.String txt) |
void |
setTransHeader(TransGroup tg,
Login realLogin,
java.lang.String reason)
set the transaction header
|
boolean |
supportPreparedInsert()
do we support prepared insert
|
boolean |
supportWildCardCopyToJournal()
do we support wild card copy
|
int |
writeFieldSQL(DBObject obj,
DBField field,
java.lang.Object current,
java.lang.Object previous,
int startSeq,
int pos)
create a list of segments
|
static final java.lang.String SINGLE_STATEMENTS
static final java.util.concurrent.atomic.AtomicLong STATEMENTS_WRITTEN
@CheckReturnValue boolean supportWildCardCopyToJournal()
@CheckReturnValue boolean supportPreparedInsert()
void preparedInsert(@Nonnull
java.lang.String statement,
@Nonnull
java.lang.Object[] args)
statement - the statementargs - the argumentsvoid setTransHeader(TransGroup tg, Login realLogin, java.lang.String reason)
tg - the transaction grouprealLogin - the real loginreason - the reason@Nonnegative @CheckReturnValue long getTransNr()
@Nonnegative @CheckReturnValue long getTransMS()
@Nonnegative @CheckReturnValue java.lang.String getRecentLink(DBField field)
field - The fieldvoid setRecentLink(@Nonnull
DBField field,
@Nonnull
java.lang.String txt)
field - The fieldtxt - the textvoid deleteField(@Nonnull
java.lang.String table,
long row,
@Nonnull
GlobalId fieldId)
table - the tablerow - the row to usefieldId - the fieldvoid deleteCriteria(@Nonnull
java.lang.String table,
@Nonnull
java.lang.String criteria)
table - the table.criteria - the criteriavoid deleteCriteriaPost(@Nonnull
java.lang.String table,
@Nonnull
java.lang.String criteria)
table - the table.criteria - the criteriavoid deleteRow(@Nonnull
java.lang.String table,
long row)
table - the tablerow - the row to usevoid addSystemTransaction(@Nonnull
java.lang.String systemCode)
systemCode - the system codevoid addInsert(@Nonnull
java.lang.String statement)
statement - the statementvoid correctJournal(@Nonnegative
long rowUID,
@Nonnull
DBClass rootClass)
rowUID - the row to checkrootClass - root classvoid addRowTrans(@Nonnull
RowTrans rt)
rt - the row transaction@CheckReturnValue boolean hasSQLEscape()
int writeFieldSQL(DBObject obj, DBField field, java.lang.Object current, java.lang.Object previous, int startSeq, int pos) throws java.lang.Exception
obj - The base objectfield - the field to generate segments forcurrent - The current valueprevious - The previous valuestartSeq - The starting sequence numberpos - the positionjava.lang.Exception - A serious problemint generateFieldSegment(@Nonnull
DBObject obj,
@Nonnull
DBField field,
@Nullable
java.lang.Object current,
@Nullable
java.lang.Object previous,
@Nonnegative
int startSeq,
@Nonnull
java.util.ArrayList segmentList,
@Nonnegative
int pos)
throws java.lang.Exception
obj - The base objectfield - the field to generate segments forcurrent - The current valueprevious - The previous valuestartSeq - The starting sequence numbersegmentList - The list of Segmentspos - the positionjava.lang.Exception - A serious problemvoid copyFieldToTrans(@Nonnull
DBClass dbClass,
@Nonnull
java.lang.Long rowKey,
@Nonnull
DBField field)
dbClass - the classrowKey - the rowfield - The fieldvoid copyFieldToTrans(@Nonnull
DBClass dbClass,
@Nonnull
java.lang.Long rowKey,
@Nonnull
java.lang.String fieldID)
dbClass - the classrowKey - the rowfieldID - The field IDvoid addUpdate(@Nonnull
java.lang.String statement)
statement - the statementvoid addPreStatements(@Nonnull
java.lang.String statement)
statement - the statementvoid beginTransaction()
throws java.lang.Exception
java.lang.Exception - Exception A serious problemvoid execute()
throws java.lang.Exception
java.lang.Exception - Exception A serious problemvoid postSave()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.