T - entity typepublic class RelationalPathBase<T> extends BeanPath<T> implements RelationalPath<T>
RelationalPath implementationsmixin| 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() |
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<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
|
com.mysema.commons.lang.Pair<String,String> |
getSchemaAndTable()
Get the schema and table name
|
String |
getSchemaName()
Get the schema name
|
String |
getTableName()
Get the table name
|
accept, as, createArray, createBoolean, createCollection, createComparable, createDate, createDateTime, createEnum, createList, createMap, createNumber, createSet, createSimple, createString, createTime, forProperty, getAnnotatedElement, getMetadata, getRoot, instanceOf, instanceOfAnyas, as, count, countDistinct, eq, eq, eqAll, eqAny, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, nullif, nullif, when, whenequals, getType, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotatedElement, getMetadata, getRootaccept, getTypepublic 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 FactoryExpression<T> getProjection()
ProjectionRolegetProjection in interface ProjectionRole<T>public Path<?>[] all()
protected <P extends Path<?>> P add(P path)
BeanPathpublic List<Path<?>> getColumns()
RelationalPathgetColumns in interface RelationalPath<T>public Collection<ForeignKey<?>> getForeignKeys()
RelationalPathgetForeignKeys in interface RelationalPath<T>public Collection<ForeignKey<?>> getInverseForeignKeys()
RelationalPathgetInverseForeignKeys in interface RelationalPath<T>public PrimaryKey<T> getPrimaryKey()
RelationalPathgetPrimaryKey in interface RelationalPath<T>public com.mysema.commons.lang.Pair<String,String> getSchemaAndTable()
RelationalPathgetSchemaAndTable in interface RelationalPath<T>public String getSchemaName()
RelationalPathgetSchemaName in interface RelationalPath<T>public String getTableName()
RelationalPathgetTableName in interface RelationalPath<T>public ColumnMetadata getMetadata(Path<?> column)
RelationalPathColumnMetadata.getColumnMetadata(Path) for a null safe
alternativegetMetadata in interface RelationalPath<T>getMetadata in interface EntityPath<T>Copyright © 2007–2014 Mysema Ltd. All rights reserved.