Package com.liferay.socialnetworking.model

Examples of com.liferay.socialnetworking.model.MeetupsRegistration


  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    MeetupsRegistration meetupsRegistration = null;

    try {
      meetupsRegistration = (MeetupsRegistration)obj;
    }
    catch (ClassCastException cce) {
      return false;
    }

    long pk = meetupsRegistration.getPrimaryKey();

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


    throws PortalException, SystemException {

    User user = userLocalService.getUserById(userId);
    Date now = new Date();

    MeetupsRegistration meetupsRegistration =
      meetupsRegistrationPersistence.fetchByU_ME(
        userId, meetupsEntryId);

    if (meetupsRegistration == null) {
      long meetupsRegistrationId = counterLocalService.increment();

      meetupsRegistration = meetupsRegistrationPersistence.create(
        meetupsRegistrationId);

      meetupsRegistration.setCompanyId(user.getCompanyId());
      meetupsRegistration.setUserId(user.getUserId());
      meetupsRegistration.setUserName(user.getFullName());
      meetupsRegistration.setCreateDate(now);
      meetupsRegistration.setMeetupsEntryId(meetupsEntryId);
    }

    meetupsRegistration.setModifiedDate(now);
    meetupsRegistration.setStatus(status);
    meetupsRegistration.setComments(comments);

    meetupsRegistrationPersistence.update(meetupsRegistration, false);

    return meetupsRegistration;
  }
View Full Code Here

   *
   * @param meetupsRegistrationId the primary key for the new meetups registration
   * @return the new meetups registration
   */
  public MeetupsRegistration create(long meetupsRegistrationId) {
    MeetupsRegistration meetupsRegistration = new MeetupsRegistrationImpl();

    meetupsRegistration.setNew(true);
    meetupsRegistration.setPrimaryKey(meetupsRegistrationId);

    return meetupsRegistration;
  }
View Full Code Here

    Session session = null;

    try {
      session = openSession();

      MeetupsRegistration meetupsRegistration = (MeetupsRegistration)session.get(MeetupsRegistrationImpl.class,
          new Long(meetupsRegistrationId));

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

   * @throws com.liferay.socialnetworking.NoSuchMeetupsRegistrationException if a meetups registration with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public MeetupsRegistration findByPrimaryKey(long meetupsRegistrationId)
    throws NoSuchMeetupsRegistrationException, SystemException {
    MeetupsRegistration meetupsRegistration = fetchByPrimaryKey(meetupsRegistrationId);

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

   * @return the meetups registration, or <code>null</code> if a meetups registration with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public MeetupsRegistration fetchByPrimaryKey(long meetupsRegistrationId)
    throws SystemException {
    MeetupsRegistration meetupsRegistration = (MeetupsRegistration)EntityCacheUtil.getResult(MeetupsRegistrationModelImpl.ENTITY_CACHE_ENABLED,
        MeetupsRegistrationImpl.class, meetupsRegistrationId, this);

    if (meetupsRegistration == null) {
      Session session = null;

View Full Code Here

   */
  public MeetupsRegistration[] findByMeetupsEntryId_PrevAndNext(
    long meetupsRegistrationId, long meetupsEntryId,
    OrderByComparator orderByComparator)
    throws NoSuchMeetupsRegistrationException, SystemException {
    MeetupsRegistration meetupsRegistration = findByPrimaryKey(meetupsRegistrationId);

    Session session = null;

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

   * @throws com.liferay.socialnetworking.NoSuchMeetupsRegistrationException if a matching meetups registration could not be found
   * @throws SystemException if a system exception occurred
   */
  public MeetupsRegistration findByU_ME(long userId, long meetupsEntryId)
    throws NoSuchMeetupsRegistrationException, SystemException {
    MeetupsRegistration meetupsRegistration = fetchByU_ME(userId,
        meetupsEntryId);

    if (meetupsRegistration == null) {
      StringBundler msg = new StringBundler(6);

View Full Code Here

        List<MeetupsRegistration> list = q.list();

        result = list;

        MeetupsRegistration meetupsRegistration = null;

        if (list.isEmpty()) {
          FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_U_ME,
            finderArgs, list);
        }
        else {
          meetupsRegistration = list.get(0);

          cacheResult(meetupsRegistration);

          if ((meetupsRegistration.getUserId() != userId) ||
              (meetupsRegistration.getMeetupsEntryId() != meetupsEntryId)) {
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_U_ME,
              finderArgs, meetupsRegistration);
          }
        }
View Full Code Here

   */
  public MeetupsRegistration[] findByME_S_PrevAndNext(
    long meetupsRegistrationId, long meetupsEntryId, int status,
    OrderByComparator orderByComparator)
    throws NoSuchMeetupsRegistrationException, SystemException {
    MeetupsRegistration meetupsRegistration = findByPrimaryKey(meetupsRegistrationId);

    Session session = null;

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

TOP

Related Classes of com.liferay.socialnetworking.model.MeetupsRegistration

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.