/* * Copyright (c) 2010 Mysema Ltd. * All rights reserved. * */ package com.mysema.query.sql; import java.util.Collection; import java.util.List; import javax.annotation.Nullable; import com.mysema.query.types.EntityPath; import com.mysema.query.types.Expr; /** * RelationalPath extends EntityPath to provide access to relational metadata * * @author tiwe * */ public interface RelationalPath extends EntityPath{ /** * Get all columns * * @return */ List> getColumns(); /** * Get the primary key for this relation or null if none exists * * @return */ @Nullable PrimaryKey getPrimaryKey(); /** * Get the foreign keys for this relation * * @return */ Collection> getForeignKeys(); /** * Get the inverse foreign keys for this relation * * @return */ Collection> getInverseForeignKeys(); }