Package org.apache.openjpa.util

Examples of org.apache.openjpa.util.QueryException


            break;
        case StoreException.REFERENTIAL_INTEGRITY:
            storeEx = new ReferentialIntegrityException(msg);
            break;
        case StoreException.QUERY:
            storeEx = new QueryException(msg);
            break;
        default:
            storeEx = new StoreException(msg);
        }
        storeEx.setFatal(isFatalException(errorType, ex));
View Full Code Here


            break;
        case StoreException.REFERENTIAL_INTEGRITY:
            storeEx = new ReferentialIntegrityException(msg);
            break;
        case StoreException.QUERY:
            storeEx = new QueryException(msg);
            break;
        default:
            storeEx = new StoreException(msg);
        }
        storeEx.setFatal(isFatalException(errorType, ex));
View Full Code Here

            break;
        case StoreException.REFERENTIAL_INTEGRITY:
            storeEx = new ReferentialIntegrityException(msg);
            break;
        case StoreException.QUERY:
            storeEx = new QueryException(msg);
            break;
        default:
            storeEx = new StoreException(msg);
        }
        storeEx.setFatal(isFatalException(errorType, ex));
View Full Code Here

            break;
        case StoreException.REFERENTIAL_INTEGRITY:
            storeEx = new ReferentialIntegrityException(msg);
            break;
        case StoreException.QUERY:
            storeEx = new QueryException(msg);
            break;
        default:
            storeEx = new StoreException(msg);
        }
        storeEx.setFatal(isFatalException(errorType, ex));
View Full Code Here

                e = new org.apache.openjpa.persistence.OptimisticLockException(msg, nested, failed, fatal);
            }
        } else if (subtype == StoreException.OBJECT_EXISTS || cause instanceof ObjectExistsException) {
                e = new org.apache.openjpa.persistence.EntityExistsException(msg, nested, failed, fatal);
        } else if (subtype == StoreException.QUERY || cause instanceof QueryException) {
            QueryException queryEx = (QueryException) (ke instanceof QueryException ? ke : cause);
            if (!queryEx.isFatal()) {
                e = new org.apache.openjpa.persistence.QueryTimeoutException(msg, nested, failed, false);
            } else {
                e = new org.apache.openjpa.persistence.PersistenceException(msg, nested, failed, true);
            }
        } else {
View Full Code Here

            break;
        case StoreException.REFERENTIAL_INTEGRITY:
            storeEx = new ReferentialIntegrityException(msg);
            break;
        case StoreException.QUERY:
            storeEx = new QueryException(msg);
            break;
        default:
            storeEx = new StoreException(msg);
        }
        storeEx.setFatal(isFatalException(errorType, ex));
View Full Code Here

                e = new org.apache.openjpa.persistence.OptimisticLockException(msg, nested, failed, fatal);
            }
        } else if (subtype == StoreException.OBJECT_EXISTS || cause instanceof ObjectExistsException) {
                e = new org.apache.openjpa.persistence.EntityExistsException(msg, nested, failed, fatal);
        } else if (subtype == StoreException.QUERY || cause instanceof QueryException) {
            QueryException queryEx = (QueryException) (ke instanceof QueryException ? ke : cause);
            if (!queryEx.isFatal()) {
                e = new org.apache.openjpa.persistence.QueryTimeoutException(msg, nested, failed, false);
            } else {
                e = new org.apache.openjpa.persistence.PersistenceException(msg, nested, failed, true);
            }
        } else {
View Full Code Here

            break;
        case StoreException.REFERENTIAL_INTEGRITY:
            storeEx = new ReferentialIntegrityException(msg);
            break;
        case StoreException.QUERY:
            storeEx = new QueryException(msg);
            break;
        default:
            storeEx = new StoreException(msg);
        }
        storeEx.setFatal(isFatalException(errorType, ex));
View Full Code Here

            break;
        case StoreException.REFERENTIAL_INTEGRITY:
            storeEx = new ReferentialIntegrityException(msg);
            break;
        case StoreException.QUERY:
            storeEx = new QueryException(msg);
            break;
        default:
            storeEx = new StoreException(msg);
        }
        storeEx.setFatal(isFatalException(errorType, ex));
View Full Code Here

            break;
        case StoreException.REFERENTIAL_INTEGRITY:
            storeEx = new ReferentialIntegrityException(msg);
            break;
        case StoreException.QUERY:
            storeEx = new QueryException(msg);
            break;
        default:
            storeEx = new StoreException(msg);
        }
        storeEx.setFatal(isFatalException(errorType, ex));
View Full Code Here

TOP

Related Classes of org.apache.openjpa.util.QueryException

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.