Index

A B C D E F G H I J L M N O P Q R S T U V 
All Classes and Interfaces|All Packages

A

aggregate(OrmSession, Aggregate...) - Method in class com.aashish.javaormashcode.query.QuerySet
Executes one or more aggregate projections within the given session.
aggregate(Aggregate...) - Method in class com.aashish.javaormashcode.query.QuerySet
Executes one or more aggregate projections using the configured primary data source.
aggregate(DataSource, Aggregate...) - Method in class com.aashish.javaormashcode.query.QuerySet
Executes one or more aggregate projections using the given data source.
Aggregate - Class in com.aashish.javaormashcode.query
 
Aggregate(String, String) - Constructor for class com.aashish.javaormashcode.query.Aggregate
 
alias() - Method in class com.aashish.javaormashcode.query.FieldRef
Returns the projection alias, or null when none was set.
all() - Method in class com.aashish.javaormashcode.query.QuerySet
Executes the select query using the configured primary data source.
all(OrmSession) - Method in class com.aashish.javaormashcode.query.QuerySet
Executes the select query within the given ORM session.
all(Class<R>) - Method in class com.aashish.javaormashcode.query.QuerySet
Executes the select query and maps rows into the given DTO type.
all(Class<R>, OrmSession) - Method in class com.aashish.javaormashcode.query.QuerySet
Executes the select query within the given session and maps rows into the DTO type.
all(Class<R>, DataSource) - Method in class com.aashish.javaormashcode.query.QuerySet
Executes the select query against the given data source and maps rows into the DTO type.
all(DataSource) - Method in class com.aashish.javaormashcode.query.QuerySet
Executes the select query using the given data source.
annotate(Subquery) - Method in class com.aashish.javaormashcode.query.QuerySet
Adds a subquery projection to the current select list.
as(String) - Method in class com.aashish.javaormashcode.query.Aggregate
Overrides the generated alias used for this aggregate result.
as(String) - Method in class com.aashish.javaormashcode.query.FieldRef
Returns a copy of this field reference with the given projection alias.
as(String) - Method in class com.aashish.javaormashcode.query.Subquery
Sets the alias exposed by this subquery when used in a select list.
asSql() - Method in class com.aashish.javaormashcode.query.QuerySet
Renders the current query as SQL without binding parameter values.
Avg - Class in com.aashish.javaormashcode.query
 
Avg(String) - Constructor for class com.aashish.javaormashcode.query.Avg
 

B

beginTransaction() - Method in class com.aashish.javaormashcode.jdbc.OrmSession
Starts a transaction by disabling auto-commit on the session connection.

C

close() - Method in class com.aashish.javaormashcode.jdbc.OrmSession
Closes the session connection and rolls back any unfinished transaction.
column() - Element in annotation interface com.aashish.javaormashcode.annotation.FieldName
 
com.aashish.javaormashcode.annotation - package com.aashish.javaormashcode.annotation
 
com.aashish.javaormashcode.api - package com.aashish.javaormashcode.api
 
com.aashish.javaormashcode.jdbc - package com.aashish.javaormashcode.jdbc
 
com.aashish.javaormashcode.metadata - package com.aashish.javaormashcode.metadata
 
com.aashish.javaormashcode.query - package com.aashish.javaormashcode.query
 
com.aashish.javaormashcode.sql - package com.aashish.javaormashcode.sql
 
commit() - Method in class com.aashish.javaormashcode.jdbc.OrmSession
Commits the active transaction and restores auto-commit mode.
CONTAINS - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
Count - Class in com.aashish.javaormashcode.query
 
Count(String) - Constructor for class com.aashish.javaormashcode.query.Count
 

D

DataSourceRegistry - Class in com.aashish.javaormashcode.jdbc
 
delete() - Method in class com.aashish.javaormashcode.query.QuerySet
Deletes rows matched by the current filters using the configured primary data source.
delete(OrmSession) - Method in class com.aashish.javaormashcode.query.QuerySet
Deletes rows matched by the current filters within the given session.
delete(DataSource) - Method in class com.aashish.javaormashcode.query.QuerySet
Deletes rows matched by the current filters using the given data source.

E

ENDSWITH - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
equals(Object) - Method in record class com.aashish.javaormashcode.query.LookupType.ParsedLookup
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.aashish.javaormashcode.query.PageRequest
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.aashish.javaormashcode.sql.PreparedSql
Indicates whether some other object is "equal to" this one.
EXACT - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 

F

field(String) - Static method in class com.aashish.javaormashcode.api.ORM
Creates a reusable field reference for selections, filters, and ordering.
field(String) - Method in class com.aashish.javaormashcode.query.QuerySet
Creates a field reference scoped to this query's model graph.
fieldName() - Method in record class com.aashish.javaormashcode.query.LookupType.ParsedLookup
Returns the value of the fieldName record component.
FieldName - Annotation Interface in com.aashish.javaormashcode.annotation
 
FieldRef<T,V> - Class in com.aashish.javaormashcode.query
 
filter(FieldRef<?, ?>, Object) - Method in class com.aashish.javaormashcode.query.QuerySet
Adds an exact-match filter for the given field reference.
filter(String, Object) - Method in class com.aashish.javaormashcode.query.QuerySet
Adds a filter using a lookup expression such as name__icontains.
FilterCriterion - Class in com.aashish.javaormashcode.query
 
foreignField() - Element in annotation interface com.aashish.javaormashcode.annotation.Relation
 

G

getAggregates() - Method in class com.aashish.javaormashcode.query.QueryState
 
getAlias() - Method in class com.aashish.javaormashcode.query.Aggregate
Returns the alias that will be used in the result row.
getAlias() - Method in class com.aashish.javaormashcode.query.JoinClause
 
getAlias() - Method in class com.aashish.javaormashcode.query.Projection
 
getAlias() - Method in class com.aashish.javaormashcode.query.Subquery
Returns the alias assigned to this subquery.
getBaseAlias() - Method in class com.aashish.javaormashcode.query.QueryState
 
getColumn() - Method in class com.aashish.javaormashcode.query.FilterCriterion
 
getColumnName() - Method in class com.aashish.javaormashcode.metadata.ModelMeta.FieldMeta
 
getConnection() - Method in class com.aashish.javaormashcode.jdbc.OrmSession
Lazily opens and returns the JDBC connection used by this session.
getExpression() - Method in class com.aashish.javaormashcode.query.Projection
 
getField() - Method in class com.aashish.javaormashcode.metadata.ModelMeta.FieldMeta
 
getField(String) - Method in class com.aashish.javaormashcode.metadata.ModelMeta
 
getFields() - Method in class com.aashish.javaormashcode.metadata.ModelMeta
 
getFilters() - Method in class com.aashish.javaormashcode.query.QueryState
 
getForeignColumn() - Method in class com.aashish.javaormashcode.metadata.ModelMeta.RelationMeta
 
getJoins() - Method in class com.aashish.javaormashcode.query.QueryState
 
getJoinType() - Method in class com.aashish.javaormashcode.metadata.ModelMeta.RelationMeta
 
getJoinType() - Method in class com.aashish.javaormashcode.query.JoinClause
 
getLimit() - Method in class com.aashish.javaormashcode.query.QueryState
 
getLocalColumn() - Method in class com.aashish.javaormashcode.metadata.ModelMeta.RelationMeta
 
getLookupType() - Method in class com.aashish.javaormashcode.query.FilterCriterion
 
getMeta(Class<?>) - Static method in class com.aashish.javaormashcode.metadata.ModelIntrospector
 
getModelClass() - Method in class com.aashish.javaormashcode.metadata.ModelMeta
 
getModelMeta() - Method in class com.aashish.javaormashcode.query.QueryState
 
getName() - Method in class com.aashish.javaormashcode.metadata.ModelMeta.RelationMeta
 
getOffset() - Method in class com.aashish.javaormashcode.query.QueryState
 
getOrders() - Method in class com.aashish.javaormashcode.query.QueryState
 
getPrimaryDataSource() - Static method in class com.aashish.javaormashcode.jdbc.DataSourceRegistry
 
getPrimaryKey() - Method in class com.aashish.javaormashcode.metadata.ModelMeta
 
getProjections() - Method in class com.aashish.javaormashcode.query.QueryState
 
getRelation(String) - Method in class com.aashish.javaormashcode.metadata.ModelMeta
 
getRelationField() - Method in class com.aashish.javaormashcode.metadata.ModelMeta.RelationMeta
 
getRelationMeta() - Method in class com.aashish.javaormashcode.query.JoinClause
 
getRelationName() - Method in class com.aashish.javaormashcode.query.JoinClause
 
getRelations() - Method in class com.aashish.javaormashcode.metadata.ModelMeta
 
getSql() - Method in enum class com.aashish.javaormashcode.query.JoinType
 
getState() - Method in class com.aashish.javaormashcode.query.QuerySet
Exposes the mutable query state backing this query set.
getTableName() - Method in class com.aashish.javaormashcode.metadata.ModelMeta
 
getTargetClass() - Method in class com.aashish.javaormashcode.metadata.ModelMeta.RelationMeta
 
getTargetMeta() - Method in class com.aashish.javaormashcode.metadata.ModelMeta.RelationMeta
 
getValue() - Method in class com.aashish.javaormashcode.query.FilterCriterion
 
getValue(Object) - Method in class com.aashish.javaormashcode.metadata.ModelMeta.FieldMeta
 
getValues() - Method in class com.aashish.javaormashcode.query.QueryState
 
GT - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
GTE - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 

H

hashCode() - Method in record class com.aashish.javaormashcode.query.LookupType.ParsedLookup
Returns a hash code value for this object.
hashCode() - Method in record class com.aashish.javaormashcode.query.PageRequest
Returns a hash code value for this object.
hashCode() - Method in record class com.aashish.javaormashcode.sql.PreparedSql
Returns a hash code value for this object.

I

ICONTAINS - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
IENDSWITH - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
IEXACT - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
ignore() - Element in annotation interface com.aashish.javaormashcode.annotation.FieldName
 
IN - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
INNER - Enum constant in enum class com.aashish.javaormashcode.query.JoinType
 
insert(Map<String, Object>) - Method in class com.aashish.javaormashcode.query.QuerySet
Inserts a row using the configured primary data source.
insert(Map<String, Object>, OrmSession) - Method in class com.aashish.javaormashcode.query.QuerySet
Inserts a row within the given session.
insert(Map<String, Object>, DataSource) - Method in class com.aashish.javaormashcode.query.QuerySet
Inserts a row using the given data source.
ISNOTNULL - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
ISNULL - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
isPrimaryKey() - Method in class com.aashish.javaormashcode.metadata.ModelMeta.FieldMeta
 
ISTARTSWITH - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 

J

JdbcExecutor - Class in com.aashish.javaormashcode.jdbc
 
join(String) - Method in class com.aashish.javaormashcode.query.QuerySet
Adds an inner join for the named relation.
JoinClause - Class in com.aashish.javaormashcode.query
 
joinType() - Element in annotation interface com.aashish.javaormashcode.annotation.Relation
 
JoinType - Enum Class in com.aashish.javaormashcode.query
 

L

LEFT - Enum constant in enum class com.aashish.javaormashcode.query.JoinType
 
leftJoin(String) - Method in class com.aashish.javaormashcode.query.QuerySet
Adds a left join for the named relation.
limit(int) - Method in class com.aashish.javaormashcode.query.QuerySet
Sets the maximum number of rows returned by the query.
localField() - Element in annotation interface com.aashish.javaormashcode.annotation.Relation
 
LookupType - Enum Class in com.aashish.javaormashcode.query
 
LookupType.ParsedLookup - Record Class in com.aashish.javaormashcode.query
 
LT - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
LTE - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 

M

Max - Class in com.aashish.javaormashcode.query
 
Max(String) - Constructor for class com.aashish.javaormashcode.query.Max
 
Min - Class in com.aashish.javaormashcode.query
 
Min(String) - Constructor for class com.aashish.javaormashcode.query.Min
 
ModelIntrospector - Class in com.aashish.javaormashcode.metadata
 
ModelMeta - Class in com.aashish.javaormashcode.metadata
 
ModelMeta.FieldMeta - Class in com.aashish.javaormashcode.metadata
 
ModelMeta.RelationMeta - Class in com.aashish.javaormashcode.metadata
 

N

nextPage() - Method in class com.aashish.javaormashcode.query.QuerySet
Advances the current offset by one page.
NOTIN - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 

O

of(Class<T>) - Static method in class com.aashish.javaormashcode.api.ORM
Creates a query builder for the given model class.
of(String) - Static method in class com.aashish.javaormashcode.query.FieldRef
Creates a field reference for the given model field or joined path.
offset() - Method in record class com.aashish.javaormashcode.query.PageRequest
Returns the row offset represented by this page request.
offset(int) - Method in class com.aashish.javaormashcode.query.QuerySet
Sets the number of rows to skip before returning results.
openSession() - Static method in class com.aashish.javaormashcode.api.ORM
Opens a session backed by the configured primary data source.
openSession(DataSource) - Static method in class com.aashish.javaormashcode.api.ORM
Opens a session backed by the given data source.
order(FieldRef<?, ?>, boolean) - Method in class com.aashish.javaormashcode.query.QuerySet
Adds an ordering clause for the given field reference.
order(String, boolean) - Method in class com.aashish.javaormashcode.query.QuerySet
Adds an ordering clause for the given column or field path.
ORM - Class in com.aashish.javaormashcode.api
 
OrmSession - Class in com.aashish.javaormashcode.jdbc
 
OrmSession(DataSource) - Constructor for class com.aashish.javaormashcode.jdbc.OrmSession
 

P

page(int, int) - Method in class com.aashish.javaormashcode.query.QuerySet
Applies pagination using a 1-based page number and page size.
pageNumber() - Method in record class com.aashish.javaormashcode.query.PageRequest
Returns the value of the pageNumber record component.
PageRequest - Record Class in com.aashish.javaormashcode.query
 
PageRequest(int, int) - Constructor for record class com.aashish.javaormashcode.query.PageRequest
Creates an instance of a PageRequest record class.
pageSize() - Method in record class com.aashish.javaormashcode.query.PageRequest
Returns the value of the pageSize record component.
paginate(PageRequest) - Method in class com.aashish.javaormashcode.query.QuerySet
Applies pagination from the given page request.
parameters() - Method in record class com.aashish.javaormashcode.sql.PreparedSql
Returns the value of the parameters record component.
parse(String) - Static method in enum class com.aashish.javaormashcode.query.LookupType
Parses a lookup expression such as age__gte into a field path and lookup type.
ParsedLookup(String, LookupType) - Constructor for record class com.aashish.javaormashcode.query.LookupType.ParsedLookup
Creates an instance of a ParsedLookup record class.
path() - Method in class com.aashish.javaormashcode.query.FieldRef
Returns the referenced field path.
prepareAggregate(QueryState) - Static method in class com.aashish.javaormashcode.sql.SqlRenderer
 
prepareDelete(QueryState) - Static method in class com.aashish.javaormashcode.sql.SqlRenderer
 
PreparedSql - Record Class in com.aashish.javaormashcode.sql
 
PreparedSql(String, List<Object>) - Constructor for record class com.aashish.javaormashcode.sql.PreparedSql
Creates an instance of a PreparedSql record class.
prepareInsert(QueryState) - Static method in class com.aashish.javaormashcode.sql.SqlRenderer
 
prepareSelect(QueryState) - Static method in class com.aashish.javaormashcode.sql.SqlRenderer
 
prepareUpdate(QueryState) - Static method in class com.aashish.javaormashcode.sql.SqlRenderer
 
previousPage() - Method in class com.aashish.javaormashcode.query.QuerySet
Moves the current offset back by one page without going below zero.
primaryKey() - Element in annotation interface com.aashish.javaormashcode.annotation.FieldName
 
Projection - Class in com.aashish.javaormashcode.query
 

Q

query(OrmSession, PreparedSql, Class<T>) - Static method in class com.aashish.javaormashcode.jdbc.JdbcExecutor
 
query(DataSource, PreparedSql, Class<T>) - Static method in class com.aashish.javaormashcode.jdbc.JdbcExecutor
 
QuerySet<T> - Class in com.aashish.javaormashcode.query
 
QuerySet(Class<T>) - Constructor for class com.aashish.javaormashcode.query.QuerySet
 
querySingleRow(OrmSession, PreparedSql) - Static method in class com.aashish.javaormashcode.jdbc.JdbcExecutor
 
querySingleRow(DataSource, PreparedSql) - Static method in class com.aashish.javaormashcode.jdbc.JdbcExecutor
 
QueryState - Class in com.aashish.javaormashcode.query
 

R

RANGE - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
Relation - Annotation Interface in com.aashish.javaormashcode.annotation
 
renderAggregate(QueryState) - Static method in class com.aashish.javaormashcode.sql.SqlRenderer
 
renderDelete(QueryState) - Static method in class com.aashish.javaormashcode.sql.SqlRenderer
 
renderInsert(QueryState) - Static method in class com.aashish.javaormashcode.sql.SqlRenderer
 
renderSelect(QueryState) - Static method in class com.aashish.javaormashcode.sql.SqlRenderer
 
renderUpdate(QueryState) - Static method in class com.aashish.javaormashcode.sql.SqlRenderer
 
resolve(DataSource) - Static method in class com.aashish.javaormashcode.jdbc.DataSourceRegistry
 
rollback() - Method in class com.aashish.javaormashcode.jdbc.OrmSession
Rolls back the active transaction and restores auto-commit mode.

S

select(FieldRef<?, ?>...) - Method in class com.aashish.javaormashcode.query.QuerySet
Replaces the selected columns with the given field references.
select(String...) - Method in class com.aashish.javaormashcode.query.QuerySet
Replaces the selected columns with the given field paths.
setLimit(int) - Method in class com.aashish.javaormashcode.query.QueryState
 
setOffset(int) - Method in class com.aashish.javaormashcode.query.QueryState
 
setPrimaryDataSource(DataSource) - Static method in class com.aashish.javaormashcode.api.ORM
Registers the default data source used when queries do not provide one explicitly.
setPrimaryDataSource(DataSource) - Static method in class com.aashish.javaormashcode.jdbc.DataSourceRegistry
 
setValue(Object, Object) - Method in class com.aashish.javaormashcode.metadata.ModelMeta.FieldMeta
 
setValues(Map<String, Object>) - Method in class com.aashish.javaormashcode.query.QueryState
 
sql() - Method in record class com.aashish.javaormashcode.sql.PreparedSql
Returns the value of the sql record component.
SqlRenderer - Class in com.aashish.javaormashcode.sql
 
STARTSWITH - Enum constant in enum class com.aashish.javaormashcode.query.LookupType
 
Subquery - Class in com.aashish.javaormashcode.query
 
Subquery(QuerySet<?>) - Constructor for class com.aashish.javaormashcode.query.Subquery
Wraps the given query set so it can be reused as a subquery projection.
Sum - Class in com.aashish.javaormashcode.query
 
Sum(String) - Constructor for class com.aashish.javaormashcode.query.Sum
 

T

table() - Element in annotation interface com.aashish.javaormashcode.annotation.TableName
 
TableName - Annotation Interface in com.aashish.javaormashcode.annotation
 
target() - Element in annotation interface com.aashish.javaormashcode.annotation.Relation
 
toPreparedSql() - Method in class com.aashish.javaormashcode.query.Subquery
Returns parameterized SQL for the subquery wrapped in parentheses.
toSql() - Method in class com.aashish.javaormashcode.query.Aggregate
Renders this aggregate as a SQL projection.
toSql() - Method in class com.aashish.javaormashcode.query.Subquery
Renders the subquery as raw SQL wrapped in parentheses.
toString() - Method in record class com.aashish.javaormashcode.query.LookupType.ParsedLookup
Returns a string representation of this record class.
toString() - Method in record class com.aashish.javaormashcode.query.PageRequest
Returns a string representation of this record class.
toString() - Method in record class com.aashish.javaormashcode.sql.PreparedSql
Returns a string representation of this record class.
type() - Method in record class com.aashish.javaormashcode.query.LookupType.ParsedLookup
Returns the value of the type record component.

U

update(OrmSession, PreparedSql) - Static method in class com.aashish.javaormashcode.jdbc.JdbcExecutor
 
update(Map<String, Object>) - Method in class com.aashish.javaormashcode.query.QuerySet
Updates rows matched by the current filters using the configured primary data source.
update(Map<String, Object>, OrmSession) - Method in class com.aashish.javaormashcode.query.QuerySet
Updates rows matched by the current filters within the given session.
update(Map<String, Object>, DataSource) - Method in class com.aashish.javaormashcode.query.QuerySet
Updates rows matched by the current filters using the given data source.
update(DataSource, PreparedSql) - Static method in class com.aashish.javaormashcode.jdbc.JdbcExecutor
 

V

valueOf(String) - Static method in enum class com.aashish.javaormashcode.query.JoinType
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.aashish.javaormashcode.query.LookupType
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.aashish.javaormashcode.query.JoinType
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.aashish.javaormashcode.query.LookupType
Returns an array containing the constants of this enum class, in the order they are declared.
values(FieldRef<?, ?>...) - Method in class com.aashish.javaormashcode.query.QuerySet
values(String...) - Method in class com.aashish.javaormashcode.query.QuerySet
A B C D E F G H I J L M N O P Q R S T U V 
All Classes and Interfaces|All Packages