this.serverTimestamp = pConnection.getServerTimestamp().getTimestamp().getTime(); if ( log.isDebug() ) { BaseMessages.getString( PKG, "SalesforceInput.Log.ServerTimestamp", getServerTimestamp() );
@Override public com.sforce.soap.partner.IGetServerTimestampResult newIGetServerTimestampResult() { return new com.sforce.soap.partner.GetServerTimestampResult(); }
protected void loadFields(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { loadFields1(__in, __typeMapper); }
protected void setTimestamp(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __in.peekTag(); if (__typeMapper.verifyElement(__in, _lookupTypeInfo("timestamp", "urn:partner.soap.sforce.com","timestamp","http://www.w3.org/2001/XMLSchema","dateTime",1,1,true))) { setTimestamp((java.util.Calendar)__typeMapper.readObject(__in, _lookupTypeInfo("timestamp", "urn:partner.soap.sforce.com","timestamp","http://www.w3.org/2001/XMLSchema","dateTime",1,1,true), java.util.Calendar.class)); } }
private void writeFieldTimestamp(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException { __typeMapper.writeObject(__out, _lookupTypeInfo("timestamp", "urn:partner.soap.sforce.com","timestamp","http://www.w3.org/2001/XMLSchema","dateTime",1,1,true), timestamp, timestamp__is_set); }
@Override public void load(com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException { __typeMapper.consumeStartTag(__in); loadFields(__in, __typeMapper); __typeMapper.consumeEndTag(__in); }
public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getResult() != null) { _hashCode += getResult().hashCode(); } __hashCodeCalc = false; return _hashCode; }
public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof GetServerTimestampResponse)) return false; GetServerTimestampResponse other = (GetServerTimestampResponse) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.result == null && other.getResult() == null) || (this.result != null && this.result.equals(other.getResult()))); __equalsCalc = null; return _equals; }
public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof GetServerTimestampResult)) return false; GetServerTimestampResult other = (GetServerTimestampResult) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.timestamp == null && other.getTimestamp() == null) || (this.timestamp != null && this.timestamp.equals(other.getTimestamp()))); __equalsCalc = null; return _equals; }
public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getTimestamp() != null) { _hashCode += getTimestamp().hashCode(); } __hashCodeCalc = false; return _hashCode; }
@Override public boolean start() throws IOException { PartnerConnection connection = ((SalesforceSource) getCurrentSource()).connect(container).connection; try { Calendar serverTimestamp = connection.getServerTimestamp().getTimestamp(); if (serverTimestamp != null) { result = serverTimestamp.getTimeInMillis(); } if (result != null) { dataCount++; return true; } else { return false; } } catch (ConnectionException e) { throw new IOException(e); } }
@Override public boolean start() throws IOException { ConnectionHolder ch = ((SalesforceSource) getCurrentSource()).connect(container); PartnerConnection connection = ch.connection; if (ch.bulkConnection != null) { LOGGER.info(MESSAGES.getMessage("info.bulkConnectionUsage")); } try { Calendar serverTimestamp = connection.getServerTimestamp().getTimestamp(); if (serverTimestamp != null) { long timestamp = serverTimestamp.getTimeInMillis(); result = new GenericData.Record(properties.schema.schema.getValue()); result.put(0, timestamp); } if (result != null) { dataCount++; return true; } else { return false; } } catch (ConnectionException e) { throw new IOException(e); } }
@Override public boolean start() throws IOException { ConnectionHolder ch = ((SalesforceSource) getCurrentSource()).connect(container); PartnerConnection connection = ch.connection; if (ch.bulkConnection != null) { LOGGER.info(MESSAGES.getMessage("info.bulkConnectionUsage")); } try { Calendar serverTimestamp = connection.getServerTimestamp().getTimestamp(); if (serverTimestamp != null) { long timestamp = serverTimestamp.getTimeInMillis(); result = new GenericData.Record(properties.schema.schema.getValue()); result.put(0, timestamp); } if (result != null) { dataCount++; return true; } else { return false; } } catch (ConnectionException e) { throw new IOException(e); } }