com.mysema.query.sql
Class RelationalPathBase<T>

java.lang.Object
  extended by com.mysema.query.types.Expr<D>
      extended by com.mysema.query.types.expr.ESimple<D>
          extended by com.mysema.query.types.path.BeanPath<T>
              extended by com.mysema.query.sql.RelationalPathBase<T>
Type Parameters:
T -
All Implemented Interfaces:
RelationalPath<T>, EntityPath<T>, Path<T>, Serializable

public class RelationalPathBase<T>
extends BeanPath<T>
implements RelationalPath<T>

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.Expr
primitive
 
Constructor Summary
RelationalPathBase(Class<? extends T> type, PathMetadata<?> metadata)
           
RelationalPathBase(Class<? extends T> type, String variable)
           
 
Method Summary
protected
<P extends Path<?>>
P
add(P path)
          Template method for tracking child path creation
 Expr<?>[] all()
           
protected
<F> ForeignKey<F>
createForeignKey(List<? extends Path<?>> local, List<String> foreign)
           
protected
<F> ForeignKey<F>
createForeignKey(Path<?> local, String foreign)
           
protected
<F> ForeignKey<F>
createInvForeignKey(List<? extends Path<?>> local, List<String> foreign)
           
protected
<F> ForeignKey<F>
createInvForeignKey(Path<?> local, String foreign)
           
protected  PrimaryKey<T> createPrimaryKey(Path<?>... columns)
           
 List<Expr<?>> getColumns()
          Get all columns
 Collection<ForeignKey<?>> getForeignKeys()
          Get the foreign keys for this relation
 Collection<ForeignKey<?>> getInverseForeignKeys()
          Get the inverse foreign keys for this relation
 PrimaryKey<T> getPrimaryKey()
          Get the primary key for this relation or null if none exists
 
Methods inherited from class com.mysema.query.types.path.BeanPath
accept, as, createArray, createBoolean, createCollection, createComparable, createDate, createDateTime, createEnum, createList, createMap, createNumber, createSet, createSimple, createString, createTime, equals, forProperty, getAnnotatedElement, getMetadata, getRoot, hashCode, instanceOf, isNotNull, isNull
 
Methods inherited from class com.mysema.query.types.expr.ESimple
as, as, asExpr, count, countDistinct, eq, eq, in, in, in, ne, ne, when, when
 
Methods inherited from class com.mysema.query.types.Expr
getType, notIn, notIn, notIn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.mysema.query.types.Path
asExpr, getAnnotatedElement, getMetadata, getRoot, getType, isNotNull, isNull
 

Constructor Detail

RelationalPathBase

public RelationalPathBase(Class<? extends T> type,
                          String variable)

RelationalPathBase

public RelationalPathBase(Class<? extends T> type,
                          PathMetadata<?> metadata)
Method Detail

createPrimaryKey

protected PrimaryKey<T> createPrimaryKey(Path<?>... columns)

createForeignKey

protected <F> ForeignKey<F> createForeignKey(Path<?> local,
                                             String foreign)

createForeignKey

protected <F> ForeignKey<F> createForeignKey(List<? extends Path<?>> local,
                                             List<String> foreign)

createInvForeignKey

protected <F> ForeignKey<F> createInvForeignKey(Path<?> local,
                                                String foreign)

createInvForeignKey

protected <F> ForeignKey<F> createInvForeignKey(List<? extends Path<?>> local,
                                                List<String> foreign)

all

public Expr<?>[] all()

add

protected <P extends Path<?>> P add(P path)
Description copied from class: BeanPath
Template method for tracking child path creation

Overrides:
add in class BeanPath<T>
Returns:

getColumns

public List<Expr<?>> getColumns()
Description copied from interface: RelationalPath
Get all columns

Specified by:
getColumns in interface RelationalPath<T>
Returns:

getForeignKeys

public Collection<ForeignKey<?>> getForeignKeys()
Description copied from interface: RelationalPath
Get the foreign keys for this relation

Specified by:
getForeignKeys in interface RelationalPath<T>
Returns:

getInverseForeignKeys

public Collection<ForeignKey<?>> getInverseForeignKeys()
Description copied from interface: RelationalPath
Get the inverse foreign keys for this relation

Specified by:
getInverseForeignKeys in interface RelationalPath<T>
Returns:

getPrimaryKey

public PrimaryKey<T> getPrimaryKey()
Description copied from interface: RelationalPath
Get the primary key for this relation or null if none exists

Specified by:
getPrimaryKey in interface RelationalPath<T>
Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.