public class PurgingStringBuffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright.
|
Constructor and Description |
---|
PurgingStringBuffer(java.lang.String theInsertInitialRowSQL,
java.lang.String theParameterizedUpdateString)
Constructor.
|
PurgingStringBuffer(java.lang.String theInsertInitialRowSQL,
java.lang.String theParameterizedUpdateString,
int thePurgeLength)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String string)
Adds to the string buffer.
|
int |
getCount()
Returns the size of the buffer.
|
int |
getRunningCount()
Returns the total size of the current buffer and all previous purges.
|
void |
purge()
Forces a purge.
|
public static final java.lang.String COPYRIGHT
public PurgingStringBuffer(java.lang.String theInsertInitialRowSQL, java.lang.String theParameterizedUpdateString) throws com.ibm.commerce.exception.ECSystemException
theInsertInitialRowSQL
- the sql to use to insert during the first purge.theParameterizedUpdateString
- the sql used to update during follow-on updates.com.ibm.commerce.exception.ECSystemException
- whenever an sql problem happens.public PurgingStringBuffer(java.lang.String theInsertInitialRowSQL, java.lang.String theParameterizedUpdateString, int thePurgeLength) throws com.ibm.commerce.exception.ECSystemException
theInsertInitialRowSQL
- the sql to use to insert during the first purge.theParameterizedUpdateString
- the sql used to update during follow-on updates.thePurgeLength
- sets the purge thresholdcom.ibm.commerce.exception.ECSystemException
- whenever an sql problem happens.public void append(java.lang.String string) throws com.ibm.commerce.exception.ECSystemException, javax.transaction.RollbackException
string
- what to add.com.ibm.commerce.exception.ECSystemException
- xjavax.transaction.RollbackException
- xpublic int getCount()
public int getRunningCount()
public void purge() throws com.ibm.commerce.exception.ECSystemException, javax.transaction.RollbackException
com.ibm.commerce.exception.ECSystemException
- xjavax.transaction.RollbackException
- x