public class DMStagingHandler
extends java.lang.Object
| Constructor and Description |
|---|
DMStagingHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
action(MboRemote pkgMbo,
MboRemote infoMbo)
Distribute source staging records to target staging table
|
boolean |
checkPkgAlreadyDistributed(java.sql.Connection conn,
MboRemote pkgMbo)
Update distribution status to 1 for target staging records
|
void |
deleteCommittedTargetStagingRecords(java.sql.Connection conn,
MboRemote pkgMbo)
Delete target staging records if there is any error
|
void |
readSourceStagingtable(java.sql.Connection conn,
MboRemote pkgMbo)
Read source staging table records
|
void |
setBindValue(java.sql.PreparedStatement pstmt,
MboRemote stageMbo,
int bindIndex,
MboValue mv,
java.lang.String columnName,
java.lang.String dbName)
Sets the bind value depending on type
|
void |
updateTargetDistStatus(java.sql.Connection conn,
MboRemote pkgMbo)
Update distribution status to 1 for target staging records
|
void |
writeToTargetStagingtable(MboRemote stageMbo,
java.sql.Connection conn)
Writes source staging entries to target database
|
public void action(MboRemote pkgMbo, MboRemote infoMbo) throws MXException, java.rmi.RemoteException
pkgMbo - infoMbo - driver - MXExceptionjava.rmi.RemoteExceptionpublic void deleteCommittedTargetStagingRecords(java.sql.Connection conn,
MboRemote pkgMbo)
throws MXException
conn - source - pkgDefName - pkg - MXExceptionpublic void readSourceStagingtable(java.sql.Connection conn,
MboRemote pkgMbo)
throws MXException
conn - source - pkgDefName - pkg - userStr - MXExceptionpublic void writeToTargetStagingtable(MboRemote stageMbo, java.sql.Connection conn) throws MXException
stageMbo - conn - MXExceptionpublic void setBindValue(java.sql.PreparedStatement pstmt,
MboRemote stageMbo,
int bindIndex,
MboValue mv,
java.lang.String columnName,
java.lang.String dbName)
throws java.lang.Exception
pstmt - stageMbo - bindIndex - mv - columnName - java.lang.Exceptionpublic void updateTargetDistStatus(java.sql.Connection conn,
MboRemote pkgMbo)
throws MXException
conn - source - pkgDefName - pkg - MXExceptionpublic boolean checkPkgAlreadyDistributed(java.sql.Connection conn,
MboRemote pkgMbo)
throws MXException
conn - source - pkgDefName - pkg - MXException