Codota Logo
Address
Code IndexAdd Codota to your IDE (free)

How to use
Address
in
org.mayocat.shop.customer.model

Best Java code snippets using org.mayocat.shop.customer.model.Address (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: jvelo/mayocat-shop

  @Override
  public Address map(int index, ResultSet resultSet, StatementContext ctx) throws SQLException
  {
    Address address = new Address();
    address.setId((UUID) resultSet.getObject("address_id"));
    address.setCustomerId((UUID) resultSet.getObject("customer_id"));

    address.setCompany(resultSet.getString("company"));
    address.setFullName(resultSet.getString("full_name"));
    address.setStreet(resultSet.getString("street"));
    address.setStreetComplement(resultSet.getString("street_complement"));
    address.setZip(resultSet.getString("zip"));
    address.setCity(resultSet.getString("city"));
    address.setCountry(resultSet.getString("country"));
    address.setType(resultSet.getString("type"));
    address.setNote(resultSet.getString("note"));

    return address;
  }
}
origin: jvelo/mayocat-shop

public AddressRepresentation(Address address)
{
  this.company = address.getCompany();
  this.fullName = address.getFullName();
  this.street = address.getStreet();
  this.streetComplement = address.getStreetComplement();
  this.zip = address.getZip();
  this.city = address.getCity();
  this.country = address.getCountry();
}
origin: jvelo/mayocat-shop

if (resultSet.getObject("billing_address_id") != null) {
  resultSet.findColumn("billing_address_full_name");
  Address billing = new Address();
  billing.setId((UUID) resultSet.getObject("billing_address_id"));
  billing.setFullName(resultSet.getString("billing_address_full_name"));
  billing.setStreet(resultSet.getString("billing_address_street"));
  billing.setStreetComplement(resultSet.getString("billing_address_street_complement"));
  billing.setZip(resultSet.getString("billing_address_zip"));
  billing.setCity(resultSet.getString("billing_address_city"));
  billing.setCountry(resultSet.getString("billing_address_country"));
  billing.setNote(resultSet.getString("billing_address_note"));
  order.setBillingAddress(billing);
if (resultSet.getObject("delivery_address_id") != null) {
  resultSet.findColumn("delivery_address_full_name");
  Address delivery = new Address();
  delivery.setId((UUID) resultSet.getObject("delivery_address_id"));
  delivery.setFullName(resultSet.getString("delivery_address_full_name"));
  delivery.setStreet(resultSet.getString("delivery_address_street"));
  delivery.setStreetComplement(resultSet.getString("delivery_address_street_complement"));
  delivery.setZip(resultSet.getString("delivery_address_zip"));
  delivery.setCity(resultSet.getString("delivery_address_city"));
  delivery.setCountry(resultSet.getString("delivery_address_country"));
  delivery.setNote(resultSet.getString("delivery_address_note"));
  order.setDeliveryAddress(delivery);
origin: jvelo/mayocat-shop

String billingCity = getNonEmptyFieldValueOrAddToErrorMap("billingCity", data, request);
String billingCountry = getNonEmptyFieldValueOrAddToErrorMap("billingCountry", data, request);
billingAddress = new Address();
if (multimapContains(data, "billingFirstName") || multimapContains(data, "billingLastName")) {
  billingAddress.setFullName(fullName((String) data.getFirst("billingFirstName"), (String) data.getFirst("billingLastName")));
  billingAddress.setFullName(fullName(firstName, lastName));
billingAddress.setStreet(billingStreet);
billingAddress.setZip(billingZip);
billingAddress.setCity(billingCity);
billingAddress.setCountry(billingCountry);
if (multimapContains(data, "billingCompany")) {
  billingAddress.setCompany((String) data.getFirst("billingCompany"));
  billingAddress.setStreetComplement((String) data.getFirst("billingStreetComplement"));
Address deliveryAddress = new Address();
if (firstName != null || lastName != null) {
  deliveryAddress.setFullName(fullName(firstName, lastName));
deliveryAddress.setStreet(street);
deliveryAddress.setZip(zip);
deliveryAddress.setCity(city);
deliveryAddress.setCountry(country);
if (company != null) {
  deliveryAddress.setCompany(company);
origin: jvelo/mayocat-shop

  /**
   * Prepares the context for an address
   *
   * @param address the address to get the context of
   * @return the prepared context
   */
  private Map<String, Object> prepareAddressContext(Address address) {
    Map<String, Object> addressContext = Maps.newHashMap();
    addressContext.put("street", address.getStreet());
    addressContext.put("streetComplement", address.getStreetComplement());
    addressContext.put("zip", address.getZip());
    addressContext.put("city", address.getCity());
    addressContext.put("country", address.getCountry());
    addressContext.put("company", address.getCompany());
    return addressContext;
  }
}
origin: jvelo/mayocat-shop

  /**
   * Prepares the context for an address
   *
   * @param address the address to get the context of
   * @return the prepared context
   */
  private Map<String, Object> prepareAddressContext(Address address)
  {
    Map<String, Object> addressContext = Maps.newHashMap();
    addressContext.put("street", address.getStreet());
    addressContext.put("streetComplement", address.getStreetComplement());
    addressContext.put("zip", address.getZip());
    addressContext.put("city", address.getCity());
    addressContext.put("country", address.getCountry());
    addressContext.put("company", address.getCompany());
    return addressContext;
  }
}
org.mayocat.shop.customer.modelAddress

Most used methods

  • <init>
  • setCity
  • setCountry
  • setFullName
  • setStreet
  • setStreetComplement
  • setZip
  • getCity
  • getCompany
  • getCountry
  • getId
  • getStreet
  • getId,
  • getStreet,
  • getStreetComplement,
  • getZip,
  • setCompany,
  • setId,
  • setNote,
  • getCustomerId,
  • getFullName,
  • getType

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • onRequestPermissionsResult (Fragment)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JList (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now