java.lang.Object
org.babyfish.jimmer.sql.ast.table.spi.AbstractTypedTable<Association<SE,TE>>
org.babyfish.jimmer.sql.ast.impl.table.AssociationTableProxyImpl<SE,ST,TE,TT>
- 所有已实现的接口:
org.babyfish.jimmer.meta.spi.TableDelegate<Association<SE,,TE>> TableTypeProvider,Selection<Association<SE,,TE>> AssociationTable<SE,,ST, TE, TT> Props,TableProxy<Association<SE,,TE>> Table<Association<SE,,TE>> TableEx<Association<SE,TE>>
public class AssociationTableProxyImpl<SE,ST extends Table<SE>,TE,TT extends Table<TE>>
extends AbstractTypedTable<Association<SE,TE>>
implements AssociationTable<SE,ST,TE,TT>, TableProxy<Association<SE,TE>>
-
嵌套类概要
从类继承的嵌套类/接口 org.babyfish.jimmer.sql.ast.table.spi.AbstractTypedTable
AbstractTypedTable.DelayedOperation<E> -
字段概要
从类继承的字段 org.babyfish.jimmer.sql.ast.table.spi.AbstractTypedTable
raw -
方法概要
修饰符和类型方法说明<P extends TableProxy<Association<SE,TE>>>
P__disableJoin(String reason) org.babyfish.jimmer.sql.JoinTypeIf you must convert table types using the "asTableEx()" function to find corresponding properties in IDE's intelligent suggestions, it likely indicates you are performing table join operations on collection-associated properties, for example:source()source(org.babyfish.jimmer.meta.ImmutableType treatedAs) static <SE,ST extends Table<SE>, TE, TT extends Table<TE>>
AssociationTable<SE, ST, TE, TT> table(AssociationType associationType) target()target(org.babyfish.jimmer.meta.ImmutableType treatedAs) 从类继承的方法 org.babyfish.jimmer.sql.ast.table.spi.AbstractTypedTable
__beforeJoin, __get, __getAssociatedId, __isInverse, __parent, __prop, __refEquals, __resolve, __unwrap, __weakJoinHandle, count, count, eq, eq, eq, eq, fetch, fetch, get, get, getAssociatedId, getAssociatedId, getId, getImmutableType, inverseGetAssociatedId, inverseJoin, inverseJoin, inverseJoin, inverseJoin, inverseJoin, inverseJoin, isNotNull, isNull, join, join, join, join, join, join, joinOperation, joinOperation, joinOperation, joinOperation, joinOperation, joinOperation, joinOperation, joinOperation, toString从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.babyfish.jimmer.sql.ast.table.AssociationTable
sourceId, targetId从接口继承的方法 org.babyfish.jimmer.sql.ast.table.Props
get, get, getAssociatedId, getAssociatedId, getId, getImmutableType, inverseGetAssociatedId, inverseJoin, inverseJoin, inverseJoin, inverseJoin, inverseJoin, inverseJoin, join, join, join, join, join, join从接口继承的方法 org.babyfish.jimmer.sql.ast.table.Table
count, count, eq, eq, eq, eq, fetch, fetch, isNotNull, isNull从接口继承的方法 org.babyfish.jimmer.sql.ast.table.spi.TableProxy
__isInverse, __parent, __prop, __resolve, __unwrap, __weakJoinHandle从接口继承的方法 org.babyfish.jimmer.sql.ast.impl.table.TableTypeProvider
getImmutableType
-
方法详细资料
-
table
public static <SE,ST extends Table<SE>, AssociationTable<SE,TE, TT extends Table<TE>> ST, tableTE, TT> (AssociationType associationType) -
source
-
source
-
target
-
target
-
asTableEx
从接口复制的说明:TableIf you must convert table types using the "asTableEx()" function to find corresponding properties in IDE's intelligent suggestions, it likely indicates you are performing table join operations on collection-associated properties, for example:
BookTable table = BookTable.$; sql .create(table) // Table join based on collection association `Book.authors` .where(table.asTableEx().authors().firstName().eq("Alex")) select(table) .execute();This usage will lead to data duplication, and whether using SQL-level or application-level approaches, you'll need to handle data distinction yourself. More importantly, this duplication will invalidate the pagination mechanism.
In fact, this usage is not recommended, and the purpose of "asTableEx()" is to remind you that you're using a feature that might cause problems. In most cases, sub-queries, especially implicit sub-queries, are more recommended. For example:
BookTable table = BookTable.$; sql.createQuery(table) .where( table.authors(author -> author.firstName().eq("Alex") ) ) .select(table) .execute(); -
__disableJoin
- 指定者:
__disableJoin在接口中TableProxy<SE>
-
__joinType
public org.babyfish.jimmer.sql.JoinType __joinType()- 指定者:
__joinType在接口中TableProxy<SE>- 覆盖:
__joinType在类中AbstractTypedTable<Association<SE,TE>>
-
exists
- 指定者:
exists在接口中Props- 覆盖:
exists在类中AbstractTypedTable<Association<SE,TE>>
-
exists
public <XT extends Table<?>> Predicate exists(org.babyfish.jimmer.meta.ImmutableProp prop, Function<XT, Predicate> block) - 指定者:
exists在接口中Props- 覆盖:
exists在类中AbstractTypedTable<Association<SE,TE>>
-