Package org.apache.torque

Examples of org.apache.torque.TorqueInstance


    public void initialize()
            throws Exception
    {
        getLogger().debug("initialize()");
       
        TorqueInstance instance = org.apache.torque.Torque.getInstance();
       
        // Check if another singleton is already running
        if (instance.isInit())
        {
            Map mapBuilders = instance.getMapBuilders();
           
            // Copy the registered MapBuilders and take care that they will be built again
            for (Iterator  i = mapBuilders.keySet().iterator(); i.hasNext();)
            {
                String className = (String)i.next();
View Full Code Here


    public void initialize()
            throws Exception
    {
        getLogger().debug("initialize()");
       
        TorqueInstance instance = org.apache.torque.Torque.getInstance();
       
        Map mapBuilders = instance.getMapBuilders();
       
        if (mapBuilders != null)
        {   
            // Copy the registered MapBuilders and take care that they will be built again
            for (Iterator  i = mapBuilders.keySet().iterator(); i.hasNext();)
View Full Code Here

    public void initialize()
            throws Exception
    {
        getLogger().debug("initialize()");

        TorqueInstance instance = org.apache.torque.Torque.getInstance();

        // Copy the database maps
        Map<String, Database> databases = null;
        if (instance.isInit())
        {
            databases = instance.getDatabases();
            for (Database otherDatabase : databases.values())
            {
                getDatabaseMap(otherDatabase.getName()).copyFrom(
                        otherDatabase.getDatabaseMap());
            }
        }

        // Provide the singleton instance to the static accessor
        org.apache.torque.Torque.setInstance(this);

        init(configFile);

        // start the id brokers
        if (instance.isInit())
        {
            for (Database otherDatabase : databases.values())
            {
                Database database = getDatabase(otherDatabase.getName());
                if (otherDatabase.getIdBroker() != null)
View Full Code Here

TOP

Related Classes of org.apache.torque.TorqueInstance

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.