Examples of assertNoSchemaComponents()


Examples of org.apache.openjpa.jdbc.meta.ClassMappingInfo.assertNoSchemaComponents()

        ValueMapping vm = cls.getEmbeddingMapping();
        if (vm == null || vm.getType() != cls.getDescribedType())
            throw new MetaDataException(_loc.get("not-embed", cls));

        ClassMappingInfo info = cls.getMappingInfo();
        info.assertNoSchemaComponents(cls, true);

        ClassMapping owner = vm.getFieldMapping().getDefiningMapping();
        cls.setIdentityType(owner.getIdentityType());
        cls.setObjectIdType(owner.getObjectIdType(),
            owner.isObjectIdTypeShared());
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMappingInfo.assertNoSchemaComponents()

        ClassMapping sup = cls.getMappedPCSuperclassMapping();
        if (sup == null || cls.getEmbeddingMetaData() != null)
            throw new MetaDataException(_loc.get("not-sub", cls));

        ClassMappingInfo info = cls.getMappingInfo();
        info.assertNoSchemaComponents(cls, true);

        if (info.getTableName() != null) {
            Table table = info.createTable(cls, null, info.getSchemaName(),
                info.getTableName(), false);
            if (table != sup.getTable())
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMappingInfo.assertNoSchemaComponents()

        ValueMapping vm = cls.getEmbeddingMapping();
        if (vm == null || vm.getType() != cls.getDescribedType())
            throw new MetaDataException(_loc.get("not-embed", cls));

        ClassMappingInfo info = cls.getMappingInfo();
        info.assertNoSchemaComponents(cls, true);

        ClassMapping owner = null;
        if (vm.getValueMappedByMapping() != null)
            owner = vm.getValueMappedByMapping().getDefiningMapping();
        else
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMappingInfo.assertNoSchemaComponents()

        if (vm == null || vm.getType() != cls.getDescribedType()
            || vm.getTypeCode() != JavaTypes.OID)
            throw new MetaDataException(_loc.get("not-oid", cls));

        ClassMappingInfo info = cls.getMappingInfo();
        info.assertNoSchemaComponents(cls, true);
        cls.setTable(vm.getFieldMapping().getTable());
    }
}
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ClassMappingInfo.assertNoSchemaComponents()

        ClassMapping sup = cls.getMappedPCSuperclassMapping();
        if (sup == null || cls.getEmbeddingMetaData() != null)
            throw new MetaDataException(_loc.get("not-sub", cls));

        ClassMappingInfo info = cls.getMappingInfo();
        info.assertNoSchemaComponents(cls, true);

        if (!DBIdentifier.isNull(info.getTableIdentifier())) {
            Table table = info.createTable(cls, null, info.getSchemaIdentifier(),
                info.getTableIdentifier(), false);
            if (table != sup.getTable())
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.DiscriminatorMappingInfo.assertNoSchemaComponents()

        if (cls.getJoinablePCSuperclassMapping() != null
            || cls.getEmbeddingMetaData() != null)
            throw new MetaDataException(_loc.get("not-base-disc", cls));

        DiscriminatorMappingInfo info = disc.getMappingInfo();
        info.assertNoSchemaComponents(disc, true);

        // make sure outer joins are supported
        DBDictionary dict = cls.getMappingRepository().getDBDictionary();
        if (dict.joinSyntax == JoinSyntaxes.SYNTAX_TRADITIONAL)
            throw new MetaDataException(_loc.get("outer-join-support", cls));
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ValueMappingInfo.assertNoSchemaComponents()

        if (mapped != null) {
            mapped.resolve(mapped.MODE_META | mapped.MODE_MAPPING);
            if (!(mapped.getStrategy() instanceof RelationFieldStrategy))
                throw new MetaDataException(_loc.get("not-inv-relation",
                    field, mapped));
            vinfo.assertNoSchemaComponents(elem, !adapt);
            elem.setForeignKey(mapped.getForeignKey
                (field.getDefiningMapping()));
            elem.setColumns(mapped.getDefiningMapping().
                getPrimaryKeyColumns());
            elem.setJoinDirection(ValueMapping.JOIN_EXPECTED_INVERSE);
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ValueMappingInfo.assertNoSchemaComponents()

            mapped.resolve(mapped.MODE_META | mapped.MODE_MAPPING);
            if (!(mapped.getStrategy() instanceof RelationFieldStrategy
               || mapped.getHandler() instanceof UntypedPCValueHandler))
                throw new MetaDataException(_loc.get("not-inv-relation",
                    field, mapped));
            vinfo.assertNoSchemaComponents(elem, !adapt);
            elem.setForeignKey(mapped.getForeignKey
                (field.getDefiningMapping()));
            elem.setColumns(mapped.getDefiningMapping().
                getPrimaryKeyColumns());
            elem.setJoinDirection(ValueMapping.JOIN_EXPECTED_INVERSE);
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ValueMappingInfo.assertNoSchemaComponents()

            mapped.resolve(mapped.MODE_META | mapped.MODE_MAPPING);
            if (!(mapped.getStrategy() instanceof RelationFieldStrategy
               || mapped.getHandler() instanceof UntypedPCValueHandler))
                throw new MetaDataException(_loc.get("not-inv-relation",
                    field, mapped));
            vinfo.assertNoSchemaComponents(elem, !adapt);
            elem.setForeignKey(mapped.getForeignKey
                (field.getDefiningMapping()));
            elem.setColumns(mapped.getDefiningMapping().
                getPrimaryKeyColumns());
            elem.setJoinDirection(ValueMapping.JOIN_EXPECTED_INVERSE);
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.ValueMappingInfo.assertNoSchemaComponents()

        if (mapped != null) {
            mapped.resolve(mapped.MODE_META | mapped.MODE_MAPPING);
            if (!(mapped.getStrategy() instanceof RelationFieldStrategy))
                throw new MetaDataException(_loc.get("not-inv-relation",
                    field, mapped));
            vinfo.assertNoSchemaComponents(elem, !adapt);
            elem.setForeignKey(mapped.getForeignKey
                (field.getDefiningMapping()));
            elem.setColumns(mapped.getDefiningMapping().
                getPrimaryKeyColumns());
            elem.setJoinDirection(ValueMapping.JOIN_EXPECTED_INVERSE);
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.