@Override public boolean isRootAggregate() { return mappingContextFactoryBuilder.isRoot() && !mappingContextFactoryBuilder.hasNoDependentKeys(); } private Class<T> getTargetClass() {
public KeyDefinition(KeyAndPredicate<S, K>[] keyAndPredicates, KeySourceGetter<K, ? super S> keySourceGetter, int index) { this.singleKeyAndPredicate = getSingle(keyAndPredicates); if (singleKeyAndPredicate == null) { this.keyAndPredicates = keyAndPredicates; } else { this.keyAndPredicates = null; } this.keySourceGetter = keySourceGetter; this.empty = keyAndPredicates == null || keyAndPredicates.length == 0; this.index = index; }
private static <S> KeyDefinition<S, ?> emptyToNull(KeyDefinition<S, ?> definition) { if (definition == null || definition.isEmpty()) { return null; } return definition; }
private MappingContext<? super Row> newMappingContext() { return mappingContextFactory.newContext(); } }
private Key singleValueKeys(S source) throws Exception { Object value; if (singleKeyAndPredicate.test(source)) { value = keySourceGetter.getValue(singleKeyAndPredicate.key, source); } else { return NOT_EQUALS; } return new SingleValueKey(value); }
public boolean hasNoDependentKeys() { if (!hasNoKeys()) { return false; } for(MappingContextFactoryBuilder<S, K> builder : children) { if (!builder.hasNoDependentKeys()) { return false; } } return true; }
@Override public MappingContextFactory<? super S> contextFactory() { return mappingContextFactoryBuilder.build(); }
public void handleSource(S source) throws MappingException { if (definition == null) { return; } currentKey = definition.getValues(source); }
private MappingContext<? super Row> newMappingContext() { return mappingContextFactory.newContext(); } }
private Key singleValueKeys(S source) throws Exception { Object value; if (singleKeyAndPredicate.test(source)) { value = keySourceGetter.getValue(singleKeyAndPredicate.key, source); } else { return NOT_EQUALS; } return new SingleValueKey(value); }
public boolean hasNoDependentKeys() { if (!hasNoKeys()) { return false; } for(MappingContextFactoryBuilder<S, K> builder : children) { if (!builder.hasNoDependentKeys()) { return false; } } return true; }
@Override public boolean isRootAggregate() { return mappingContextFactoryBuilder.isRoot() && !mappingContextFactoryBuilder.hasNoDependentKeys(); } private Class<T> getTargetClass() {
public KeyDefinition(KeyAndPredicate<S, K>[] keyAndPredicates, KeySourceGetter<K, ? super S> keySourceGetter, int index) { this.singleKeyAndPredicate = getSingle(keyAndPredicates); if (singleKeyAndPredicate == null) { this.keyAndPredicates = keyAndPredicates; } else { this.keyAndPredicates = null; } this.keySourceGetter = keySourceGetter; this.empty = keyAndPredicates == null || keyAndPredicates.length == 0; this.index = index; }
private static <S> KeyDefinition<S, ?> emptyToNull(KeyDefinition<S, ?> definition) { if (definition == null || definition.isEmpty()) { return null; } return definition; }
public void handleSource(S source) throws MappingException { if (definition == null) { return; } currentKey = definition.getValues(source); }
private MappingContext<? super Row> newMappingContext() { return mappingContextFactory.newContext(); } }
@Override public MappingContext<? super ResultSet> newMappingContext(ResultSet resultSet) throws SQLException { return mappingContextFactory.newContext(); }
@Override public MappingContext<? super ResultSet> newMappingContext(ResultSet resultSet) throws SQLException { return mappingContextFactory.newContext(); }
@Override public MappingContext<? super ResultSet> newMappingContext(ResultSet resultSet) throws SQLException { return mappingContextFactory.newContext(); }
@Override public MappingContext<? super ResultSet> newMappingContext(ResultSet resultSet) throws SQLException { return mappingContextFactory.newContext(); }