Compiere 3.1

org.compiere.process
Class ReplicationLocal

java.lang.Object
  extended by org.compiere.process.SvrProcess
      extended by org.compiere.process.ReplicationLocal
All Implemented Interfaces:
ProcessCall

public class ReplicationLocal
extends SvrProcess

Local (Central) Data Replication. Note: requires migration technology

Version:
$Id: ReplicationLocal.java,v 1.2 2006/07/30 00:51:01 jjanke Exp $
Author:
Jorg Janke

Field Summary
protected static String START
           
 
Fields inherited from class org.compiere.process.SvrProcess
log, MSG_InvalidArguments, MSG_SaveErrorRowNotFound
 
Constructor Summary
ReplicationLocal()
           
 
Method Summary
 String doIt()
          Perrform process.
 String[] getKeyColumns(int AD_Table_ID)
          Get Key Columns (PK or FK) of Table
static RowSet getRowSet(String sql, Object[] args)
          Get RowSet of Local Connection
static boolean isReplicated(Object result)
          Is data successful replicated
 void prepare()
          Prepare - e.g., get Parameters.
 
Methods inherited from class org.compiere.process.SvrProcess
addLog, addLog, commit, doIt, get_Trx, get_TrxName, getAD_Client_ID, getAD_PInstance_ID, getAD_User_ID, getCtx, getName, getParameter, getProcessInfo, getRecord_ID, getTable_ID, isLocked, lockObject, rollback, startProcess, unlockObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START

protected static final String START
See Also:
Constant Field Values
Constructor Detail

ReplicationLocal

public ReplicationLocal()
Method Detail

prepare

public void prepare()
Prepare - e.g., get Parameters.

Specified by:
prepare in class SvrProcess

doIt

public String doIt()
            throws Exception
Perrform process.

Specified by:
doIt in class SvrProcess
Returns:
Message
Throws:
Exception - if not successful

getKeyColumns

public String[] getKeyColumns(int AD_Table_ID)
Get Key Columns (PK or FK) of Table

Parameters:
AD_Table_ID - id
Returns:
Key Columns

getRowSet

public static RowSet getRowSet(String sql,
                               Object[] args)
Get RowSet of Local Connection

Parameters:
sql - sql
args - optional argument array - supported: Integer, Timestamp, BigDecimal - rest is concerted to String
Returns:
row set

isReplicated

public static boolean isReplicated(Object result)
Is data successful replicated

Parameters:
result - sync return value
Returns:
true if replicated

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.