Permalink
Browse files

DOC: indentation fixed (tabs2space) in SfdcConnector

  • Loading branch information...
1 parent 1e4be69 commit b623bd6e865f69713267c1257dd7550657e07525 @koles koles committed Aug 2, 2011
Showing with 30 additions and 30 deletions.
  1. +30 −30 connector/src/main/java/com/gooddata/connector/SfdcConnector.java
@@ -122,20 +122,20 @@ protected static SObject executeQueryFirstRow(SoapBindingStub binding, String sf
}
catch (UnexpectedErrorFault e) {
l.debug("Executing SFDC query failed",e);
- throw new SfdcException("Failed to execute SFDC query.",e);
- }
+ throw new SfdcException("Failed to execute SFDC query.",e);
+ }
catch (InvalidIdFault e) {
l.debug("Executing SFDC query failed",e);
- throw new SfdcException("Failed to execute SFDC query.",e);
- }
+ throw new SfdcException("Failed to execute SFDC query.",e);
+ }
catch (InvalidQueryLocatorFault e) {
l.debug("Executing SFDC query failed",e);
- throw new SfdcException("Failed to execute SFDC query.",e);
- }
+ throw new SfdcException("Failed to execute SFDC query.",e);
+ }
catch (RemoteException e) {
l.debug("Executing SFDC query failed",e);
- throw new SfdcException("Failed to execute SFDC query.",e);
- }
+ throw new SfdcException("Failed to execute SFDC query.",e);
+ }
l.debug("Finihed SFDC query execution.");
if(result.size()>0)
return result.get(0);
@@ -242,7 +242,7 @@ else if(t.getValue().equalsIgnoreCase("datetime"))
* {@inheritDoc}
*/
public void extract(String file, boolean transform) throws IOException {
- File dataFile = new File(file);
+ File dataFile = new File(file);
l.debug("Extracting SFDC data to file="+dataFile.getAbsolutePath());
CSVWriter cw = FileUtil.createUtf8CsvEscapingWriter(dataFile);
Transformer t = Transformer.create(schema);
@@ -279,11 +279,11 @@ public void extract(String file, boolean transform) throws IOException {
MessageElement[] cols = srow.get_any();
Object[] row = new Object[cols.length];
for(int i=0; i<row.length; i++) {
- if (colTypes[i].equalsIgnoreCase(SourceColumn.LDM_TYPE_DATE)) {
- row[i] = new DateTime(cols[i].getValue());
- } else {
- row[i] = cols[i].getValue();
- }
+ if (colTypes[i].equalsIgnoreCase(SourceColumn.LDM_TYPE_DATE)) {
+ row[i] = new DateTime(cols[i].getValue());
+ } else {
+ row[i] = cols[i].getValue();
+ }
}
String[] nrow = null;
if(transform) {
@@ -316,20 +316,20 @@ public void extract(String file, boolean transform) throws IOException {
}
catch (UnexpectedErrorFault e) {
l.debug("Executing SFDC query failed",e);
- throw new SfdcException("Failed to execute SFDC query.",e);
- }
+ throw new SfdcException("Failed to execute SFDC query.",e);
+ }
catch (InvalidIdFault e) {
l.debug("Executing SFDC query failed",e);
- throw new SfdcException("Failed to execute SFDC query.",e);
- }
+ throw new SfdcException("Failed to execute SFDC query.",e);
+ }
catch (InvalidQueryLocatorFault e) {
l.debug("Executing SFDC query failed",e);
- throw new SfdcException("Failed to execute SFDC query.",e);
- }
+ throw new SfdcException("Failed to execute SFDC query.",e);
+ }
catch (RemoteException e) {
l.debug("Executing SFDC query failed",e);
- throw new SfdcException("Failed to execute SFDC query.",e);
- }
+ throw new SfdcException("Failed to execute SFDC query.",e);
+ }
l.debug("Finihed SFDC query execution.");
@@ -349,7 +349,7 @@ protected static SoapBindingStub connect(String host, String usr, String psw, St
SoapBindingStub binding;
LoginResult loginResult;
if (token != null) {
- psw += token;
+ psw += token;
}
try {
SforceServiceLocator loc = new SforceServiceLocator();
@@ -507,17 +507,17 @@ public void setSfdcQuery(String sfdcQuery) {
* SFDC security token getter
* @return SFDC security token
*/
- public String getSfdcToken() {
- return sfdcToken;
- }
+ public String getSfdcToken() {
+ return sfdcToken;
+ }
/**
* SFDC security token setter
* @param sfdcToken SFDC security token
*/
- public void setSfdcToken(String sfdcToken) {
- this.sfdcToken = sfdcToken;
- }
+ public void setSfdcToken(String sfdcToken) {
+ this.sfdcToken = sfdcToken;
+ }
/**
* @return the sfdcHostname
@@ -584,7 +584,7 @@ private void loadSfdc(Command c, CliParams p, ProcessingContext ctx) throws IOEx
initSchema(conf.getAbsolutePath());
setSfdcUsername(usr);
setSfdcPassword(psw);
- setSfdcToken(t);
+ setSfdcToken(t);
setSfdcQuery(q);
setClientID(partnerId);
if (host != null && !"".equals(host)) {

0 comments on commit b623bd6

Please sign in to comment.