Examples of GlobalException


Examples of com.architecture.core.common.i18n.except.GlobalException

        }
    }

    public void merge(E entity) throws GlobalException{
        if (null == entity) {
            throw new GlobalException(Err.INVALID_OBJECT);
        }

        if (StringUtils.isBlank(entity.getId())) {
            throw new GlobalException(Err.INVALID_ID);
        }

        this.baseDAO.merge(entity);
    }
View Full Code Here

Examples of com.architecture.core.common.i18n.except.GlobalException

    }

    public List<E> queryList(String queryQL) throws GlobalException {

        if (StringUtils.isBlank(queryQL)) {
            throw new GlobalException(Err.INVALID_STRING);
        }
        return this.baseDAO.query(queryQL);
    }
View Full Code Here

Examples of com.architecture.core.common.i18n.except.GlobalException

        return this.baseDAO.query(queryQL);
    }

    public List<E> queryList(String queryQL, Map<String, Object> valMap) throws GlobalException {
        if (StringUtils.isBlank(queryQL)) {
            throw new GlobalException(Err.INVALID_STRING);
        }

        if (CollectionUtils.isEmpty(valMap)) {
            throw new GlobalException((Err.INVALID_COLLECT));
        }

        return this.baseDAO.query(queryQL, valMap);
    }
View Full Code Here

Examples of com.architecture.core.common.i18n.except.GlobalException

        return this.baseDAO.query(queryQL, valMap);
    }

    public List<E> queryList(String queryQL, int firstIndex, int fetchSize) throws GlobalException {
        if (StringUtils.isBlank(queryQL)) {
            throw new GlobalException(Err.INVALID_STRING);
        }

        if(firstIndex < 0) {
            throw new GlobalException(Err.INVALID_NUM);
        }

        if (fetchSize < 0) {
            throw new GlobalException(Err.INVALID_NUM);
        }

        return this.baseDAO.query(queryQL, firstIndex, fetchSize);
    }
View Full Code Here

Examples of com.architecture.core.common.i18n.except.GlobalException

        return this.baseDAO.query(queryQL, firstIndex, fetchSize);
    }

    public List<E> queryList(String queryQL, Map<String, Object> valMap,int firstIndex, int fetchSize) throws GlobalException {
        if (StringUtils.isBlank(queryQL)) {
            throw new GlobalException(Err.INVALID_STRING);
        }

        if (CollectionUtils.isEmpty(valMap)) {
            throw new GlobalException((Err.INVALID_COLLECT));
        }
        if(firstIndex < 0) {
            throw new GlobalException(Err.INVALID_NUM);
        }

        if (fetchSize < 0) {
            throw new GlobalException(Err.INVALID_NUM);
        }
        return this.baseDAO.query(queryQL, valMap, firstIndex, fetchSize);
    }
View Full Code Here

Examples of com.architecture.core.common.i18n.except.GlobalException

    }

    public List<Map<String, Object>> queryListMap(String queryQL) throws GlobalException {

        if (StringUtils.isBlank(queryQL)) {
            throw new GlobalException(Err.INVALID_STRING);
        }
        return this.baseDAO.queryMap(queryQL);
    }
View Full Code Here

Examples of com.architecture.core.common.i18n.except.GlobalException

        return this.baseDAO.queryMap(queryQL);
    }

    public List<Map<String, Object>> queryListMap(String queryQL, Map<String, Object> valMap) throws GlobalException {
        if (StringUtils.isBlank(queryQL)) {
            throw new GlobalException(Err.INVALID_STRING);
        }

        if (CollectionUtils.isEmpty(valMap)) {
            throw new GlobalException((Err.INVALID_COLLECT));
        }

        return this.baseDAO.queryMap(queryQL, valMap);
    }
View Full Code Here

Examples of com.architecture.core.common.i18n.except.GlobalException

        return this.baseDAO.queryMap(queryQL, valMap);
    }

    public List<Map<String, Object>> queryListMap(String queryQL, int firstIndex, int fetchSize) throws GlobalException {
        if (StringUtils.isBlank(queryQL)) {
            throw new GlobalException(Err.INVALID_STRING);
        }

        if(firstIndex < 0) {
            throw new GlobalException(Err.INVALID_NUM);
        }

        if (fetchSize < 0) {
            throw new GlobalException(Err.INVALID_NUM);
        }

        return this.baseDAO.queryMap(queryQL, firstIndex, fetchSize);
    }
View Full Code Here

Examples of com.architecture.core.common.i18n.except.GlobalException

        return this.baseDAO.queryMap(queryQL, firstIndex, fetchSize);
    }

    public List<Map<String, Object>> queryListMap(String queryQL, Map<String, Object> valMap,int firstIndex, int fetchSize) throws GlobalException {
        if (StringUtils.isBlank(queryQL)) {
            throw new GlobalException(Err.INVALID_STRING);
        }

        if (CollectionUtils.isEmpty(valMap)) {
            throw new GlobalException((Err.INVALID_COLLECT));
        }
        if(firstIndex < 0) {
            throw new GlobalException(Err.INVALID_NUM);
        }

        if (fetchSize < 0) {
            throw new GlobalException(Err.INVALID_NUM);
        }
        return this.baseDAO.queryMap(queryQL, valMap, firstIndex, fetchSize);
    }
View Full Code Here

Examples of com.architecture.core.common.i18n.except.GlobalException

    }

    public boolean hasPermit(String userID, Priv priv, String resID) throws GlobalException {

        if (StringUtils.isBlank(userID)) {
            throw new GlobalException(Err.INVALID_STRING);
        }

        if (null == priv) {
            throw new GlobalException(Err.INVALID_NUM);
        }

        if (StringUtils.isBlank(resID)) {
            throw new GlobalException(Err.INVALID_STRING);
        }

        if (false == ConfigHandler.getBoolean(Conf.RUNTIME_CONFIG_ACTIVE_PERMIT_CONTROL)) {
            return ConfigHandler.getBoolean(Conf.RUNTIME_CONFIG_DEFAULT_AUTH);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.