Package com.samples.portlet.eventlisting.model

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


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


    throws NoSuchEventException, SystemException {
    if (!InlineSQLHelperUtil.isEnabled(groupId)) {
      return findByGroupId_PrevAndNext(eventId, groupId, orderByComparator);
    }

    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

  public static boolean contains(
      PermissionChecker permissionChecker, long eventId, String actionId)
    throws PortalException, SystemException {

    Event event = EventLocalServiceUtil.getEvent(eventId);

    return contains(permissionChecker, event, actionId);
  }
View Full Code Here

TOP

Related Classes of com.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.