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
- MXException
java.rmi.RemoteException
public void deleteCommittedTargetStagingRecords(java.sql.Connection conn, MboRemote pkgMbo) throws MXException
conn
- source
- pkgDefName
- pkg
- MXException
public void readSourceStagingtable(java.sql.Connection conn, MboRemote pkgMbo) throws MXException
conn
- source
- pkgDefName
- pkg
- userStr
- MXException
public void writeToTargetStagingtable(MboRemote stageMbo, java.sql.Connection conn) throws MXException
stageMbo
- conn
- MXException
public 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.Exception
public void updateTargetDistStatus(java.sql.Connection conn, MboRemote pkgMbo) throws MXException
conn
- source
- pkgDefName
- pkg
- MXException
public boolean checkPkgAlreadyDistributed(java.sql.Connection conn, MboRemote pkgMbo) throws MXException
conn
- source
- pkgDefName
- pkg
- MXException