mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
53 lines
974 B
Java
53 lines
974 B
Java
/*
|
|
* 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<T> extends EntityPath<T>{
|
|
|
|
/**
|
|
* Get all columns
|
|
*
|
|
* @return
|
|
*/
|
|
List<Expr<?>> getColumns();
|
|
|
|
/**
|
|
* Get the primary key for this relation or null if none exists
|
|
*
|
|
* @return
|
|
*/
|
|
@Nullable
|
|
PrimaryKey<T> getPrimaryKey();
|
|
|
|
/**
|
|
* Get the foreign keys for this relation
|
|
*
|
|
* @return
|
|
*/
|
|
Collection<ForeignKey<?>> getForeignKeys();
|
|
|
|
/**
|
|
* Get the inverse foreign keys for this relation
|
|
*
|
|
* @return
|
|
*/
|
|
Collection<ForeignKey<?>> getInverseForeignKeys();
|
|
|
|
} |