Package com.samples.portlet.eventlisting.model

Examples of com.samples.portlet.eventlisting.model.Location


  public static Location toModel(LocationSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    Location model = new LocationImpl();

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

    return model;
  }
View Full Code Here


    if (!(obj instanceof Location)) {
      return false;
    }

    Location location = (Location)obj;

    long primaryKey = location.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    }
    else {
View Full Code Here

   */
  @Override
  public Location findByGroupId_First(long groupId,
    OrderByComparator orderByComparator)
    throws NoSuchLocationException, SystemException {
    Location location = fetchByGroupId_First(groupId, orderByComparator);

    if (location != null) {
      return location;
    }

View Full Code Here

   */
  @Override
  public Location findByGroupId_Last(long groupId,
    OrderByComparator orderByComparator)
    throws NoSuchLocationException, SystemException {
    Location location = fetchByGroupId_Last(groupId, orderByComparator);

    if (location != null) {
      return location;
    }

View Full Code Here

   */
  @Override
  public Location[] findByGroupId_PrevAndNext(long locationId, long groupId,
    OrderByComparator orderByComparator)
    throws NoSuchLocationException, SystemException {
    Location location = findByPrimaryKey(locationId);

    Session session = null;

    try {
      session = openSession();
View Full Code Here

    if (!InlineSQLHelperUtil.isEnabled(groupId)) {
      return findByGroupId_PrevAndNext(locationId, groupId,
        orderByComparator);
    }

    Location location = findByPrimaryKey(locationId);

    Session session = null;

    try {
      session = openSession();
View Full Code Here

   * @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

    Session session = null;

    try {
      session = openSession();

      Location location = (Location)session.get(LocationImpl.class,
          primaryKey);

      if (location == null) {
        if (_log.isWarnEnabled()) {
          _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
View Full Code Here

   * @throws SystemException if a system exception occurred
   */
  @Override
  public Location findByPrimaryKey(Serializable primaryKey)
    throws NoSuchLocationException, SystemException {
    Location location = fetchByPrimaryKey(primaryKey);

    if (location == null) {
      if (_log.isWarnEnabled()) {
        _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
      }
View Full Code Here

   * @throws SystemException if a system exception occurred
   */
  @Override
  public Location fetchByPrimaryKey(Serializable primaryKey)
    throws SystemException {
    Location location = (Location)EntityCacheUtil.getResult(LocationModelImpl.ENTITY_CACHE_ENABLED,
        LocationImpl.class, primaryKey);

    if (location == _nullLocation) {
      return null;
    }
View Full Code Here

TOP

Related Classes of com.samples.portlet.eventlisting.model.Location

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.