1 18 19 package sync4j.framework.server; 20 21 import org.apache.commons.lang.builder.ToStringBuilder; 22 23 import sync4j.framework.server.SyncTimestamp; 24 25 26 34 public class LastTimestamp extends SyncTimestamp { 35 36 38 public String principal = null; public String database = null; 40 41 43 44 public LastTimestamp(final String principal, final String database) { 45 super(); 46 this.principal = principal ; 47 this.database = database ; 48 } 49 50 63 public LastTimestamp(final String principal, 64 final String database, 65 final String tagServer, 66 final String tagClient, 67 final long start, 68 final long end) { 69 this(principal, database); 70 this.tagServer = tagServer; 71 this.tagClient = tagClient; 72 this.start = start ; 73 this.end = end ; 74 } 75 76 78 public String toString() { 79 ToStringBuilder sb = new ToStringBuilder(this); 80 81 sb.append("principal", principal). 82 append("database" , database). 83 append("tagServer", tagServer). 84 append("tagClient", tagClient). 85 append("start" , new java.sql.Timestamp (start)). 86 append("end" , new java.sql.Timestamp (end) ); 87 88 return sb.toString(); 89 } 90 } | Popular Tags |