Package org.apache.isis.objectstore.sql

Examples of org.apache.isis.objectstore.sql.ObjectMapping


        if (objectSpecification.isAbstract() == false) {
            final String tableNameFromSpecification = getTableNameFromSpecification(objectSpecification);
            tables.add(tableNameFromSpecification);
            tableSpecifications.add(objectSpecification);

            final ObjectMapping autoMapper = objectMapperLookup.getMapping(objectSpecification, null);
            subClassMappers.add(autoMapper);
        }
        if (objectSpecification.hasSubclasses()) {
            for (final ObjectSpecification subSpecification : objectSpecification.subclasses()) {
                addSubSpecificationsToTable(subSpecification);
View Full Code Here


        while (rs.next()) {
            final ObjectSpecification itemSpecification = reflector.loadSpecification(rs.getString(classColumnName));
            idMapping.setObjectSpecification(itemSpecification);

            // Load new recordSet for the actual class
            final ObjectMapping itemMapper = objectMappingLookup.getMapping(itemSpecification, connector);
            final TypedOid oid = idMapping.recreateOid(rs, itemSpecification);
            final ObjectAdapter loadedObject = itemMapper.getObject(connector, oid);

            LOG.debug("  element  " + loadedObject.getOid());

            list.add(loadedObject);
        }
View Full Code Here

TOP

Related Classes of org.apache.isis.objectstore.sql.ObjectMapping

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.