modules/liferay-travel/liferay-travel-service/src/main/java/com/liferay/travel/service/persistence/impl/StagePersistenceImpl.java
/**
	 * Returns the number of stages.
	 *
	 * @return the number of stages
	 */
Returns the number of stages.
@return the number of stages
Returns the number of stages . @return the number of stages
@Override
	public int countAll() {
		Long count = (Long)finderCache.getResult(
			_finderPathCountAll, FINDER_ARGS_EMPTY, this);
		if (count == null) {
			Session session = null;
			try {
				session = openSession();
				Query query = session.createQuery(_SQL_COUNT_STAGE);
				count = (Long)query.uniqueResult();
				finderCache.putResult(
					_finderPathCountAll, FINDER_ARGS_EMPTY, count);
			}
			catch (Exception exception) {
				throw processException(exception);
			}
			finally {
				closeSession(session);
			}
		}
		return count.intValue();
	}
@ Override public int countAll ( ) { Long count = ( Long ) finderCache . getResult ( _finderPathCountAll , FINDER_ARGS_EMPTY , this ) ; if ( count == null ) { Session session = null ; try { session = openSession ( ) ; Query query = session . createQuery ( _SQL_COUNT_STAGE ) ; count = ( Long ) query . uniqueResult ( ) ; finderCache . putResult ( _finderPathCountAll , FINDER_ARGS_EMPTY , count ) ; } catch ( Exception exception ) { throw processException ( exception ) ; } finally { closeSession ( session ) ; } } return count . intValue ( ) ; }
Returns the number of stages.
Returns the number of stages .