Package com.liferay.samples.portlet.eventlisting.model.impl

Examples of com.liferay.samples.portlet.eventlisting.model.impl.LocationImpl


   * @param locationId the primary key for the new location
   * @return the new location
   */
  @Override
  public Location create(long locationId) {
    Location location = new LocationImpl();

    location.setNew(true);
    location.setPrimaryKey(locationId);

    return location;
  }
View Full Code Here


  protected Location toUnwrappedModel(Location location) {
    if (location instanceof LocationImpl) {
      return location;
    }

    LocationImpl locationImpl = new LocationImpl();

    locationImpl.setNew(location.isNew());
    locationImpl.setPrimaryKey(location.getPrimaryKey());

    locationImpl.setLocationId(location.getLocationId());
    locationImpl.setName(location.getName());
    locationImpl.setDescription(location.getDescription());
    locationImpl.setStreetAddress(location.getStreetAddress());
    locationImpl.setCity(location.getCity());
    locationImpl.setStateOrProvince(location.getStateOrProvince());
    locationImpl.setCountry(location.getCountry());
    locationImpl.setCompanyId(location.getCompanyId());
    locationImpl.setGroupId(location.getGroupId());
    locationImpl.setUserId(location.getUserId());
    locationImpl.setCreateDate(location.getCreateDate());
    locationImpl.setModifiedDate(location.getModifiedDate());

    return locationImpl;
  }
View Full Code Here

TOP

Related Classes of com.liferay.samples.portlet.eventlisting.model.impl.LocationImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.