Package in.partake.base

Examples of in.partake.base.PartakeRuntimeException


        case CANCELLED:
            return CalculatedEnrollmentStatus.CANCELLED;
        }

        assert false;
        throw new PartakeRuntimeException(ServerErrorCode.LOGIC_ERROR);
    }
View Full Code Here


        case PUBLISHED_PUBLIC_EVENT_ONLY:
            return indexDao.count(pcon, new String[] { "draft", "isPrivate" }, new Object[] { false, false });
        }

        assert false;
        throw new PartakeRuntimeException(ServerErrorCode.LOGIC_ERROR);
    }
View Full Code Here

        case PUBLISHED_PUBLIC_EVENT_ONLY:
            return indexDao.count(pcon, new String[] { "ownerId", "draft", "isPrivate" }, new Object[] { userId, false, false });
        }

        assert false;
        throw new PartakeRuntimeException(ServerErrorCode.LOGIC_ERROR);
    }
View Full Code Here

        else if (obj instanceof Integer)
            ps.setInt(nth, (Integer) obj);
        else if (obj instanceof Boolean)
            ps.setBoolean(nth, (Boolean) obj);
        else
            throw new PartakeRuntimeException(ServerErrorCode.LOGIC_ERROR);
    }
View Full Code Here

            return new DateTime(event.getBeginDate().getTime() - 24 * 3600 * 1000 * applicationStartDayBeforeEvent);
        case FROM_CUSTOM_DAY:
            return customApplicationStartDate;
        }

        throw new PartakeRuntimeException(ServerErrorCode.LOGIC_ERROR);
    }
View Full Code Here

            return event.getBeginDate().nDayBefore(applicationEndDayBeforeEvent);
        case TILL_CUSTOM_DAY:
            return customApplicationEndDate;
        }

        throw new PartakeRuntimeException(ServerErrorCode.LOGIC_ERROR);
    }
View Full Code Here

            return acceptsTill(event).nHourBefore(reservationEndHourBeforeApplication);
        case TILL_CUSTOM_DAY:
            return customReservationEndDate;
        }

        throw new PartakeRuntimeException(ServerErrorCode.LOGIC_ERROR);
    }
View Full Code Here

    }

    @Override
    protected PartakeConnection getConnectionImpl(String name) throws DAOException {
        if (dataSource == null)
            throw new PartakeRuntimeException(ServerErrorCode.DB_CONNECTION_POOL_INITIALIZATION_FAILURE);

        long now = new Date().getTime();
        try {
            Connection con = dataSource.getConnection();
            con.setAutoCommit(false);
View Full Code Here

TOP

Related Classes of in.partake.base.PartakeRuntimeException

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.