接口 Table<E>
- 所有超级接口:
Props,Selection<E>,org.babyfish.jimmer.meta.spi.TableDelegate<E>,TableTypeProvider
- 所有已知子接口:
AssociationTable<SE,,ST, TE, TT> TableEx<E>,TableImplementor<E>,TableProxy<E>
public interface Table<E>
extends org.babyfish.jimmer.meta.spi.TableDelegate<E>, TableTypeProvider, Selection<E>, Props
-
方法概要
修饰符和类型方法说明If 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:count()count(boolean distinct) QBEQBEShortcut for `this.id().eq(other.id())`QBEisNull()从接口继承的方法 org.babyfish.jimmer.sql.ast.table.Props
exists, exists, get, get, getAssociatedId, getAssociatedId, getId, getImmutableType, inverseGetAssociatedId, inverseJoin, inverseJoin, inverseJoin, inverseJoin, inverseJoin, inverseJoin, join, join, join, join, join, join从接口继承的方法 org.babyfish.jimmer.sql.ast.impl.table.TableTypeProvider
getImmutableType
-
方法详细资料
-
eq
Shortcut for `this.id().eq(other.id())` -
eq
QBE -
eq
QBE -
eq
QBE -
isNull
Predicate isNull() -
isNotNull
Predicate isNotNull() -
count
NumericExpression<Long> count() -
count
-
fetch
-
fetch
-
asTableEx
If 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();
-