Package com.liferay.portal.kernel.dao.orm

Examples of com.liferay.portal.kernel.dao.orm.Session


    throws SystemException {
    sTransaction = toUnwrappedModel(sTransaction);

    boolean isNew = sTransaction.isNew();

    Session session = null;

    try {
      session = openSession();

      BatchSessionUtil.update(session, sTransaction, merge);
View Full Code Here


    if (sTransaction == _nullSTransaction) {
      return null;
    }

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

      boolean hasException = false;

      try {
        session = openSession();

        sTransaction = (STransaction)session.get(STransactionImpl.class,
            Long.valueOf(transactionId));
      }
      catch (Exception e) {
        hasException = true;
View Full Code Here

      }
      else {
        sql = _SQL_SELECT_STRANSACTION;
      }

      Session session = null;

      try {
        session = openSession();

        Query q = session.createQuery(sql);

        if (orderByComparator == null) {
          list = (List<STransaction>)QueryUtil.list(q, getDialect(),
              start, end, false);
View Full Code Here

  public int countAll() throws SystemException {
    Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
        FINDER_ARGS_EMPTY, this);

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

      try {
        session = openSession();

        Query q = session.createQuery(_SQL_COUNT_STRANSACTION);

        count = (Long)q.uniqueResult();
      }
      catch (Exception e) {
        throw processException(e);
View Full Code Here

   * @throws SystemException if a system exception occurred
   */
  @Override
  public SMember remove(Serializable primaryKey)
    throws NoSuchSMemberException, SystemException {
    Session session = null;

    try {
      session = openSession();

      SMember sMember = (SMember)session.get(SMemberImpl.class, primaryKey);

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

  @Override
  protected SMember removeImpl(SMember sMember) throws SystemException {
    sMember = toUnwrappedModel(sMember);

    Session session = null;

    try {
      session = openSession();

      BatchSessionUtil.delete(session, sMember);
View Full Code Here

    boolean merge) throws SystemException {
    sMember = toUnwrappedModel(sMember);

    boolean isNew = sMember.isNew();

    Session session = null;

    try {
      session = openSession();

      BatchSessionUtil.update(session, sMember, merge);
View Full Code Here

    if (sMember == _nullSMember) {
      return null;
    }

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

      boolean hasException = false;

      try {
        session = openSession();

        sMember = (SMember)session.get(SMemberImpl.class,
            Long.valueOf(memberId));
      }
      catch (Exception e) {
        hasException = true;
View Full Code Here

      }
      else {
        sql = _SQL_SELECT_SMEMBER;
      }

      Session session = null;

      try {
        session = openSession();

        Query q = session.createQuery(sql);

        if (orderByComparator == null) {
          list = (List<SMember>)QueryUtil.list(q, getDialect(),
              start, end, false);
View Full Code Here

  public int countAll() throws SystemException {
    Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL,
        FINDER_ARGS_EMPTY, this);

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

      try {
        session = openSession();

        Query q = session.createQuery(_SQL_COUNT_SMEMBER);

        count = (Long)q.uniqueResult();
      }
      catch (Exception e) {
        throw processException(e);
View Full Code Here

TOP

Related Classes of com.liferay.portal.kernel.dao.orm.Session

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.