public class InteractionMigrator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INTERACTION_INT_GROUP
Interaction Integration Group
|
static java.lang.String |
INTERACTION_INT_PKGDEF
Interaction Integration Package Definition
|
static java.lang.String |
INTERACTION_OBJECT_GROUP
Interaction Object Group
|
static java.lang.String |
INTERACTION_OBJECT_PKGDEF
Interaction Object Package Definition
|
static MXLogger |
INTERACTIONLOGGER
Interaction logger for logging messages related to Interaction.
|
Constructor and Description |
---|
InteractionMigrator(java.lang.String name,
MXTransaction trans,
UserInfo userInfo)
Construct migrator
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
breakObjectWhere(java.lang.String where,
int maxLength,
java.util.List<java.lang.String> allWheres)
Break object and maxdomain where clause based on maximim sice of where clause field
|
java.util.List<java.lang.String> |
breakRelationWhere(java.lang.String where,
int maxLength,
java.util.List<java.lang.String> allWheres)
Break relation where clause based on maximim sice of where clause field
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
buildChildrenWhereClause()
Build map of where clauses for lower lavel objects
|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
buildCombineWhere(java.util.List<java.lang.String> domainWhere,
java.util.List<java.lang.String> objectWhere,
java.util.List<java.lang.String> relationWhere,
java.lang.String intObjectWhere)
Build combine list of all where clauses for object package
|
java.util.Map<java.lang.String,java.lang.String> |
buildIntDMWhereClause()
Build where clases to set to DM packge
|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
buildObjectDMWhereList()
Build where clases to set to DM packge
|
void |
migrate(java.lang.String groupName,
java.lang.String defName,
java.util.Map<java.lang.String,java.lang.String> whereMap)
Create and dictibute migration package
|
void |
migrateInteraction()
Migrate interaction
|
void |
setDMWhereClause(MboRemote packageDef,
java.lang.String groupName,
java.lang.String defName,
java.util.Map<java.lang.String,java.lang.String> whereMap)
Set Deployment Manager where clause in the table
|
public static final java.lang.String INTERACTION_OBJECT_GROUP
public static final java.lang.String INTERACTION_INT_GROUP
public static final java.lang.String INTERACTION_OBJECT_PKGDEF
public static final java.lang.String INTERACTION_INT_PKGDEF
public static final MXLogger INTERACTIONLOGGER
public InteractionMigrator(java.lang.String name, MXTransaction trans, UserInfo userInfo) throws MXException, java.rmi.RemoteException
name
- - Interaction Nametrans
- - Maximo transactionuserInfo
- - User InfoMXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void migrateInteraction() throws MXException, java.rmi.RemoteException
MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void migrate(java.lang.String groupName, java.lang.String defName, java.util.Map<java.lang.String,java.lang.String> whereMap) throws MXException, java.rmi.RemoteException
groupName
- DM group namedefName
- DM package definition nameMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.util.List<java.util.Map<java.lang.String,java.lang.String>> buildObjectDMWhereList() throws MXException, java.rmi.RemoteException
MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.util.Map<java.lang.String,java.lang.String> buildIntDMWhereClause() throws MXException, java.rmi.RemoteException
MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> buildChildrenWhereClause() throws MXException, java.rmi.RemoteException
MXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic void setDMWhereClause(MboRemote packageDef, java.lang.String groupName, java.lang.String defName, java.util.Map<java.lang.String,java.lang.String> whereMap) throws MXException, java.rmi.RemoteException
packageDef
- package definition MboSetgroupName
- DM group namedefName
- DM package definition namewhereMap
- map of all where clases to setMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.util.List<java.lang.String> breakRelationWhere(java.lang.String where, int maxLength, java.util.List<java.lang.String> allWheres) throws MXException, java.rmi.RemoteException
where
- original where clausemaxLength
- maximum length allowed for where clauseallWheres
- list of where clausesMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.util.List<java.lang.String> breakObjectWhere(java.lang.String where, int maxLength, java.util.List<java.lang.String> allWheres) throws MXException, java.rmi.RemoteException
where
- original where clausemaxLength
- maximum length allowed for where clauseallWheres
- list of where clausesMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.util.List<java.util.Map<java.lang.String,java.lang.String>> buildCombineWhere(java.util.List<java.lang.String> domainWhere, java.util.List<java.lang.String> objectWhere, java.util.List<java.lang.String> relationWhere, java.lang.String intObjectWhere) throws MXException, java.rmi.RemoteException
domainWhere
- list of where clauses for maxdomainobjectWhere
- list of where clauses for maxobjectcfgrelationWhere
- list of where clauses for maxrelationshipintObjectWhere
- where clause for maxintobjectMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exception