Package com.spoledge.audao.db.dao

Examples of com.spoledge.audao.db.dao.DaoException


        if (ret > 1) {
            String err = "More than one record deleted";
            log.error( err + " for " + sqlLog( cond, params ));

            throw new DaoException( err );
        }

        return ret == 1;
    }
View Full Code Here


    protected abstract T[] fetchArray( Query q, Object... params );
    protected abstract ArrayList<T> fetchList( Query q, Object... params );


    protected void handleException( JDOException e ) throws DaoException {
        throw new DaoException( e );
    }
View Full Code Here

        if (ret > 1) {
            String err = "More than one record deleted";
            log.error( err + " for " + sqlLog( cond, params ));

            throw new DaoException( err );
        }

        return ret == 1;
    }
View Full Code Here

            ret = ds.put( ent );
        }
        catch (ConcurrentModificationException e) {
            errorSql( e, operation, dto );

            throw new DaoException("Concurrent transaction detected on entity key=" + ent.getKey());
        }
        catch (Exception e) {
            errorSql( e, operation, dto );

            handleException( e );
View Full Code Here

            ret = ds.put( ents );
        }
        catch (ConcurrentModificationException e) {
            errorSql( e, operation, dtos );

            throw new DaoException("Concurrent transaction detected on entities");
        }
        catch (Exception e) {
            errorSql( e, operation, dtos );

            handleException( e );
View Full Code Here

            ds.delete( key );
        }
        catch (ConcurrentModificationException e) {
            log.error("entityDelete():" + e + ", key=" + key );

            throw new DaoException("Concurrent transaction detected on entity key=" + key);
        }
        catch (IllegalArgumentException e) {
            log.warn("entityDelete():" + e + ", key=" + key );

            return false;
View Full Code Here

            ds.delete( keys );
        }
        catch (ConcurrentModificationException e) {
            log.error("entityDelete():" + e);

            throw new DaoException("Concurrent transaction detected on entities");
        }
        catch (Exception e) {
            log.error("entityDelete():", e);

            handleException( e );
View Full Code Here

TOP

Related Classes of com.spoledge.audao.db.dao.DaoException

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.