Package com.querydsl.sql
Class RelationalPathBase<T>
java.lang.Object
com.querydsl.core.types.dsl.DslExpression<T>
com.querydsl.core.types.dsl.SimpleExpression<T>
com.querydsl.core.types.dsl.BeanPath<T>
com.querydsl.sql.RelationalPathBase<T>
- Type Parameters:
T- entity type
- All Implemented Interfaces:
EntityPath<T>,Expression<T>,Path<T>,ProjectionRole<T>,RelationalPath<T>,Serializable
RelationalPathBase is a base class for RelationalPath implementations- Author:
- tiwe
- See Also:
-
Field Summary
Fields inherited from class com.querydsl.core.types.dsl.DslExpression
hashCode, mixin -
Constructor Summary
ConstructorsConstructorDescriptionRelationalPathBase(Class<? extends T> type, PathMetadata metadata, String schema, String table) -
Method Summary
Modifier and TypeMethodDescriptionprotected <P extends Path<?>>
Padd(P path) protected <P extends Path<?>>
PaddMetadata(P path, ColumnMetadata metadata) Path<?>[]all()count()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 PrimaryKey<T>createPrimaryKey(Path<?>... columns) eq(Expression<? super T> right) Compares the two relational paths using primary key columnsCompares the two relational paths using primary key columnsGet all columnsCollection<ForeignKey<?>>Get the foreign keys for this relationCollection<ForeignKey<?>>Get the inverse foreign keys for this relationgetMetadata(Path<?> column) Returns the metadata for this path or null if none was assigned.Get the primary key for this relation or null if none existsGet the schema and table nameGet the schema nameGet the table namene(Expression<? super T> right) Compares the two relational paths using primary key columnsCompares the two relational paths using primary key columnsMethods inherited from class com.querydsl.core.types.dsl.BeanPath
accept, as, createArray, createBoolean, createCollection, createComparable, createDate, createDateTime, createEnum, createList, createMap, createNumber, createSet, createSimple, createString, createTime, forProperty, getAnnotatedElement, getMetadata, getRoot, instanceOf, instanceOfAnyMethods inherited from class com.querydsl.core.types.dsl.SimpleExpression
as, as, eqAll, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, neAll, neAny, notIn, notIn, notIn, notIn, notIn, nullif, nullif, when, whenMethods inherited from class com.querydsl.core.types.dsl.DslExpression
equals, getType, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.querydsl.core.types.Expression
accept, getTypeMethods inherited from interface com.querydsl.core.types.Path
getAnnotatedElement, getMetadata, getRoot
-
Constructor Details
-
RelationalPathBase
-
RelationalPathBase
public RelationalPathBase(Class<? extends T> type, PathMetadata metadata, String schema, String table)
-
-
Method Details
-
createPrimaryKey
-
createForeignKey
-
createForeignKey
-
createInvForeignKey
-
createInvForeignKey
protected <F> ForeignKey<F> createInvForeignKey(List<? extends Path<?>> local, List<String> foreign) -
addMetadata
-
count
- Overrides:
countin classSimpleExpression<T>
-
countDistinct
- Overrides:
countDistinctin classSimpleExpression<T>
-
eq
Compares the two relational paths using primary key columns- Overrides:
eqin classSimpleExpression<T>- Parameters:
right- rhs of the comparison- Returns:
- this == right
-
eq
Compares the two relational paths using primary key columns- Overrides:
eqin classSimpleExpression<T>- Parameters:
right- rhs of the comparison- Returns:
- this == right
-
ne
Compares the two relational paths using primary key columns- Overrides:
nein classSimpleExpression<T>- Parameters:
right- rhs of the comparison- Returns:
- this != right
-
ne
Compares the two relational paths using primary key columns- Overrides:
nein classSimpleExpression<T>- Parameters:
right- rhs of the comparison- Returns:
- this != right
-
getProjection
- Specified by:
getProjectionin interfaceProjectionRole<T>
-
all
-
add
-
getColumns
Description copied from interface:RelationalPathGet all columns- Specified by:
getColumnsin interfaceRelationalPath<T>- Returns:
- columns
-
getForeignKeys
Description copied from interface:RelationalPathGet the foreign keys for this relation- Specified by:
getForeignKeysin interfaceRelationalPath<T>- Returns:
- foreign keys
-
getInverseForeignKeys
Description copied from interface:RelationalPathGet the inverse foreign keys for this relation- Specified by:
getInverseForeignKeysin interfaceRelationalPath<T>- Returns:
- inverse foreign keys
-
getPrimaryKey
Description copied from interface:RelationalPathGet the primary key for this relation or null if none exists- Specified by:
getPrimaryKeyin interfaceRelationalPath<T>- Returns:
- primary key
-
getSchemaAndTable
Description copied from interface:RelationalPathGet the schema and table name- Specified by:
getSchemaAndTablein interfaceRelationalPath<T>- Returns:
- schema and table
-
getSchemaName
Description copied from interface:RelationalPathGet the schema name- Specified by:
getSchemaNamein interfaceRelationalPath<T>- Returns:
- schema
-
getTableName
Description copied from interface:RelationalPathGet the table name- Specified by:
getTableNamein interfaceRelationalPath<T>- Returns:
- table
-
getMetadata
Description copied from interface:RelationalPathReturns the metadata for this path or null if none was assigned. SeeColumnMetadata.getColumnMetadata(Path)for a null safe alternative- Specified by:
getMetadatain interfaceEntityPath<T>- Specified by:
getMetadatain interfaceRelationalPath<T>- Returns:
- column metadata for path
-