Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2011 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

public abstract class EntityMapper<S, E, T> implements PathMapper<T> {
    private Neo4jTemplate template;
    protected EntityMapper(Neo4jTemplate template) {
        this. = template;
    public abstract T mapPath(EntityPath<S,E> entityPath);
    public T mapPath(Path path) {
        return mapPath(new ConvertingEntityPath<S,E>(path));
    public abstract static class WithoutResult<S,E> extends EntityMapper<S,E,Void> {
        protected WithoutResult(Neo4jTemplate template) {
        public Void mapPath(EntityPath<S, E> entityPath) {
            return null;
        public abstract void doWithPath(EntityPath<S, E> entityPath);
New to GrepCode? Check out our FAQ X