Package com.sun.jdo.spi.persistence.generator.database

Examples of com.sun.jdo.spi.persistence.generator.database.MappingPolicy


    private DatabaseGenerator.Results generateSchema(List pcClasses,
            String dbName, String useUniqueTableNames,
            Properties userPolicy)
            throws IOException, DBException, ModelException {

        MappingPolicy mappingPolicy = MappingPolicy.getMappingPolicy(dbName);
        mappingPolicy.setUserPolicy(userPolicy);

        if (isPropertyDefined(useUniqueTableNames)) {
            // It was explicitly set.
            mappingPolicy.setUniqueTableName(
                Boolean.valueOf(useUniqueTableNames).booleanValue());
        }

       return DatabaseGenerator.generate(
                model, pcClasses, mappingPolicy,
View Full Code Here


    private DatabaseGenerator.Results generateSchema(List pcClasses,
            String dbName, Boolean useUniqueTableNames,
            Properties userPolicy)
            throws IOException, DBException, ModelException {

        MappingPolicy mappingPolicy = MappingPolicy.getMappingPolicy(dbName);
        mappingPolicy.setUserPolicy(userPolicy);

        if (useUniqueTableNames != null) {
            // It was explicitly set.
            mappingPolicy.setUniqueTableName(useUniqueTableNames.booleanValue());
        }

       return DatabaseGenerator.generate(
                model, pcClasses, mappingPolicy,
                infoHelper.getSchemaNameToGenerate(), CLASS_SUFFIX, true);
View Full Code Here

TOP

Related Classes of com.sun.jdo.spi.persistence.generator.database.MappingPolicy

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.