Ejemplo n.º 1
0
  public static int countByC_C_C(
      java.lang.String companyId, java.lang.String className, java.lang.String classPK)
      throws com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.countByC_C_C(companyId, className, classPK);
  }
Ejemplo n.º 2
0
  protected static com.liferay.portlet.polls.model.PollsDisplay findByPrimaryKey(
      com.liferay.portlet.polls.ejb.PollsDisplayPK pollsDisplayPK)
      throws com.liferay.portlet.polls.NoSuchDisplayException, com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByPrimaryKey(pollsDisplayPK);
  }
Ejemplo n.º 3
0
  protected static java.util.List findByL_U(
      java.lang.String layoutId, java.lang.String userId, int begin, int end)
      throws com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByL_U(layoutId, userId, begin, end);
  }
Ejemplo n.º 4
0
  protected static com.liferay.portlet.polls.model.PollsDisplay findByQuestionId_Last(
      java.lang.String questionId, com.liferay.util.dao.hibernate.OrderByComparator obc)
      throws com.liferay.portlet.polls.NoSuchDisplayException, com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByQuestionId_Last(questionId, obc);
  }
Ejemplo n.º 5
0
  public static java.util.List findByC_C(
      java.lang.String companyId, java.lang.String className, int begin, int end)
      throws com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByC_C(companyId, className, begin, end);
  }
Ejemplo n.º 6
0
  public static com.liferay.portal.model.Address findByUserId_Last(
      java.lang.String userId, com.liferay.util.dao.hibernate.OrderByComparator obc)
      throws com.liferay.portal.NoSuchAddressException, com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByUserId_Last(userId, obc);
  }
Ejemplo n.º 7
0
  protected static com.liferay.portlet.polls.model.PollsDisplay remove(
      com.liferay.portlet.polls.ejb.PollsDisplayPK pollsDisplayPK)
      throws com.liferay.portlet.polls.NoSuchDisplayException, com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);
    ModelListener listener = null;

    if (Validator.isNotNull(LISTENER)) {
      try {
        listener = (ModelListener) Class.forName(LISTENER).newInstance();
      } catch (Exception e) {
        Logger.error(PollsDisplayUtil.class, e.getMessage(), e);
      }
    }

    if (listener != null) {
      listener.onBeforeRemove(findByPrimaryKey(pollsDisplayPK));
    }

    com.liferay.portlet.polls.model.PollsDisplay pollsDisplay = persistence.remove(pollsDisplayPK);

    if (listener != null) {
      listener.onAfterRemove(pollsDisplay);
    }

    return pollsDisplay;
  }
Ejemplo n.º 8
0
  public static com.liferay.portal.model.Address remove(java.lang.String addressId)
      throws com.liferay.portal.NoSuchAddressException, com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);
    ModelListener listener = null;

    if (Validator.isNotNull(LISTENER)) {
      try {
        listener = (ModelListener) Class.forName(LISTENER).newInstance();
      } catch (Exception e) {
        _log.error(e.getMessage());
      }
    }

    if (listener != null) {
      listener.onBeforeRemove(findByPrimaryKey(addressId));
    }

    com.liferay.portal.model.Address address = persistence.remove(addressId);

    if (listener != null) {
      listener.onAfterRemove(address);
    }

    return address;
  }
Ejemplo n.º 9
0
  public static com.liferay.portal.model.Address update(com.liferay.portal.model.Address address)
      throws com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);
    ModelListener listener = null;

    if (Validator.isNotNull(LISTENER)) {
      try {
        listener = (ModelListener) Class.forName(LISTENER).newInstance();
      } catch (Exception e) {
        _log.error(e.getMessage());
      }
    }

    boolean isNew = address.isNew();

    if (listener != null) {
      if (isNew) {
        listener.onBeforeCreate(address);
      } else {
        listener.onBeforeUpdate(address);
      }
    }

    address = persistence.update(address);

    if (listener != null) {
      if (isNew) {
        listener.onAfterCreate(address);
      } else {
        listener.onAfterUpdate(address);
      }
    }

    return address;
  }
Ejemplo n.º 10
0
  protected static com.liferay.portlet.polls.model.PollsDisplay[] findByUserId_PrevAndNext(
      com.liferay.portlet.polls.ejb.PollsDisplayPK pollsDisplayPK,
      java.lang.String userId,
      com.liferay.util.dao.hibernate.OrderByComparator obc)
      throws com.liferay.portlet.polls.NoSuchDisplayException, com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByUserId_PrevAndNext(pollsDisplayPK, userId, obc);
  }
Ejemplo n.º 11
0
  protected static java.util.List findByQuestionId(
      java.lang.String questionId,
      int begin,
      int end,
      com.liferay.util.dao.hibernate.OrderByComparator obc)
      throws com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByQuestionId(questionId, begin, end, obc);
  }
