T
- entity typepublic class RelationalPathBase<T> extends BeanPath<T> implements RelationalPath<T>
RelationalPathBase
is a base class for RelationalPath
implementationshashCode, mixin
Constructor and Description |
---|
RelationalPathBase(java.lang.Class<? extends T> type,
PathMetadata metadata,
java.lang.String schema,
java.lang.String table) |
RelationalPathBase(java.lang.Class<? extends T> type,
java.lang.String variable,
java.lang.String schema,
java.lang.String table) |
Modifier and Type | Method and Description |
---|---|
protected <P extends Path<?>> |
add(P path) |
protected <P extends Path<?>> |
addMetadata(P path,
ColumnMetadata metadata) |
Path<?>[] |
all() |
NumberExpression<java.lang.Long> |
count() |
NumberExpression<java.lang.Long> |
countDistinct() |
protected <F> ForeignKey<F> |
createForeignKey(java.util.List<? extends Path<?>> local,
java.util.List<java.lang.String> foreign) |
protected <F> ForeignKey<F> |
createForeignKey(Path<?> local,
java.lang.String foreign) |
protected <F> ForeignKey<F> |
createInvForeignKey(java.util.List<? extends Path<?>> local,
java.util.List<java.lang.String> foreign) |
protected <F> ForeignKey<F> |
createInvForeignKey(Path<?> local,
java.lang.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
|
java.util.List<Path<?>> |
getColumns()
Get all columns
|
java.util.Collection<ForeignKey<?>> |
getForeignKeys()
Get the foreign keys for this relation
|
java.util.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() |
SchemaAndTable |
getSchemaAndTable()
Get the schema and table name
|
java.lang.String |
getSchemaName()
Get the schema name
|
java.lang.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, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, neAll, neAny, notIn, notIn, 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(java.lang.Class<? extends T> type, java.lang.String variable, java.lang.String schema, java.lang.String table)
public RelationalPathBase(java.lang.Class<? extends T> type, PathMetadata metadata, java.lang.String schema, java.lang.String table)
protected PrimaryKey<T> createPrimaryKey(Path<?>... columns)
protected <F> ForeignKey<F> createForeignKey(Path<?> local, java.lang.String foreign)
protected <F> ForeignKey<F> createForeignKey(java.util.List<? extends Path<?>> local, java.util.List<java.lang.String> foreign)
protected <F> ForeignKey<F> createInvForeignKey(Path<?> local, java.lang.String foreign)
protected <F> ForeignKey<F> createInvForeignKey(java.util.List<? extends Path<?>> local, java.util.List<java.lang.String> foreign)
protected <P extends Path<?>> P addMetadata(P path, ColumnMetadata metadata)
public NumberExpression<java.lang.Long> count()
count
in class SimpleExpression<T>
public NumberExpression<java.lang.Long> countDistinct()
countDistinct
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()
getProjection
in interface ProjectionRole<T>
public Path<?>[] all()
public java.util.List<Path<?>> getColumns()
RelationalPath
getColumns
in interface RelationalPath<T>
public java.util.Collection<ForeignKey<?>> getForeignKeys()
RelationalPath
getForeignKeys
in interface RelationalPath<T>
public java.util.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 java.lang.String getSchemaName()
RelationalPath
getSchemaName
in interface RelationalPath<T>
public java.lang.String getTableName()
RelationalPath
getTableName
in interface RelationalPath<T>
public ColumnMetadata getMetadata(Path<?> column)
RelationalPath
ColumnMetadata.getColumnMetadata(Path)
for a null safe
alternativegetMetadata
in interface EntityPath<T>
getMetadata
in interface RelationalPath<T>
Copyright © 2007–2021 Querydsl. All rights reserved.