public static class CrawlerUtilities.BatchAlertInserter extends Object
| Constructor and Description | 
|---|
BatchAlertInserter(String alertTable,
                  int batchSize)
Constructs a BatchAlertInserter. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
dispose()
Dispose the inserter/ 
 | 
void | 
flush()
Flush any partial batches for alert table inserts. 
 | 
void | 
initializeInsertStatement(IfsConnection conn)
Initialize the alert table insert statement. 
 | 
void | 
insertRow(Date createdate,
         int type,
         long targetid)
Inserts a row in to the alert table. 
 | 
void | 
insertRow(Date createdate,
         int type,
         long targetid,
         long auxiliaryid)
Inserts a row in to the alert table. 
 | 
void | 
setBatchSize(int batchSize)
Set the JDBC batch size, performing a flush() first. 
 | 
public BatchAlertInserter(String alertTable, int batchSize)
alertTable - the alert tablebatchSize - the JDBC batch sizepublic void dispose()
public void setBatchSize(int batchSize)
                  throws Exception
batchSize - the JDBC batch sizeException - if the operation failspublic void initializeInsertStatement(IfsConnection conn) throws Exception
conn - the connection contextException - if the operation failspublic void flush()
           throws Exception
IfsException - if the operation failsExceptionpublic void insertRow(Date createdate, int type, long targetid) throws Exception
createdate - the create date of the alerttype - the type of the alerttargetid - the target object id of the alertException - if the operation failspublic void insertRow(Date createdate, int type, long targetid, long auxiliaryid) throws Exception
createdate - the create date of the alerttype - the type of the alerttargetid - the target object id of the alertauxiliaryid - the auxiliary object id of the alertException - if the operation failsCopyright © 2025. All rights reserved.