public class SugarCrmConnector extends AbstractConnector implements Connector
Modifier and Type | Field and Description |
---|---|
protected DecimalFormat |
nf |
DATE_LENGTH_UNRESTRICTED, projectId, schema
Modifier | Constructor and Description |
---|---|
protected |
SugarCrmConnector()
Creates a new SugarCrm connector
|
Modifier and Type | Method and Description |
---|---|
static SugarCrmConnector |
createConnector()
Creates a new SugarCrm connector
|
void |
extract(String file,
boolean transform)
Extract rows
|
String |
getEntity() |
String |
getFields() |
String |
getHostname() |
String |
getPassword()
SugarCrm password getter
|
String |
getUsername()
SugarCrm username getter
|
boolean |
processCommand(Command c,
CliParams cli,
ProcessingContext ctx)
Processes single command
|
void |
setEntity(String entity) |
void |
setFields(String fields) |
void |
setHostname(String hostname) |
void |
setPassword(String password)
SugarCrm password setter
|
void |
setUsername(String username)
SugarCrm username setter
|
checkLoadingStatus, copyAndTransform, deploy, dump, dumpData, expandDates, extract, extractAndTransfer, generateMaqlCreate, getProjectId, getResult, getSchema, initSchema, populateColumnsFromSchema, setIncremental, setProjectId, setProjectId, setSchema, transferData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deploy, dump, extract, extractAndTransfer, generateMaqlCreate, getSchema, setSchema
protected DecimalFormat nf
public static SugarCrmConnector createConnector()
public void extract(String file, boolean transform) throws IOException
extract
in class AbstractConnector
file
- name of the target filetransform
- perform transformationsIOException
public String getUsername()
public void setUsername(String username)
username
- SugarCrm usernamepublic String getPassword()
public void setPassword(String password)
password
- SugarCrm passwordpublic String getHostname()
public void setHostname(String hostname)
hostname
- the hostname to setpublic boolean processCommand(Command c, CliParams cli, ProcessingContext ctx) throws ProcessingException
processCommand
in interface Executor
processCommand
in class AbstractConnector
c
- command to be processedcli
- parameters (commandline params)ctx
- processing contextProcessingException
- in case of issues during the command processingpublic String getFields()
public void setFields(String fields)
public String getEntity()
public void setEntity(String entity)
Copyright © 2014. All rights reserved.