Android Open Source - couchdbsyncer-android Database






From Project

Back to project page couchdbsyncer-android.

License

The source code is released under:

Apache License

If you think the Android project couchdbsyncer-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package au.com.team2moro.couchdbsyncer;
// w w  w .  j a  va  2s.c  om
import java.net.URL;
import java.util.Date;

public class Database {
  private URL url;
  private String name, dbName;
  private long sequenceId, docDelCount;
  private long databaseId;
  private Date lastSyncDate;
  
  public Database(String name, URL url) {
    this.name = name;
    this.url = url;
    this.sequenceId = 0;
    this.docDelCount = 0;
    this.databaseId = -1;
  }

  public String toString() {
    return name;
  }
  
  public long getDatabaseId() {
    return databaseId;
  }

  public void setDatabaseId(long databaseId) {
    this.databaseId = databaseId;
  }

  public String getName() {
    return name;
  }

  public URL getUrl() {
    return url;
  }
  
  public void setUrl(URL url) {
    this.url = url;
  }

  public String getDbName() {
    return dbName;
  }

  public void setDbName(String dbName) {
    this.dbName = dbName;
  }

  public long getSequenceId() {
    return sequenceId;
  }

  public void setSequenceId(long sequenceId) {
    this.sequenceId = sequenceId;
  }

  public long getDocDelCount() {
    return docDelCount;
  }

  public void setDocDelCount(long docDelCount) {
    this.docDelCount = docDelCount;
  }

  public Date getLastSyncDate() {
    return lastSyncDate;
  }

  public void setLastSyncDate(Date lastSyncDate) {
    this.lastSyncDate = lastSyncDate;
  }
}




Java Source Code List

au.com.team2moro.couchdbsyncer.Attachment.java
au.com.team2moro.couchdbsyncer.BulkFetcher.java
au.com.team2moro.couchdbsyncer.ConnectionSettingsTrustAll.java
au.com.team2moro.couchdbsyncer.ConnectionSettings.java
au.com.team2moro.couchdbsyncer.DatabaseStore.java
au.com.team2moro.couchdbsyncer.Database.java
au.com.team2moro.couchdbsyncer.Document.java
au.com.team2moro.couchdbsyncer.DownloadPolicy.java
au.com.team2moro.couchdbsyncer.Fetcher.java
au.com.team2moro.couchdbsyncer.SequencedDocument.java
au.com.team2moro.couchdbsyncer.SyncerService.java
au.com.team2moro.couchdbsyncer.Syncer.java
au.com.team2moro.couchdbsyncer.package-info.java