this.serverTimestamp = pConnection.getServerTimestamp().getTimestamp().getTime(); if ( log.isDebug() ) { BaseMessages.getString( PKG, "SalesforceInput.Log.ServerTimestamp", getServerTimestamp() );
public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getTimestamp() != null) { _hashCode += getTimestamp().hashCode(); } __hashCodeCalc = false; return _hashCode; }
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; }
@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); } }