Package org.springframework.roo.addon.dbre.model

Examples of org.springframework.roo.addon.dbre.model.Database


            return null;
        }

        // Abort if the database couldn't be deserialized. This can occur if the
        // DBRE XML file has been deleted or is empty.
        final Database database = dbreModelService.getDatabase(false);
        if (database == null) {
            return null;
        }

        // We know governor type details are non-null and can be safely cast
View Full Code Here


    public void displayDatabaseMetadata(final Set<Schema> schemas,
            final File file, final boolean view) {
        Validate.notNull(schemas, "Schemas required");

        // Force it to refresh the database from the actual JDBC connection
        final Database database = dbreModelService.refreshDatabase(schemas,
                view, Collections.<String> emptySet(),
                Collections.<String> emptySet());
        database.setIncludeNonPortableAttributes(true);
        database.setDisableVersionFields(true);
        database.setDisableGeneratedIdentifiers(true);
        outputSchemaXml(database, schemas, file, true);
    }
View Full Code Here

            final boolean disableVersionFields,
            final boolean disableGeneratedIdentifiers,
            final boolean activeRecord, final boolean repository,
            final boolean service) {
        // Force it to refresh the database from the actual JDBC connection
        final Database database = dbreModelService.refreshDatabase(schemas,
                view, includeTables, excludeTables);
        database.setModuleName(projectOperations.getFocusedModuleName());
        database.setActiveRecord(activeRecord);
        database.setRepository(repository);
        database.setService(service);
        database.setDestinationPackage(destinationPackage);
        database.setIncludeNonPortableAttributes(includeNonPortableAttributes);
        database.setDisableVersionFields(disableVersionFields);
        database.setDisableGeneratedIdentifiers(disableGeneratedIdentifiers);
        database.setTestAutomatically(testAutomatically);
        outputSchemaXml(database, schemas, null, false);

        // Update the pom.xml to add an exclusion for the DBRE XML file in the
        // maven-war-plugin
        updatePom();
View Full Code Here

            }
        }
    }

    private void deserializeDatabase() {
        final Database database = dbreModelService.getDatabase(true);
        if (database != null) {
            identifierResults = new LinkedHashMap<JavaType, List<Identifier>>();
            reverseEngineer(database);
        }
    }
View Full Code Here

TOP

Related Classes of org.springframework.roo.addon.dbre.model.Database

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.