openlsd.appli.admin.commoncopy.LSDCopyAbstract Class Reference

Inheritance diagram for openlsd.appli.admin.commoncopy.LSDCopyAbstract:

Inheritance graph
[legend]
Collaboration diagram for openlsd.appli.admin.commoncopy.LSDCopyAbstract:

Collaboration graph
[legend]

List of all members.


Detailed Description

Simple class that shared common things and methods between copyers
Author:
Frederic BREGIER LGPL 2007

Public Member Functions

 LSDCopyAbstract (LSDLoadConfig llc)
int initCopy (String[]args, int curargs, boolean keepalived)
boolean runCopy (String filepath)

Protected Member Functions

void copyDocument ()

Protected Attributes

LSDDbAdmin admin = null
LSDDbLegacy legacy = null
LSDExtDbDocument document = null
long lid = LSDConstants.invalide_idx
LSDBusiness lsdb = null
LSDDbIpPort ipportAdm = null
LSDClientInfo lci = null
String filepath = null
FileWriter fileWriter = null
FileWriter fileErrWriter = null

Private Member Functions

void createFileErrWriter ()

Constructor & Destructor Documentation

openlsd.appli.admin.commoncopy.LSDCopyAbstract.LSDCopyAbstract ( LSDLoadConfig  llc  ) 

Create a new LSDCopyAbstract object

Parameters:
llc 


Member Function Documentation

int openlsd.appli.admin.commoncopy.LSDCopyAbstract.initCopy ( String[]  args,
int  curargs,
boolean  keepalived 
)

Init Copy context except file listing itself

Parameters:
args 
curargs 
keepalived 
Returns:
Next curargs or -1 if in error

boolean openlsd.appli.admin.commoncopy.LSDCopyAbstract.runCopy ( String  filepath  ) 

Run Copy from the file containing list of id Business

Parameters:
filepath 
Returns:
True if OK, else False

void openlsd.appli.admin.commoncopy.LSDCopyAbstract.createFileErrWriter (  )  [private]

Create the FileWriter for Error output

void openlsd.appli.admin.commoncopy.LSDCopyAbstract.copyDocument (  )  [protected]

Truely copy the document in LSD then in DB


Member Data Documentation

DB Admin Object

DB Legacy Object

DB Document Object

Legacy ID

String identifying one specific document in one legacy : Business object

IpPort Object

Client Info Object

Original source file

File out

File error out


The documentation for this class was generated from the following file: