Uses of Interface
org.apache.openjpa.jdbc.sql.Select
Package
Description
OpenJPA-JDBC Runtime Kernel
OpenJPA-JDBC Expression Tree
OpenJPA-JDBC ORM Metadata
OpenJPA-JDBC ORM Strategies
OpenJPA-JDBC SQL Abstraction
-
Uses of Select in org.apache.openjpa.jdbc.kernel
Modifier and TypeMethodDescriptionstatic Select
JDBCStoreQuery.getThreadLocalSelect
(Select select) Modifier and TypeMethodDescriptionstatic BitSet
PagingResultObjectProvider.getPagedFields
(Select sel, ClassMapping mapping, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, long size) Return a bit set representing batch select fields that will be paged, or null if no fields need paging, which indicates that this provider should not be used.static Select
JDBCStoreQuery.getThreadLocalSelect
(Select select) boolean
JDBCStoreManager.select
(Select sel, ClassMapping mapping, int subs, OpenJPAStateManager sm, BitSet fields, JDBCFetchConfiguration fetch, int eager, boolean ident, boolean outer) For implementation use only.boolean
JDBCLockManager.selectForUpdate
(Select sel, int lockLevel) Return whether to issue the given select FOR UPDATE, depending on the capabilities of the dictionary and the fetch configuration.boolean
MixedLockManager.selectForUpdate
(Select sel, int lockLevel) boolean
PessimisticLockManager.selectForUpdate
(Select sel, int lockLevel) -
Uses of Select in org.apache.openjpa.jdbc.kernel.exps
Modifier and TypeMethodDescriptionSelectConstructor.evaluate
(ExpContext ctx, Select parent, String alias, QueryExpressions exps, QueryExpressionsState state) Evaluate the expression, returning a new select and filling in any associated expression state.Modifier and TypeMethodDescriptionvoid
PCPath.appendIndex
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
Val.appendIndex
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) Append the SQL checking the index of this value.void
Args.appendIsEmpty
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
PCPath.appendIsEmpty
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
SubQ.appendIsEmpty
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
Val.appendIsEmpty
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) Append the SQL testing whether this value is empty to the given buffer.void
Args.appendIsNotEmpty
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
PCPath.appendIsNotEmpty
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
SubQ.appendIsNotEmpty
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
Val.appendIsNotEmpty
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) Append the SQL testing whether this value is not empty to the given buffer.void
Args.appendIsNotNull
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
PCPath.appendIsNotNull
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
Val.appendIsNotNull
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) Append the SQL testing whether this value is not null to the given buffer.void
Args.appendIsNull
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
PCPath.appendIsNull
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
Val.appendIsNull
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) Append the SQL testing whether this value is null to the given buffer.void
Args.appendSize
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
PCPath.appendSize
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
SubQ.appendSize
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
Val.appendSize
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) Append the SQL checking the size of this value.void
Args.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
Args.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index, String operator) void
CoalesceExpression.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) void
CollectionParam.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
Concat.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
DatastoreFunction.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
GeneralCaseExpression.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) void
IndexOf.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
Lit.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
MapEntry.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
MapKey.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
Math.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
Null.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
NullIfExpression.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) void
Param.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
PCPath.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
PCPath.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
void
SimpleCaseExpression.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) void
StringLength.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) void
SubQ.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
Substring.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
ToLowerCase.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) void
ToUpperCase.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf, int index) void
Trim.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
TypeLit.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) void
Val.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) Append theindex
th SQL element to the given buffer.void
WhenCondition.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf) void
WhenScalar.appendTo
(Select sel, ExpContext ctx, ExpState state, SQLBuffer buf) void
PCPath.appendType
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) void
Val.appendType
(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) Append the SQL checking the type of this value.void
Args.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
CoalesceExpression.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
CollectionParam.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
Concat.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
GeneralCaseExpression.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
IndexOf.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
Lit.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
MapEntry.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
MapKey.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
Math.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
Null.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
NullIfExpression.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
Param.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
PCPath.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
SimpleCaseExpression.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
SubQ.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
Substring.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
Trim.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
TypeLit.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) void
Val.calculateValue
(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) Calculate and cache the SQL for this value.SelectConstructor.evaluate
(ExpContext ctx, Select parent, String alias, QueryExpressions exps, QueryExpressionsState state) Evaluate the expression, returning a new select and filling in any associated expression state.CollectionParam.getSQLValue
(Select sel, ExpContext ctx, ExpState state) Param.getSQLValue
(Select sel, ExpContext ctx, ExpState state) void
Args.groupBy
(Select sel, ExpContext ctx, ExpState state) void
CoalesceExpression.groupBy
(Select sel, ExpContext ctx, ExpState state) void
Concat.groupBy
(Select sel, ExpContext ctx, ExpState state) void
GeneralCaseExpression.groupBy
(Select sel, ExpContext ctx, ExpState state) void
IndexOf.groupBy
(Select sel, ExpContext ctx, ExpState state) void
MapEntry.groupBy
(Select sel, ExpContext ctx, ExpState state) void
MapKey.groupBy
(Select sel, ExpContext ctx, ExpState state) void
Math.groupBy
(Select sel, ExpContext ctx, ExpState state) void
NullIfExpression.groupBy
(Select sel, ExpContext ctx, ExpState state) void
PCPath.groupBy
(Select sel, ExpContext ctx, ExpState state) void
SimpleCaseExpression.groupBy
(Select sel, ExpContext ctx, ExpState state) void
SubQ.groupBy
(Select sel, ExpContext ctx, ExpState state) void
Substring.groupBy
(Select sel, ExpContext ctx, ExpState state) void
Trim.groupBy
(Select sel, ExpContext ctx, ExpState state) void
Val.groupBy
(Select sel, ExpContext ctx, ExpState state) Group by this value.Args.initialize
(Select sel, ExpContext ctx, int flags) CoalesceExpression.initialize
(Select sel, ExpContext ctx, int flags) CollectionParam.initialize
(Select sel, ExpContext ctx, int flags) Concat.initialize
(Select sel, ExpContext ctx, int flags) GeneralCaseExpression.initialize
(Select sel, ExpContext ctx, int flags) IndexOf.initialize
(Select sel, ExpContext ctx, int flags) Lit.initialize
(Select sel, ExpContext ctx, int flags) MapEntry.initialize
(Select sel, ExpContext ctx, int flags) MapKey.initialize
(Select sel, ExpContext ctx, int flags) Math.initialize
(Select sel, ExpContext ctx, int flags) NullIfExpression.initialize
(Select sel, ExpContext ctx, int flags) Param.initialize
(Select sel, ExpContext ctx, int flags) PCPath.initialize
(Select sel, ExpContext ctx, int flags) SimpleCaseExpression.initialize
(Select sel, ExpContext ctx, int flags) SubQ.initialize
(Select sel, ExpContext ctx, int flags) Substring.initialize
(Select sel, ExpContext ctx, int flags) Trim.initialize
(Select sel, ExpContext ctx, int flags) TypeLit.initialize
(Select sel, ExpContext ctx, int flags) Val.initialize
(Select sel, ExpContext ctx, int flags) Initialize the value.WhenCondition.initialize
(Select sel, ExpContext ctx, Map contains) WhenScalar.initialize
(Select sel, ExpContext ctx, Map contains) int
Args.length
(Select sel, ExpContext ctx, ExpState state) int
CoalesceExpression.length
(Select sel, ExpContext ctx, ExpState state) int
Concat.length
(Select sel, ExpContext ctx, ExpState state) int
GeneralCaseExpression.length
(Select sel, ExpContext ctx, ExpState state) int
IndexOf.length
(Select sel, ExpContext ctx, ExpState state) int
MapEntry.length
(Select sel, ExpContext ctx, ExpState state) int
MapKey.length
(Select sel, ExpContext ctx, ExpState state) int
Math.length
(Select sel, ExpContext ctx, ExpState state) int
NullIfExpression.length
(Select sel, ExpContext ctx, ExpState state) int
Param.length
(Select sel, ExpContext ctx, ExpState state) int
PCPath.length
(Select sel, ExpContext ctx, ExpState state) int
SimpleCaseExpression.length
(Select sel, ExpContext ctx, ExpState state) int
SubQ.length
(Select sel, ExpContext ctx, ExpState state) int
Substring.length
(Select sel, ExpContext ctx, ExpState state) int
Trim.length
(Select sel, ExpContext ctx, ExpState state) int
Val.length
(Select sel, ExpContext ctx, ExpState state) Return the number of SQL elements in this value.Args.newFilterValues
(Select sel, ExpContext ctx, ExpState state) Return a filter value for each argument.void
Args.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
CoalesceExpression.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
Concat.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
GeneralCaseExpression.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
IndexOf.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
MapEntry.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
MapKey.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
Math.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
NullIfExpression.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
PCPath.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
SimpleCaseExpression.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
SubQ.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
Substring.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
Trim.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) void
Val.orderBy
(Select sel, ExpContext ctx, ExpState state, boolean asc) Order by this value.void
Args.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
CoalesceExpression.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
Concat.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
GeneralCaseExpression.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
IndexOf.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
MapEntry.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
MapKey.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
Math.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
NullIfExpression.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
PCPath.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
SelectConstructor.select
(Select sel, ExpContext ctx, ClassMapping mapping, boolean subclasses, QueryExpressions exps, QueryExpressionsState state, int eager) Select the data for this query.void
SimpleCaseExpression.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
SubQ.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
Substring.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
Trim.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
Val.select
(Select sel, ExpContext ctx, ExpState state, boolean pks) Select the data for this value.void
Args.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
CoalesceExpression.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
Concat.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
GeneralCaseExpression.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
IndexOf.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
MapEntry.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
MapKey.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
Math.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
NullIfExpression.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
PCPath.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
SimpleCaseExpression.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
SubQ.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
Substring.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
Trim.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
Val.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) Select just the columns for this value.void
WhenCondition.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
WhenScalar.selectColumns
(Select sel, ExpContext ctx, ExpState state, boolean pks) void
SelectConstructor.setSubselect
(Select subselect) MapKey.toDataStoreValue
(Select sel, ExpContext ctx, ExpState state, Object val) PCPath.toDataStoreValue
(Select sel, ExpContext ctx, ExpState state, Object val) SubQ.toDataStoreValue
(Select sel, ExpContext ctx, ExpState state, Object val) Val.toDataStoreValue
(Select sel, ExpContext ctx, ExpState state, Object val) Return the datastore value of the given object in the context of this value. -
Uses of Select in org.apache.openjpa.jdbc.meta
Modifier and TypeMethodDescriptionboolean
Discriminator.addClassConditions
(Select sel, boolean subs, Joins joins) Add WHERE conditions to the given select limiting the returned results to our mapping type, possibly including subclasses.void
FieldMapping.appendIndex
(SQLBuffer sql, Select sel, Joins joins) void
FieldStrategy.appendIndex
(SQLBuffer sql, Select sel, Joins joins) Append the ordered column alias to the given statement.void
FieldMapping.appendIsEmpty
(SQLBuffer sql, Select sel, Joins joins) void
FieldStrategy.appendIsEmpty
(SQLBuffer sql, Select sel, Joins joins) Append a where clause to the given statement checking if this value is empty.void
FieldMapping.appendIsNotEmpty
(SQLBuffer sql, Select sel, Joins joins) void
FieldStrategy.appendIsNotEmpty
(SQLBuffer sql, Select sel, Joins joins) Append a where clause to the given statement checking if this value is not empty.void
FieldMapping.appendIsNotNull
(SQLBuffer sql, Select sel, Joins joins) void
FieldStrategy.appendIsNotNull
(SQLBuffer sql, Select sel, Joins joins) Append a where clause to the given statement checking if this value is not null.void
FieldMapping.appendIsNull
(SQLBuffer sql, Select sel, Joins joins) void
FieldStrategy.appendIsNull
(SQLBuffer sql, Select sel, Joins joins) Append a where clause to the given statement checking if this value is null.void
FieldMapping.appendSize
(SQLBuffer sql, Select sel, Joins joins) void
FieldStrategy.appendSize
(SQLBuffer sql, Select sel, Joins joins) Append a where clause to the given statement checking the size of the value.void
FieldMapping.appendType
(SQLBuffer sql, Select sel, Joins joins) void
FieldStrategy.appendType
(SQLBuffer sql, Select sel, Joins joins) Append the entity discriminator value to the given statement.Discriminator.getClassConditions
(Select sel, Joins joins, ClassMapping base, boolean subs) DiscriminatorStrategy.getClassConditions
(Select sel, Joins joins, ClassMapping base, boolean subs) Return SQL to limit the classes selected as much as possible to the given base class, and optionally its subclasses.Return any joins needed to get from the primary table to this table.void
FieldMapping.orderLocal
(Select sel, ClassMapping elem, Joins joins) Add ordering to the given select for all non-relation order values, including the synthetic order column, if any.void
FieldMapping.orderRelation
(Select sel, ClassMapping elem, Joins joins) Add ordering to the given select for all relation-based values.boolean
Discriminator.select
(Select sel, ClassMapping mapping) boolean
DiscriminatorStrategy.select
(Select sel, ClassMapping mapping) Select the data for this Discriminator.int
FieldMapping.select
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) int
FieldStrategy.select
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) Select the virtual row columns of this mapping.boolean
Version.select
(Select sel, ClassMapping mapping) boolean
VersionStrategy.select
(Select sel, ClassMapping mapping) Select the data for this indicator.void
FieldMapping.selectEagerJoin
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) void
FieldStrategy.selectEagerJoin
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) Fill in joined select to related objects.boolean
ClassMapping.supportsEagerSelect
(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch) boolean
ClassStrategy.supportsEagerSelect
(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch) Return true if this strategy can perform the given select from the givenbase
mapping.int
FieldMapping.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) int
FieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) Return whether this mapping can perform the given select type.void
FieldMapping.wherePrimaryKey
(Select sel, OpenJPAStateManager sm, JDBCStore store) Add awherePrimaryKey
orwhereForeignKey
condition to the given select, depending on whether we have a join foreign key. -
Uses of Select in org.apache.openjpa.jdbc.meta.strats
Modifier and TypeMethodDescriptionvoid
AbstractFieldStrategy.appendIndex
(SQLBuffer sql, Select sel, Joins joins) void
ContainerFieldStrategy.appendIndex
(SQLBuffer sql, Select sel, Joins joins) void
AbstractFieldStrategy.appendIsEmpty
(SQLBuffer sql, Select sel, Joins joins) void
ContainerFieldStrategy.appendIsEmpty
(SQLBuffer sql, Select sel, Joins joins) void
AbstractFieldStrategy.appendIsNotEmpty
(SQLBuffer sql, Select sel, Joins joins) void
ContainerFieldStrategy.appendIsNotEmpty
(SQLBuffer sql, Select sel, Joins joins) void
AbstractFieldStrategy.appendIsNotNull
(SQLBuffer sql, Select sel, Joins joins) void
ContainerFieldStrategy.appendIsNotNull
(SQLBuffer sql, Select sel, Joins joins) void
EmbedFieldStrategy.appendIsNotNull
(SQLBuffer sql, Select sel, Joins joins) void
HandlerFieldStrategy.appendIsNotNull
(SQLBuffer sql, Select sel, Joins joins) void
PrimitiveFieldStrategy.appendIsNotNull
(SQLBuffer sql, Select sel, Joins joins) void
RelationFieldStrategy.appendIsNotNull
(SQLBuffer sql, Select sel, Joins joins) void
StringFieldStrategy.appendIsNotNull
(SQLBuffer sql, Select sel, Joins joins) void
AbstractFieldStrategy.appendIsNull
(SQLBuffer sql, Select sel, Joins joins) void
ContainerFieldStrategy.appendIsNull
(SQLBuffer sql, Select sel, Joins joins) void
EmbedFieldStrategy.appendIsNull
(SQLBuffer sql, Select sel, Joins joins) void
HandlerFieldStrategy.appendIsNull
(SQLBuffer sql, Select sel, Joins joins) void
PrimitiveFieldStrategy.appendIsNull
(SQLBuffer sql, Select sel, Joins joins) void
RelationFieldStrategy.appendIsNull
(SQLBuffer sql, Select sel, Joins joins) void
StringFieldStrategy.appendIsNull
(SQLBuffer sql, Select sel, Joins joins) protected static void
ContainerFieldStrategy.appendJoinCount
(SQLBuffer sql, Select sel, Joins joins, DBDictionary dict, FieldMapping field, ForeignKey fk) void
AbstractFieldStrategy.appendSize
(SQLBuffer sql, Select sel, Joins joins) void
ContainerFieldStrategy.appendSize
(SQLBuffer sql, Select sel, Joins joins) void
AbstractFieldStrategy.appendType
(SQLBuffer sql, Select sel, Joins joins) static void
ContainerFieldStrategy.appendUnaliasedJoin
(SQLBuffer sql, Select sel, Joins joins, DBDictionary dict, FieldMapping field, ForeignKey fk) AbstractDiscriminatorStrategy.getClassConditions
(Select sel, Joins joins, ClassMapping base, boolean subs) InValueDiscriminatorStrategy.getClassConditions
(Select sel, Joins joins, ClassMapping base, boolean subclasses) SubclassJoinDiscriminatorStrategy.getClassConditions
(Select sel, Joins joins, ClassMapping base, boolean subclasses) SuperclassDiscriminatorStrategy.getClassConditions
(Select sel, Joins joins, ClassMapping base, boolean subclasses) boolean
AbstractDiscriminatorStrategy.select
(Select sel, ClassMapping mapping) int
AbstractFieldStrategy.select
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) boolean
AbstractVersionStrategy.select
(Select sel, ClassMapping mapping) boolean
ColumnVersionStrategy.select
(Select sel, ClassMapping mapping) int
EmbedFieldStrategy.select
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) int
HandlerFieldStrategy.select
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) boolean
InValueDiscriminatorStrategy.select
(Select sel, ClassMapping mapping) int
LobFieldStrategy.select
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) int
PrimitiveFieldStrategy.select
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) int
RelationFieldStrategy.select
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) int
StringFieldStrategy.select
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) boolean
SubclassJoinDiscriminatorStrategy.select
(Select sel, ClassMapping mapping) protected Joins
StoreCollectionFieldStrategy.selectAll
(Select sel, ClassMapping elem, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) Select data for loading, starting in field table.void
AbstractFieldStrategy.selectEagerJoin
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) void
RelationFieldStrategy.selectEagerJoin
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) void
StoreCollectionFieldStrategy.selectEagerJoin
(Select sel, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode) void
HandlerCollectionTableFieldStrategy.selectElement
(Select sel, ClassMapping elem, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins joins) void
LRSCollectionFieldStrategy.selectElement
(Select sel, ClassMapping elem, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins joins) Implement this method to select the elements of this field for the given element mapping fromLRSCollectionFieldStrategy.getIndependentElementMappings(boolean)
(or null).void
RelationCollectionInverseKeyFieldStrategy.selectElement
(Select sel, ClassMapping elem, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins joins) void
RelationCollectionTableFieldStrategy.selectElement
(Select sel, ClassMapping elem, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins joins) protected void
RelationToManyInverseKeyFieldStrategy.selectElement
(Select sel, ClassMapping elem, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins joins) protected void
RelationToManyTableFieldStrategy.selectElement
(Select sel, ClassMapping elem, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins joins) protected abstract void
StoreCollectionFieldStrategy.selectElement
(Select sel, ClassMapping elem, JDBCStore store, JDBCFetchConfiguration fetch, int eagerMode, Joins joins) Implement this method to select the elements of this field for the given element mapping fromContainerFieldStrategy.getIndependentElementMappings(boolean)
(or null).void
HandlerHandlerMapTableFieldStrategy.selectKey
(Select sel, ClassMapping cls, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
HandlerRelationMapTableFieldStrategy.selectKey
(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
LRSMapFieldStrategy.selectKey
(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) Implement this method to select the keys of this field.void
RelationHandlerMapTableFieldStrategy.selectKey
(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
RelationMapInverseKeyFieldStrategy.selectKey
(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
RelationMapTableFieldStrategy.selectKey
(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
RelationRelationMapTableFieldStrategy.selectKey
(Select sel, ClassMapping key, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
HandlerHandlerMapTableFieldStrategy.selectValue
(Select sel, ClassMapping cls, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
HandlerRelationMapTableFieldStrategy.selectValue
(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
LRSMapFieldStrategy.selectValue
(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) Implement this method to select the values of this field.void
RelationHandlerMapTableFieldStrategy.selectValue
(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
RelationMapInverseKeyFieldStrategy.selectValue
(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
RelationMapTableFieldStrategy.selectValue
(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) void
RelationRelationMapTableFieldStrategy.selectValue
(Select sel, ClassMapping val, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch, Joins joins) boolean
AbstractClassStrategy.supportsEagerSelect
(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch) boolean
FullClassStrategy.supportsEagerSelect
(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch) boolean
VerticalClassStrategy.supportsEagerSelect
(Select sel, OpenJPAStateManager sm, JDBCStore store, ClassMapping base, JDBCFetchConfiguration fetch) int
AbstractFieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) int
EmbedFieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) int
HandlerCollectionTableFieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) int
HandlerFieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) int
LobFieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) int
MapTableFieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) int
PrimitiveFieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) int
RelationFieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) int
StoreCollectionFieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) int
StringFieldStrategy.supportsSelect
(Select sel, int type, OpenJPAStateManager sm, JDBCStore store, JDBCFetchConfiguration fetch) -
Uses of Select in org.apache.openjpa.jdbc.sql
Modifier and TypeClassDescriptionclass
A select that is part of a logical union.class
StandardSelect
implementation.Modifier and TypeMethodDescriptionLogicalUnion.UnionSelect.getFromSelect()
Select.getFromSelect()
Another select instance that creates a temporary table from which this select pulls data.SelectImpl.getFromSelect()
LogicalUnion.UnionSelect.getParent()
Select.getParent()
Return the parent of this select, if it is a subselect.SelectImpl.getParent()
SelectImpl.getSelect()
Select[]
LogicalUnion.getSelects()
Select[]
Union.getSelects()
Return the selects that make up this union.SQLFactory.newSelect()
Select factory.SQLFactoryImpl.newSelect()
Modifier and TypeMethodDescriptionSQLBuffer.append
(Select sel, JDBCFetchConfiguration fetch) Append a subselect.SQLBuffer.appendCount
(Select sel, JDBCFetchConfiguration fetch) Append a subselect count.protected void
DB2Dictionary.appendSelect
(SQLBuffer selectSQL, Object alias, Select sel, int idx) protected void
DBDictionary.appendSelect
(SQLBuffer selectSQL, Object elem, Select sel, int idx) Appendelem
toselectSQL
.protected void
SolidDBDictionary.appendSelect
(SQLBuffer selectSQL, Object alias, Select sel, int idx) protected void
DBDictionary.appendUpdates
(Select sel, JDBCStore store, SQLBuffer sql, Object[] params, Map updateParams, boolean allowAlias) int
DBDictionary.applyRange
(Select select, int count) int
DerbyDictionary.applyRange
(Select select, int count) Applies range calculation on the actual number of rows selected by aCOUNT(*)
query.protected void
DBDictionary.calculateValue
(Val val, Select sel, ExpContext ctx, ExpState state, Path path, ExpState pathState) This method is to provide override for non-JDBC or JDBC-like implementation of calculating value.void
DBDictionary.deleteStream
(JDBCStore store, Select sel) void
PostgresDictionary.deleteStream
(JDBCStore store, Select sel) protected SQLBuffer
DBDictionary.getDeleteTargets
(Select sel) protected String
DB2Dictionary.getForUpdateClause
(JDBCFetchConfiguration fetch, boolean isForUpdate, Select sel) Get the update clause for the query based on the isolationLevel hints if it is for update.protected String
DBDictionary.getForUpdateClause
(JDBCFetchConfiguration fetch, boolean isForUpdate, Select sel) Get the update clause for the query based on the updateClause and isolationLevel hintsprotected SQLBuffer
Return the portion of the select statement between the FROM keyword and the WHERE keyword.protected SQLBuffer
DBDictionary.getFromSelect
(Select sel, boolean forUpdate) Return the FROM clause for a select that selects from a tmp table created by an inner select.protected String
DB2Dictionary.getOptimizeClause
(Select sel) protected SQLBuffer
DBDictionary.getSelects
(Select sel, boolean distinctIdentifiers, boolean forUpdate) Return the portion of the select statement between the SELECT keyword and the FROM keyword.protected SQLBuffer
OracleDictionary.getSelects
(Select sel, boolean distinctIdentifiers, boolean forUpdate) protected Collection<String>
DBDictionary.getSelectTableAliases
(Select sel) protected Collection<String>
MariaDBDictionary.getSelectTableAliases
(Select sel) protected Collection<String>
MySQLDictionary.getSelectTableAliases
(Select sel) protected SQLBuffer
Return the WHERE portion of the select statement, or null if no where conditions.void
DB2Dictionary.insertBlobForStreamingLoad
(Row row, Column col, JDBCStore store, Object ob, Select sel) void
DBDictionary.insertBlobForStreamingLoad
(Row row, Column col, JDBCStore store, Object ob, Select sel) void
OracleDictionary.insertBlobForStreamingLoad
(Row row, Column col, JDBCStore store, Object ob, Select sel) void
PostgresDictionary.insertBlobForStreamingLoad
(Row row, Column col, JDBCStore store, Object ob, Select sel) Union factory.boolean
Replace a subselect.void
Populate thei
th select in the union.void
Populate thei
th select in the union.void
LogicalUnion.UnionSelect.setFromSelect
(Select sel) void
Select.setFromSelect
(Select sel) Another select instance that creates a temporary table from which this select pulls data.void
SelectImpl.setFromSelect
(Select sel) void
void
Turn this select into a subselect of the given instance.void
boolean
DBDictionary.supportsLocking
(Select sel) Returns true if a "FOR UPDATE" clause can be used for the specified Select object.boolean
OracleDictionary.supportsLocking
(Select sel) boolean
DB2Dictionary.supportsRandomAccessResultSet
(Select sel, boolean forUpdate) boolean
DBDictionary.supportsRandomAccessResultSet
(Select sel, boolean forUpdate) Return false if the given select requires a forward-only result set.boolean
InformixDictionary.supportsRandomAccessResultSet
(Select sel, boolean forUpdate) protected SQLBuffer
DBDictionary.toBulkOperation
(ClassMapping mapping, Select sel, JDBCStore store, Object[] params, Map updateParams) Returns the SQL for a bulk operation, either a DELETE or an UPDATE.DBDictionary.toDelete
(ClassMapping mapping, Select sel, Object[] params) Create a DELETE statement for the specified Select.protected SQLBuffer
DB2Dictionary.toSelect
(SQLBuffer select, JDBCFetchConfiguration fetch, SQLBuffer tables, SQLBuffer where, SQLBuffer group, SQLBuffer having, SQLBuffer order, boolean distinct, boolean forUpdate, long start, long end, Select sel) DBDictionary.toSelect
(Select sel, boolean forUpdate, JDBCFetchConfiguration fetch) Create a SELECT statement in the proper join syntax for the given instance.protected SQLBuffer
DBDictionary.toSelect
(SQLBuffer selects, JDBCFetchConfiguration fetch, SQLBuffer from, SQLBuffer where, SQLBuffer group, SQLBuffer having, SQLBuffer order, boolean distinct, boolean forUpdate, long start, long end, boolean subselect, Select sel) Combine the given components into a SELECT statement.protected SQLBuffer
DBDictionary.toSelect
(SQLBuffer selects, JDBCFetchConfiguration fetch, SQLBuffer from, SQLBuffer where, SQLBuffer group, SQLBuffer having, SQLBuffer order, boolean distinct, boolean forUpdate, long start, long end, Select sel) Combine the given components into a SELECT statement.protected SQLBuffer
OracleDictionary.toSelect
(SQLBuffer select, JDBCFetchConfiguration fetch, SQLBuffer tables, SQLBuffer where, SQLBuffer group, SQLBuffer having, SQLBuffer order, boolean distinct, boolean forUpdate, long start, long end, boolean subselect, Select sel) protected SQLBuffer
OracleDictionary.toSelect
(SQLBuffer select, JDBCFetchConfiguration fetch, SQLBuffer tables, SQLBuffer where, SQLBuffer group, SQLBuffer having, SQLBuffer order, boolean distinct, boolean forUpdate, long start, long end, Select sel) DBDictionary.toSelectCount
(Select sel) Create a SELECT COUNT statement in the proper join syntax for the given instance.DBDictionary.toSQL92Join
(Select sel, Join join, boolean forUpdate, boolean first) Use the given join instance to create SQL joining its tables in the SQL92 style.DBDictionary.toUpdate
(ClassMapping mapping, Select sel, JDBCStore store, Object[] params, Map updates) void
DB2Dictionary.updateBlob
(Select sel, JDBCStore store, InputStream is) void
DBDictionary.updateBlob
(Select sel, JDBCStore store, InputStream is) void
PostgresDictionary.updateBlob
(Select sel, JDBCStore store, InputStream is) void
DB2Dictionary.updateClob
(Select sel, JDBCStore store, Reader reader) void
DBDictionary.updateClob
(Select sel, JDBCStore store, Reader reader) ModifierConstructorDescriptionprotected
LogicalUnion
(JDBCConfiguration conf, int sels, Select[] seeds) Delegate constructor.LogicalUnion
(JDBCConfiguration conf, Select[] seeds) Constructor used to seed the internal selects.