Package org.apache.isis.objectstore.sql.mapping

Examples of org.apache.isis.objectstore.sql.mapping.ObjectReferenceMappingFactory


    public ObjectReferenceMapping createMapping(final ObjectSpecification spec) {
        return createMapping(spec.getShortIdentifier(), spec);
    }

    public ObjectReferenceMapping createMapping(final String columnName, final ObjectSpecification spec) {
        ObjectReferenceMappingFactory factory = referenceMappings.get(spec);
        if (factory != null) {
            return factory.createReferenceMapping(columnName, spec);
        } else if (spec.isEncodeable()) {
            // TODO add generic encodeable mapping
            throw new NotYetImplementedException();
        } else {// if (true /* TODO test for reference */) {
            factory = objectReferenceMappingfactory;
            // add(spec, factory);
            return factory.createReferenceMapping(columnName, spec); // TODO:
                                                                     // here
            // } else {
            // throw new IsisException("No mapper for " + spec +
            // " (no default mapper)");
        }
View Full Code Here

TOP

Related Classes of org.apache.isis.objectstore.sql.mapping.ObjectReferenceMappingFactory

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.