com.mysema.query.alias.PathFactory Maven / Gradle / Ivy
/*
* Copyright 2011, Mysema Ltd
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
* 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.
*/
package com.mysema.query.alias;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.mysema.query.types.Path;
import com.mysema.query.types.PathMetadata;
/**
* PathFactory defines a factory interface for Path creation
*
* @author tiwe
*
*/
public interface PathFactory {
/**
* @param type
* @param metadata
* @return
*/
Path createArrayPath(Class type, PathMetadata> metadata);
/**
* @param type
* @param metadata
* @return
*/
Path createEntityPath(Class type, PathMetadata> metadata);
/**
* @param type
* @param metadata
* @return
*/
Path createSimplePath(Class type, PathMetadata> metadata);
/**
* @param type
* @param metadata
* @return
*/
> Path createComparablePath(Class type, PathMetadata> metadata);
/**
* @param type
* @param metadata
* @return
*/
> Path createEnumPath(Class type, PathMetadata> metadata);
/**
* @param type
* @param metadata
* @return
*/
> Path createDatePath(Class type, PathMetadata> metadata);
/**
* @param type
* @param metadata
* @return
*/
> Path createTimePath(Class type, PathMetadata> metadata);
/**
* @param type
* @param metadata
* @return
*/
> Path createDateTimePath(Class type, PathMetadata> metadata);
/**
* @param type
* @param metadata
* @return
*/
> Path createNumberPath(Class type, PathMetadata> metadata);
/**
* @param metadata
* @return
*/
Path createBooleanPath(PathMetadata> metadata);
/**
* @param metadata
* @return
*/
Path createStringPath(PathMetadata> metadata);
/**
* @param elementType
* @param metadata
* @return
*/
Path> createListPath(Class elementType, PathMetadata> metadata);
/**
* @param elementType
* @param metadata
* @return
*/
Path> createSetPath(Class elementType, PathMetadata> metadata);
/**
* @param elementType
* @param metadata
* @return
*/
Path> createCollectionPath(Class elementType, PathMetadata> metadata);
/**
* @param keyType
* @param valueType
* @param metadata
* @return
*/
Path