T
- entity typepublic class RelationalPathBase<T> extends BeanPath<T> implements RelationalPath<T>
RelationalPath
implementationshashCode, mixin
Constructor and Description |
---|
RelationalPathBase(Class<? extends T> type,
PathMetadata<?> metadata,
String schema,
String table) |
RelationalPathBase(Class<? extends T> type,
String variable,
String schema,
String table) |
Modifier and Type | Method and Description |
---|---|
protected <P extends Path<?>> |
add(P path)
Template method for tracking child path creation
|
protected <P extends Path<?>> |
addMetadata(P path,
ColumnMetadata metadata) |
Path<?>[] |
all() |
NumberExpression<Long> |
count()
Get the
count(this) expression |
NumberExpression<Long> |
countDistinct()
Get the
count(distinct this) expression |
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) |
BooleanExpression |
eq(Expression<? super T> right)
Compares the two relational paths using primary key columns
|
BooleanExpression |
eq(T right)
Compares the two relational paths using primary key columns
|
List<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
|
ColumnMetadata |
getMetadata(Path<?> column)
Returns the metadata for this path or null if none was assigned.
|
PrimaryKey<T> |
getPrimaryKey()
Get the primary key for this relation or null if none exists
|
FactoryExpression<T> |
getProjection()
Return the custom projection
|
SchemaAndTable |
getSchemaAndTable()
Get the schema and table name
|
String |
getSchemaName()
Get the schema name
|
String |
getTableName()
Get the table name
|
BooleanExpression |
ne(Expression<? super T> right)
Compares the two relational paths using primary key columns
|
BooleanExpression |
ne(T right)
Compares the two relational paths using primary key columns
|
accept, as, createArray, createBoolean, createCollection, createComparable, createDate, createDateTime, createEnum, createList, createMap, createNumber, createSet, createSimple, createString, createTime, forProperty, getAnnotatedElement, getMetadata, getRoot, instanceOf, instanceOfAny
as, as, eqAll, eqAny, in, in, in, isNotNull, isNull, neAll, neAny, notIn, notIn, notIn, nullif, nullif, when, when
equals, getType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotatedElement, getMetadata, getRoot
accept, getType
public RelationalPathBase(Class<? extends T> type, String variable, String schema, String table)
public RelationalPathBase(Class<? extends T> type, PathMetadata<?> metadata, String schema, String table)
protected PrimaryKey<T> createPrimaryKey(Path<?>... columns)
protected <F> ForeignKey<F> createForeignKey(Path<?> local, String foreign)
protected <F> ForeignKey<F> createForeignKey(List<? extends Path<?>> local, List<String> foreign)
protected <F> ForeignKey<F> createInvForeignKey(Path<?> local, String foreign)
protected <F> ForeignKey<F> createInvForeignKey(List<? extends Path<?>> local, List<String> foreign)
protected <P extends Path<?>> P addMetadata(P path, ColumnMetadata metadata)
public NumberExpression<Long> count()
SimpleExpression
count(this)
expressioncount
in class SimpleExpression<T>
public NumberExpression<Long> countDistinct()
SimpleExpression
count(distinct this)
expressioncountDistinct
in class SimpleExpression<T>
public BooleanExpression eq(T right)
eq
in class SimpleExpression<T>
right
- rhs of the comparisonpublic BooleanExpression eq(Expression<? super T> right)
eq
in class SimpleExpression<T>
right
- rhs of the comparisonpublic BooleanExpression ne(T right)
ne
in class SimpleExpression<T>
right
- rhs of the comparisonpublic BooleanExpression ne(Expression<? super T> right)
ne
in class SimpleExpression<T>
right
- rhs of the comparisonpublic FactoryExpression<T> getProjection()
ProjectionRole
getProjection
in interface ProjectionRole<T>
public Path<?>[] all()
protected <P extends Path<?>> P add(P path)
BeanPath
public List<Path<?>> getColumns()
RelationalPath
getColumns
in interface RelationalPath<T>
public Collection<ForeignKey<?>> getForeignKeys()
RelationalPath
getForeignKeys
in interface RelationalPath<T>
public Collection<ForeignKey<?>> getInverseForeignKeys()
RelationalPath
getInverseForeignKeys
in interface RelationalPath<T>
public PrimaryKey<T> getPrimaryKey()
RelationalPath
getPrimaryKey
in interface RelationalPath<T>
public SchemaAndTable getSchemaAndTable()
RelationalPath
getSchemaAndTable
in interface RelationalPath<T>
public String getSchemaName()
RelationalPath
getSchemaName
in interface RelationalPath<T>
public String getTableName()
RelationalPath
getTableName
in interface RelationalPath<T>
public ColumnMetadata getMetadata(Path<?> column)
RelationalPath
ColumnMetadata.getColumnMetadata(Path)
for a null safe
alternativegetMetadata
in interface RelationalPath<T>
getMetadata
in interface EntityPath<T>
Copyright © 2007–2015 Mysema Ltd. All rights reserved.