Examples of supportsGeneratedKeys()


Examples of org.apache.cayenne.dba.DbAdapter.supportsGeneratedKeys()

        Out.error(SchemaValidator.class, "The database requires rebuilding");

        // Generate schema from the mapping file
        DbGenerator generator = new DbGenerator(adapter, dataMap);
        generator.setShouldCreateFKConstraints(adapter.supportsFkConstraints());
        generator.setShouldCreatePKSupport(!adapter.supportsGeneratedKeys());
        generator.setShouldCreateTables(true);
        generator.setShouldDropPKSupport(true);
        generator.setShouldDropTables(true);
        generator.runGenerator(dataSource);
View Full Code Here

Examples of org.apache.cayenne.dba.DbAdapter.supportsGeneratedKeys()

            DbAdapter adapter = node.getAdapter();

            // skip db-generated... looks like we don't care about the actual PK value
            // here, so no need to retrieve db-generated pk back to Java.
            if (adapter.supportsGeneratedKeys() && dbAttr.isGenerated()) {
                continue;
            }

            if (autoPkDone) {
                throw new CayenneRuntimeException(
View Full Code Here

Examples of org.apache.cayenne.dba.DbAdapter.supportsGeneratedKeys()

            DbAdapter adapter = node.getAdapter();

            // skip db-generated... looks like we don't care about the actual PK value
            // here, so no need to retrieve db-generated pk back to Java.
            if (adapter.supportsGeneratedKeys() && dbAttr.isGenerated()) {
                continue;
            }

            if (autoPkDone) {
                throw new CayenneRuntimeException(
View Full Code Here

Examples of org.apache.cayenne.dba.DbAdapter.supportsGeneratedKeys()

            DbAdapter adapter = node.getAdapter();

            // skip db-generated... looks like we don't care about the actual PK
            // value
            // here, so no need to retrieve db-generated pk back to Java.
            if (adapter.supportsGeneratedKeys() && dbAttr.isGenerated()) {
                continue;
            }

            if (autoPkDone) {
                throw new CayenneRuntimeException(
View Full Code Here

Examples of org.apache.cayenne.dba.DbAdapter.supportsGeneratedKeys()

            DbAdapter adapter = node.getAdapter();

            // skip db-generated... looks like we don't care about the actual PK value
            // here, so no need to retrieve db-generated pk back to Java.
            if (adapter.supportsGeneratedKeys() && dbAttr.isGenerated()) {
                continue;
            }

            if (autoPkDone) {
                throw new CayenneRuntimeException(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.