Package org.jpox.store.exceptions

Examples of org.jpox.store.exceptions.DatastoreInitialisationException


                                {
                                    String msg = LOCALISER.msg("034004", data.getName());
                                    if (starter.getMode().equals(AutoStartMechanism.MODE_CHECKED))
                                    {
                                        JPOXLogger.PERSISTENCE.error(msg);
                                        throw new DatastoreInitialisationException(msg);
                                    }
                                    else if (starter.getMode().equals(AutoStartMechanism.MODE_IGNORED))
                                    {
                                        JPOXLogger.PERSISTENCE.warn(msg);
                                    }
                                    else if (starter.getMode().equals(AutoStartMechanism.MODE_QUIET))
                                    {
                                        JPOXLogger.PERSISTENCE.warn(msg);
                                        JPOXLogger.PERSISTENCE.warn(LOCALISER.msg("034001", data.getName()));
                                        starter.deleteClass(data.getName());
                                    }
                                }
                            }
                        }
                        else
                        {
                            String msg = LOCALISER.msg("034000", data.getName());
                            if (starter.getMode().equals(AutoStartMechanism.MODE_CHECKED))
                            {
                                JPOXLogger.PERSISTENCE.error(msg);
                                throw new DatastoreInitialisationException(msg);
                            }
                            else if (starter.getMode().equals(AutoStartMechanism.MODE_IGNORED))
                            {
                                JPOXLogger.PERSISTENCE.warn(msg);
                            }
View Full Code Here


            }
            return data;
        }
        catch (Exception e)
        {
            throw new DatastoreInitialisationException(LOCALISER_RDBMS.msg("049010",e),e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jpox.store.exceptions.DatastoreInitialisationException

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.