Examples of JPARSException


Examples of org.eclipse.persistence.jpa.rs.exceptions.JPARSException

                    adapters.add((XmlAdapter) referenceAdaptorConstructor.newInstance(args));
                }
            }
        } catch(Exception ex) {
            ex.printStackTrace();
            throw new JPARSException(ex.getMessage());
        }
        return adapters;
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.exceptions.JPARSException

                writer.writeEndDocument();
                writer.flush();
                postMarshallEntity(object);
            } catch (Exception e) {
                e.printStackTrace();
                throw new JPARSException(e.toString());
            }
        } else {
            marshaller.marshal(object, output);
            postMarshallEntity(object);
        }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.exceptions.JPARSException

                        xmlChoiceMapping.setConverter(new XMLJavaTypeConverter(Class.forName(adapterClassName, true, cl)));
                        jaxbDescriptor.removeMappingForAttributeName(jaxbMapping.getAttributeName());
                        jaxbDescriptor.addMapping(xmlChoiceMapping);
                    }
                } catch (ClassNotFoundException e) {
                    throw new JPARSException(e.toString());
                }
            }
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.exceptions.JPARSException

                writer.writeEndDocument();
                writer.flush();
                postMarshallEntity(object);
            } catch (Exception e) {
                e.printStackTrace();
                throw new JPARSException(e.toString());
            }
        } else {
            marshaller.marshal(object, output);
            postMarshallEntity(object);
        }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.exceptions.JPARSException

                    adapters.add((XmlAdapter) referenceAdaptorConstructor.newInstance(args));
                }
            }
        } catch(Exception ex) {
            ex.printStackTrace();
            throw new JPARSException(ex.getMessage());
        }
        return adapters;
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.exceptions.JPARSException

            ((FetchGroupTracker) entity)._persistence_setSession(JpaHelper.getDatabaseSession(getEmf()));
        } else if (descriptor.hasRelationships()){
            for (DatabaseMapping mapping: descriptor.getMappings()){
                if (mapping instanceof XMLInverseReferenceMapping){
                    // we require Fetch groups to handle relationships
                    throw new JPARSException(LoggingLocalization.buildMessage("weaving_required_for_relationships", new Object[]{}));
                }
            }
        }
        return entity;
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.exceptions.JPARSException

                }
                writer.writeEndDocument();
                postMarshallEntity(object);
            } catch (Exception e){
                e.printStackTrace();
                throw new JPARSException(e.toString());
            }
        } else {      
            marshaller.marshal(object, output);
            postMarshallEntity(object);
        }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.exceptions.JPARSException

                    adapters.add((XmlAdapter) referenceAdaptorConstructor.newInstance(args));
                }
            }
        } catch(Exception ex) {
            ex.printStackTrace();
            throw new JPARSException(ex.getMessage());
        }
        return adapters;
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.exceptions.JPARSException

                    xmlChoiceMapping.setConverter(new XMLJavaTypeConverter(Class.forName(adapterClassName, true, cl)));
                    jaxbDescriptor.removeMappingForAttributeName(jaxbMapping.getAttributeName());
                    jaxbDescriptor.addMapping(xmlChoiceMapping);
                }
            } catch (ClassNotFoundException e) {
                throw new JPARSException(e.toString());
            }
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.exceptions.JPARSException

        if (entity != null) {
            return entity;
        }
        // It is an error if the object referred by a link in unmarshal doesn't
        // exist, so throw exception
        throw new JPARSException(LoggingLocalization.buildMessage("object_referred_by_link_does_not_exist", new Object[]{entityType, id}));
    }
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.