Package org.apache.openjpa.jdbc.meta

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


        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

        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

        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

        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

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.