コード例 #1
0
  /** @inheritdoc */
  @Override
  protected void bindValues(SQLiteStatement stmt, Customer entity) {
    stmt.clearBindings();

    String CustomerID = entity.getCustomerID();
    if (CustomerID != null) {
      stmt.bindString(1, CustomerID);
    }

    String ContactName = entity.getContactName();
    if (ContactName != null) {
      stmt.bindString(2, ContactName);
    }

    String ContactTitle = entity.getContactTitle();
    if (ContactTitle != null) {
      stmt.bindString(3, ContactTitle);
    }

    String phone = entity.getPhone();
    if (phone != null) {
      stmt.bindString(4, phone);
    }

    String CompanyName = entity.getCompanyName();
    if (CompanyName != null) {
      stmt.bindString(5, CompanyName);
    }

    String Region = entity.getRegion();
    if (Region != null) {
      stmt.bindString(6, Region);
    }

    String Fax = entity.getFax();
    if (Fax != null) {
      stmt.bindString(7, Fax);
    }

    String Address = entity.getAddress();
    if (Address != null) {
      stmt.bindString(8, Address);
    }

    String Country = entity.getCountry();
    if (Country != null) {
      stmt.bindString(9, Country);
    }

    String City = entity.getCity();
    if (City != null) {
      stmt.bindString(10, City);
    }

    String PostalCode = entity.getPostalCode();
    if (PostalCode != null) {
      stmt.bindString(11, PostalCode);
    }
  }