Package org.apache.cayenne.modeler

Examples of org.apache.cayenne.modeler.ClassLoadingService


     * Tests that the entered information is valid and can be used to open a conneciton.
     * Does not store the open connection.
     */
    public void okAction() {
        DBConnectionInfo info = getConnectionInfo();
        ClassLoadingService classLoader = getApplication().getClassLoadingService();

        // try making an adapter...
        try {
            info.makeAdapter(classLoader);
        }
View Full Code Here


     */
    public void okAction() {
        // build connection and adapter...

        DBConnectionInfo info = getConnectionInfo();
        ClassLoadingService classLoader = getApplication().getClassLoadingService();

        try {
            this.adapter = info.makeAdapter(classLoader);
        }
        catch (Throwable th) {
View Full Code Here

        return choice;
    }

    private void processSelect() {
        try {
            ClassLoadingService classLoader = Application.getInstance().getClassLoadingService();
            String strategyClass = (String) strategyCombo.getSelectedItem();
           
            this.strategy = (NamingStrategy) classLoader.loadClass(strategyClass).newInstance();
           
            /**
             * Be user-friendly and update preferences with specified strategy
             */
            NamingStrategyPreferences.getInstance().addToLastUsedStrategies(strategyClass);
View Full Code Here

        this.entitySelector = new InferRelationshipsTabController(this);
    }

    public NamingStrategy createNamingStrategy(String strategyClass) {
        try {
            ClassLoadingService classLoader = Application
                    .getInstance()
                    .getClassLoadingService();

            return (NamingStrategy) classLoader.loadClass(strategyClass).newInstance();
        }
        catch (Throwable th) {
            logObj.error("Error in " + getClass().getName(), th);

            JOptionPane.showMessageDialog(
View Full Code Here

     * Tests that the entered information is valid and can be used to open a conneciton.
     * Does not store the open connection.
     */
    public void okAction() {
        DBConnectionInfo info = getConnectionInfo();
        ClassLoadingService classLoader = getApplication().getClassLoadingService();

        // try making an adapter...
        try {
            info.makeAdapter(classLoader);
        }
View Full Code Here

     */
    public void okAction() {
        // build connection and adapter...

        DBConnectionInfo info = getConnectionInfo();
        ClassLoadingService classLoader = getApplication().getClassLoadingService();

        try {
            this.adapter = info.makeAdapter(classLoader);
        }
        catch (Throwable th) {
View Full Code Here

        return choice;
    }

    private void processSelect() {
        try {
            ClassLoadingService classLoader = Application
                    .getInstance()
                    .getClassLoadingService();
            String strategyClass = (String) strategyCombo.getSelectedItem();

            this.strategy = classLoader
                    .loadClass(NamingStrategy.class, strategyClass)
                    .newInstance();

            /**
             * Be user-friendly and update preferences with specified strategy
View Full Code Here

     * Tests that the entered information is valid and can be used to open a conneciton.
     * Does not store the open connection.
     */
    public void okAction() {
        DBConnectionInfo info = getConnectionInfo();
        ClassLoadingService classLoader = getApplication().getClassLoadingService();

        // try making an adapter...
        try {
            info.makeAdapter(classLoader);
        }
View Full Code Here

        this.entitySelector = new InferRelationshipsTabController(this);
    }

    public NamingStrategy createNamingStrategy(String strategyClass) {
        try {
            ClassLoadingService classLoader = Application
                    .getInstance()
                    .getClassLoadingService();

            return classLoader.loadClass(NamingStrategy.class, strategyClass).newInstance();
        }
        catch (Throwable th) {
            logObj.error("Error in " + getClass().getName(), th);

            JOptionPane.showMessageDialog(
View Full Code Here

TOP

Related Classes of org.apache.cayenne.modeler.ClassLoadingService

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.