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

Examples of com.liferay.samples.portlet.eventlisting.model.Event


  public static Event toModel(EventSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    Event model = new EventImpl();

    model.setEventId(soapModel.getEventId());
    model.setName(soapModel.getName());
    model.setDescription(soapModel.getDescription());
    model.setDate(soapModel.getDate());
    model.setCompanyId(soapModel.getCompanyId());
    model.setGroupId(soapModel.getGroupId());
    model.setUserId(soapModel.getUserId());
    model.setCreateDate(soapModel.getCreateDate());
    model.setModifiedDate(soapModel.getModifiedDate());
    model.setLocationId(soapModel.getLocationId());

    return model;
  }
View Full Code Here


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

    Event event = (Event)obj;

    long primaryKey = event.getPrimaryKey();

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

   */
  @Override
  public Event findByGroupId_First(long groupId,
    OrderByComparator orderByComparator)
    throws NoSuchEventException, SystemException {
    Event event = fetchByGroupId_First(groupId, orderByComparator);

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

View Full Code Here

   */
  @Override
  public Event findByGroupId_Last(long groupId,
    OrderByComparator orderByComparator)
    throws NoSuchEventException, SystemException {
    Event event = fetchByGroupId_Last(groupId, orderByComparator);

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

View Full Code Here

   */
  @Override
  public Event[] findByGroupId_PrevAndNext(long eventId, long groupId,
    OrderByComparator orderByComparator)
    throws NoSuchEventException, SystemException {
    Event event = findByPrimaryKey(eventId);

    Session session = null;

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

   * @param eventId the primary key for the new event
   * @return the new event
   */
  @Override
  public Event create(long eventId) {
    Event event = new EventImpl();

    event.setNew(true);
    event.setPrimaryKey(eventId);

    return event;
  }
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      Event event = (Event)session.get(EventImpl.class, primaryKey);

      if (event == 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 Event findByPrimaryKey(Serializable primaryKey)
    throws NoSuchEventException, SystemException {
    Event event = fetchByPrimaryKey(primaryKey);

    if (event == 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 Event fetchByPrimaryKey(Serializable primaryKey)
    throws SystemException {
    Event event = (Event)EntityCacheUtil.getResult(EventModelImpl.ENTITY_CACHE_ENABLED,
        EventImpl.class, primaryKey);

    if (event == _nullEvent) {
      return null;
    }
View Full Code Here

        }

        ServiceContext serviceContext = ServiceContextFactory.getInstance(
            Event.class.getName(), request);

        Event event = null;

        if (eventId <= 0) {
            event = EventLocalServiceUtil.addEvent(
                serviceContext.getUserId(), serviceContext.getScopeGroupId(),
                name, description, month, day, year, hour, minute, locationId,
View Full Code Here

TOP

Related Classes of com.liferay.samples.portlet.eventlisting.model.Event

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.