Ejemplo n.º 12
0
  public static com.liferay.portal.model.Address[] findByC_C_PrevAndNext(
      java.lang.String addressId,
      java.lang.String companyId,
      java.lang.String className,
      com.liferay.util.dao.hibernate.OrderByComparator obc)
      throws com.liferay.portal.NoSuchAddressException, com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByC_C_PrevAndNext(addressId, companyId, className, obc);
  }
Ejemplo n.º 13
0
  public static java.util.List findByUserId(
      java.lang.String userId,
      int begin,
      int end,
      com.liferay.util.dao.hibernate.OrderByComparator obc)
      throws com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByUserId(userId, begin, end, obc);
  }
Ejemplo n.º 14
0
  protected static com.liferay.portlet.polls.model.PollsDisplay update(
      com.liferay.portlet.polls.model.PollsDisplay pollsDisplay)
      throws com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);
    ModelListener listener = null;

    if (Validator.isNotNull(LISTENER)) {
      try {
        listener = (ModelListener) Class.forName(LISTENER).newInstance();
      } catch (Exception e) {
        Logger.error(PollsDisplayUtil.class, e.getMessage(), e);
      }
    }

    boolean isNew = pollsDisplay.isNew();

    if (listener != null) {
      if (isNew) {
        listener.onBeforeCreate(pollsDisplay);
      } else {
        listener.onBeforeUpdate(pollsDisplay);
      }
    }

    pollsDisplay = persistence.update(pollsDisplay);

    if (listener != null) {
      if (isNew) {
        listener.onAfterCreate(pollsDisplay);
      } else {
        listener.onAfterUpdate(pollsDisplay);
      }
    }

    return pollsDisplay;
  }
Ejemplo n.º 15
0
  public static java.util.List findByUserId(java.lang.String userId, int begin, int end)
      throws com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByUserId(userId, begin, end);
  }
Ejemplo n.º 16
0
  public static com.liferay.portal.model.Address findByPrimaryKey(java.lang.String addressId)
      throws com.liferay.portal.NoSuchAddressException, com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByPrimaryKey(addressId);
  }
Ejemplo n.º 17
0
  protected static int countByL_U(java.lang.String layoutId, java.lang.String userId)
      throws com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);

    return persistence.countByL_U(layoutId, userId);
  }
Ejemplo n.º 18
0
  protected static com.liferay.portlet.polls.model.PollsDisplay create(
      com.liferay.portlet.polls.ejb.PollsDisplayPK pollsDisplayPK) {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);

    return persistence.create(pollsDisplayPK);
  }
Ejemplo n.º 19
0
 protected static void removeByUserId(java.lang.String userId)
     throws com.liferay.portal.SystemException {
   PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);
   persistence.removeByUserId(userId);
 }
Ejemplo n.º 20
0
  protected static int countByQuestionId(java.lang.String questionId)
      throws com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);

    return persistence.countByQuestionId(questionId);
  }
Ejemplo n.º 21
0
  public static java.util.List findAll() throws com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findAll();
  }
Ejemplo n.º 22
0
  protected static java.util.List findAll() throws com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findAll();
  }
Ejemplo n.º 23
0
 public static void removeByC_C(java.lang.String companyId, java.lang.String className)
     throws com.liferay.portal.SystemException {
   AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);
   persistence.removeByC_C(companyId, className);
 }
Ejemplo n.º 24
0
 public static void removeByUserId(java.lang.String userId)
     throws com.liferay.portal.SystemException {
   AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);
   persistence.removeByUserId(userId);
 }
Ejemplo n.º 25
0
  public static int countByUserId(java.lang.String userId)
      throws com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.countByUserId(userId);
  }
Ejemplo n.º 26
0
  protected static java.util.List findByUserId(java.lang.String userId)
      throws com.liferay.portal.SystemException {
    PollsDisplayPersistence persistence = (PollsDisplayPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByUserId(userId);
  }
Ejemplo n.º 27
0
  public static com.liferay.portal.model.Address create(java.lang.String addressId) {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.create(addressId);
  }
Ejemplo n.º 28
0
  private static SessionConfiguration _getSessionConfigurationInstance(String className) {

    className = _getSessionConfigurationClassName(className);

    return (SessionConfiguration) InstancePool.get(_getSessionConfigurationClassName(className));
  }
Ejemplo n.º 29
0
  public static java.util.List findByCompanyId(java.lang.String companyId)
      throws com.liferay.portal.SystemException {
    AddressPersistence persistence = (AddressPersistence) InstancePool.get(PERSISTENCE);

    return persistence.findByCompanyId(companyId);
  }