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

java.lang.Object
  extended by com.mysema.query.types.expr.DslExpression<T>
      extended by com.mysema.query.types.expr.SimpleExpression<T>
          extended by com.mysema.query.types.path.BeanPath<T>
              extended by com.mysema.query.sql.RelationalPathBase<T>
Type Parameters:
T - entity type
All Implemented Interfaces:
RelationalPath<T>, com.mysema.query.types.EntityPath<T>, com.mysema.query.types.Expression<T>, com.mysema.query.types.Path<T>, com.mysema.query.types.ProjectionRole<T>, Serializable

public class RelationalPathBase<T>
extends com.mysema.query.types.path.BeanPath<T>
implements RelationalPath<T>

RelationalPathBase is a base class for RelationalPath implementations

Author:
tiwe
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mysema.query.types.expr.DslExpression
mixin
 
Constructor Summary
RelationalPathBase(Class<? extends T> type, com.mysema.query.types.PathMetadata<?> metadata, String schema, String table)
           
RelationalPathBase(Class<? extends T> type, String variable, String schema, String table)
           
 
Method Summary
protected
<P extends com.mysema.query.types.Path<?>>
P
add(P path)
           
 com.mysema.query.types.Path<?>[] all()
           
protected
<F> ForeignKey<F>
createForeignKey(List<? extends com.mysema.query.types.Path<?>> local, List<String> foreign)
           
protected
<F> ForeignKey<F>
createForeignKey(com.mysema.query.types.Path<?> local, String foreign)
           
protected
<F> ForeignKey<F>
createInvForeignKey(List<? extends com.mysema.query.types.Path<?>> local, List<String> foreign)
           
protected
<F> ForeignKey<F>
createInvForeignKey(com.mysema.query.types.Path<?> local, String foreign)
           
protected  PrimaryKey<T> createPrimaryKey(com.mysema.query.types.Path<?>... columns)
           
 List<com.mysema.query.types.Path<?>> 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
 com.mysema.query.types.FactoryExpression<T> getProjection()
           
 String getSchemaName()
          Get the schema name
 String getTableName()
          Get the table name
 
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, forProperty, getAnnotatedElement, getMetadata, getRoot, instanceOf, instanceOfAny
 
Methods inherited from class com.mysema.query.types.expr.SimpleExpression
as, as, count, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, when, when
 
Methods inherited from class com.mysema.query.types.expr.DslExpression
equals, getType, hashCode, 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
getAnnotatedElement, getMetadata, getRoot
 
Methods inherited from interface com.mysema.query.types.Expression
accept, getType
 

Constructor Detail

RelationalPathBase

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

RelationalPathBase

public RelationalPathBase(Class<? extends T> type,
                          com.mysema.query.types.PathMetadata<?> metadata,
                          String schema,
                          String table)
Method Detail

createPrimaryKey

protected PrimaryKey<T> createPrimaryKey(com.mysema.query.types.Path<?>... columns)

createForeignKey

protected <F> ForeignKey<F> createForeignKey(com.mysema.query.types.Path<?> local,
                                             String foreign)

createForeignKey

protected <F> ForeignKey<F> createForeignKey(List<? extends com.mysema.query.types.Path<?>> local,
                                             List<String> foreign)

createInvForeignKey

protected <F> ForeignKey<F> createInvForeignKey(com.mysema.query.types.Path<?> local,
                                                String foreign)

createInvForeignKey

protected <F> ForeignKey<F> createInvForeignKey(List<? extends com.mysema.query.types.Path<?>> local,
                                                List<String> foreign)

getProjection

public com.mysema.query.types.FactoryExpression<T> getProjection()
Specified by:
getProjection in interface com.mysema.query.types.ProjectionRole<T>

all

public com.mysema.query.types.Path<?>[] all()

add

protected <P extends com.mysema.query.types.Path<?>> P add(P path)
Overrides:
add in class com.mysema.query.types.path.BeanPath<T>

getColumns

public List<com.mysema.query.types.Path<?>> 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:

getSchemaName

public String getSchemaName()
Description copied from interface: RelationalPath
Get the schema name

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

getTableName

public String getTableName()
Description copied from interface: RelationalPath
Get the table name

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


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