Package org.evolizer.core.exceptions

Examples of org.evolizer.core.exceptions.EvolizerException


                if (fragment.getElementType() == IJavaElement.PACKAGE_FRAGMENT) {
                    packages.add(fragment);
                }
            }
        } catch (JavaModelException jme) {
            throw new EvolizerException(jme);
        }
       
        return packages;
    }
View Full Code Here


     */
    public static boolean hasEvolizerNature(IProject project) throws EvolizerException {
        try {
            return project.hasNature(EvolizerNature.ID);
        } catch (CoreException e) {
            throw new EvolizerException(e);
        }
    }
View Full Code Here

                    Session hibernateSession = getSessionFactory(dbUrl).openSession();
                    session = new EvolizerSessionImpl(hibernateSession);
                    fSessionMap.put(dbUrl, session);
                } else {
//                    sfLogger.error("Evolizer session factory for '" + dbUrl + "' has not been initialized.");
                    throw new EvolizerException("Evolizer session factory for '" + dbUrl + "' has not been initialized.");
                }

            }
        } catch (HibernateException he) {
            throw new EvolizerException(he);
        }

        return session;
    }
View Full Code Here

            }

            session = getCurrentSession(dbUrl);
        } catch (CoreException ce) {
//            sfLogger.error("Could not obtain evolizer properties from project " + project.getName());
            throw new EvolizerException("Could not obtain evolizer properties from project " + project.getName(), ce);
        }

        return session;
    }
View Full Code Here

                initSessionFactory(properties);
            }
           
            session = getCurrentSession(dbUrl);
        } else {
            throw new EvolizerException("Properties must contain the 'hibernate.connection.url' entry");
        }

        return session;
    }
View Full Code Here

                    Configuration configuration = configureDataBaseConnection(properties);
                    fSessionFactoryMap.put(dbUrl, configuration.buildSessionFactory());
                    fConnectionPropertiesMap.put(dbUrl, properties);
                }
            } else {
                throw new EvolizerException("Properties must contain the 'hibernate.connection.url' entry");
            }
        } catch (HibernateException he) {
            throw new EvolizerException(he);
        }
    }
View Full Code Here

        try {
            Configuration configuration = configureDataBaseConnection(properties);
            SchemaExport exporter = new SchemaExport(configuration);
            exporter.create(false, true);
        } catch (HibernateException he) {
            throw new EvolizerException(he);
        }
    }
View Full Code Here

        try {
            Configuration configuration = configureDataBaseConnection(properties);
            SchemaUpdate updater = new SchemaUpdate(configuration);
            updater.execute(false, true);
        } catch (HibernateException he) {
            throw new EvolizerException(he);
        }
    }
View Full Code Here

        try {
            Configuration configuration = configureDataBaseConnection(properties);
            SchemaExport exporter = new SchemaExport(configuration);
            exporter.drop(false, true);
        } catch (HibernateException he) {
            throw new EvolizerException(he);
        }
    }
View Full Code Here

                // sfLogger.debug("Added annotated class '" + annotatedClass.getCanonicalName() +
                // "' to configuration.");
            }
        } catch (MappingException e) {
            sfLogger.error("Error while mapping annotated classes " + e.getMessage(), e);
            throw new EvolizerException(e);
        }

        return configuration;
    }
View Full Code Here

TOP

Related Classes of org.evolizer.core.exceptions.EvolizerException

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.