Package atg.adapter.gsa

Examples of atg.adapter.gsa.OutputSQLContext


        if ( pDatabaseName == null ) {
            pDatabaseName = getDatabaseName();
        }

        String[] descriptorNames = getWrappedRepository().getItemDescriptorNames();
        OutputSQLContext sqlContext = new OutputSQLContext(pOut);
        GSAItemDescriptor itemDescriptors[];
        //DatabaseTableInfo dti = getDatabaseTableInfo(pDatabaseName);
        int i, length = descriptorNames.length;

        itemDescriptors = new GSAItemDescriptor[length];
        for ( i = 0; i < length; i++ ) {
            itemDescriptors[i] = (GSAItemDescriptor) getWrappedRepository().getItemDescriptor(
                    descriptorNames[i]
            );
        }

        String create = null;
        String index = null;
        HashSet<String> tableNames = new HashSet<String>();
        for ( i = 0; i < length; i++ ) {
            GSAItemDescriptor desc = itemDescriptors[i];
            Table[] tables = desc.getTables();
            if ( tables != null ) {
                for ( Table t : tables ) {
                    if ( !t.isInherited() && !tableNames.contains(t.getName()) ) {
                        sqlContext.clear();
                        create = t.generateSQL(sqlContext, pDatabaseName);
                        // get rid of any possible CREATE INDEX statements and store those
                        // in their own Vector of statements...
                        index = extractIndexStatement(create);
                        create = removeIndexStatements(create);
View Full Code Here


        if (pDatabaseName == null) {
            pDatabaseName = getDatabaseName();
        }

        String[] descriptorNames = getItemDescriptorNames();
        OutputSQLContext sqlContext = new OutputSQLContext(pOut);
        GSAItemDescriptor itemDescriptors[];
        DatabaseTableInfo dti = getDatabaseTableInfo(pDatabaseName);
        int i, length = descriptorNames.length;

        itemDescriptors = new GSAItemDescriptor[length];
        for (i = 0; i < length; i++) {
            itemDescriptors[i] = (GSAItemDescriptor) getItemDescriptor(descriptorNames[i]);
        }

        String create = null;
        String index = null;
        for (i = 0; i < length; i++) {
            GSAItemDescriptor desc = itemDescriptors[i];
            Table[] tables = desc.getTables();
            if (tables != null) {
                for (Table t : tables) {
                    if (!t.isInherited()) {
                        sqlContext.clear();
                        create = t.generateSQL(sqlContext, pDatabaseName);
                        // get rid of any possible CREATE INDEX statements and store those
                        // in their own Vector of statements...
                        index = extractIndexStatement(create);
                        create = removeIndexStatements(create);
View Full Code Here

TOP

Related Classes of atg.adapter.gsa.OutputSQLContext

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.