Package org.apache.isis.runtimes.dflt.objectstores.sql.mapping

Examples of org.apache.isis.runtimes.dflt.objectstores.sql.mapping.FieldMapping


                simpleFieldNo++;
            }
        }

        for (final ObjectAssociation field : oneToOneProperties) {
            final FieldMapping mapping = lookup.createMapping(specification, field);
            fieldMappings.add(mapping);
            fieldMappingLookup.put(field, mapping);
        }

    }
View Full Code Here


                        if (sql.length() > initialLength) {
                            sql.append(" AND ");
                        }

                        final FieldMapping fieldMapping = fieldMappingFor(patternAssoc);
                        if (fieldMapping != null) {
                            fieldMapping.appendWhereClause(connector, sql, pattern);
                        } else {
                            // Have to use getXXX method if the fieldMapping is
                            // null..
                            final ObjectSpecification specification = patternAssoc.getSpecification();
View Full Code Here

        final int initialLength = sql.length();
        final ObjectAdapter pattern = query.getPattern();
        for (final ObjectAssociation assoc : specification.getAssociations()) {
            final ObjectAdapter field = assoc.get(pattern);
            if (field != null) {
                final FieldMapping fieldMapping = fieldMappingFor(assoc);
                if (fieldMapping != null) {
                    if (sql.length() > initialLength) {
                        sql.append(" AND ");
                    }
                    fieldMapping.appendWhereClause(connector, sql, pattern);
                }
            }
        }
        return loadInstances(connector, spec, completeSelectStatement(sql));
    }
View Full Code Here

                simpleFieldNo++;
            }
        }

        for (final ObjectAssociation field : oneToOneProperties) {
            final FieldMapping mapping = lookup.createMapping(field);
            fieldMappings.add(mapping);
            fieldMappingLookup.put(field, mapping);
        }

    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.objectstores.sql.mapping.FieldMapping

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.