| Package | Description |
|---|---|
| org.ujorm.core | |
| org.ujorm.orm |
The ORM support.
|
| org.ujorm.orm.dialect | |
| org.ujorm.orm.utility |
| Modifier and Type | Method and Description |
|---|---|
static <T extends OrmUjo> |
UjoIterator.getInstance(Query<T> query) |
| Modifier and Type | Method and Description |
|---|---|
Query<UJO> |
Query.addColumn(Key<UJO,?> column)
Set the one column to reading from database table.
|
Query<UJO> |
Query.addOrderBy(Key<UJO,?> property)
Add an item to the end of order list.
|
<UJO extends OrmUjo> |
Session.createQuery(Class<UJO> aClass)
Create query for all table rows.
|
<UJO extends OrmUjo> |
Session.createQuery(Class<UJO> aClass,
Criterion<UJO> criterion)
Deprecated.
Use the method
createQuery(Criterion, Class) rather. |
<UJO extends OrmUjo> |
Session.createQuery(Criterion<UJO> criterion)
The table class is derived from the first criterion column.
|
<UJO extends OrmUjo> |
Session.createQuery(Criterion<UJO> criterion,
Class<UJO> aClass)
Create query.
|
protected Query |
SqlDialect.createSubQuery(CriterionDecoder decoder)
Create a subquery for the DELETE/UPDATE statement
|
Query<UJO> |
Query.orderBy(Collection<Key> orderItems)
Set an order of the rows by a SQL ORDER BY phrase.
|
Query<UJO> |
Query.orderBy(Key<UJO,?> orderItem)
Set an order of the rows by a SQL ORDER BY phrase.
|
Query<UJO> |
Query.orderBy(Key<UJO,?> orderItem1,
Key<UJO,?> orderItem2)
Set an order of the rows by a SQL ORDER BY phrase.
|
Query<UJO> |
Query.orderBy(Key<UJO,?> orderItem1,
Key<UJO,?> orderItem2,
Key<UJO,?> orderItem3)
Set an order of the rows by a SQL ORDER BY phrase.
|
Query<UJO> |
Query.orderByMany(Key... orderItems)
Set an order of the rows by a SQL ORDER BY phrase.
|
Query<UJO> |
Query.setColumn(Key<UJO,?> column)
Set the one column to reading from database table.
|
Query<UJO> |
Query.setColumns(boolean addPrimaryKey,
boolean addChilds,
Key... columns)
Set an list of required columns to reading from database table.
|
Query<UJO> |
Query.setColumns(boolean addPrimaryKey,
Key... columns)
Set an list of required columns to reading from database table.
|
Query<UJO> |
Query.setCriterion(Criterion<UJO> criterion)
Set a new Criterion.
|
Query<UJO> |
Query.setDistinct()
Select DISTINCT for a unique row result
|
Query<UJO> |
Query.setDistinct(boolean distinct)
Select DISTINCT for a unique row result
|
Query<UJO> |
Query.setFetchSize(int fetchSize)
Retrieves the number of result set rows that is the default fetch size for ResultSet objects generated from this Statement object.
|
Query<UJO> |
Query.setLimit(int limit)
The max row count for the resultset.
|
Query<UJO> |
Query.setLimit(int limit,
long offset)
Set a limit and offset.
|
Query<UJO> |
Query.setLockRequest()
Set pessimistic lock request.
|
Query<UJO> |
Query.setLockRequest(boolean lockRequest)
Pessimistic lock request.
|
Query<UJO> |
Query.setMaxRows(int limit)
Deprecated.
|
Query<UJO> |
Query.setOffset(int offset)
Get the first row to retrieve (offset).
|
Query<UJO> |
Query.setOrder(Key... order)
Deprecated.
Use the
orderByMany(org.ujorm.Key[]) method instead of |
Query<UJO> |
Query.setSession(Session session)
An open session must be assigned before executing a database request.
|
Query<UJO> |
Query.setSqlParameters(Object... parameters)
Set a SQL parameters of the Native View
|
Query<UJO> |
Query.setSqlParameters(SqlParameters sqlParameters)
Set a SQL parameters of the Native View
|
| Modifier and Type | Method and Description |
|---|---|
void |
JdbcStatement.assignExtendedValues(Query query)
Assign extended values into the prepared statement
|
void |
JdbcStatement.assignValues(Query query)
Assign values into the prepared statement
|
<UJO extends OrmUjo> |
Session.getRowCount(Query<UJO> query)
Returns a count of rows
|
JdbcStatement |
Session.getStatement(Query query)
Run SQL SELECT by query.
|
protected Appendable |
SqlDialect.printLockForSelect(Query query,
Appendable out)
Print a 'lock clausule' to the end of SQL SELECT statement to use a pessimistic lock.
|
void |
SqlDialect.printOffset(Query query,
Appendable out)
Print an OFFSET of the statement SELECT.
|
Appendable |
SqlDialect.printSelect(TableWrapper table,
Query query,
boolean count,
Appendable out)
Print a SQL SELECT by table model and query
|
protected void |
SqlDialect.printSelectOrder(Query query,
Appendable out)
Print SQL ORDER BY
|
protected Appendable |
SqlDialect.printSelectTable(Query query,
boolean count,
Appendable out)
Print SQL database SELECT
|
protected void |
SqlDialect.printSelectTableBase(Query query,
boolean count,
Appendable out)
Print SQL database SELECT
|
protected Appendable |
SqlDialect.printSelectView(TableWrapper table,
Query query,
boolean count,
Appendable out)
Print SQL view SELECT
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MSSqlDialect.createInnerSelectPart(Query query,
Appendable out)
Inner select select with under aliases assignment and order columns (have to propagate to outer select)
|
protected void |
MSSqlDialect.createOuterPart(String innerSelect,
Query query,
Appendable out)
Outer part of select with sorting
|
protected void |
MSSqlDialect.createRowOrderPart(Query query,
Appendable out,
boolean asOrderAlias)
Creating RowNumber column
|
protected void |
MSSqlDialect.createWherePart(Query query,
Appendable out)
Where clause for inner select
|
protected Appendable |
HsqldbDialect.printLockForSelect(Query query,
Appendable out)
Including 1.7.2, HSQLDB does not support table locking via SELECT FOR UPDATE.
For more information see http://hsqldb.org. |
protected Appendable |
FirebirdDialect.printLockForSelect(Query query,
Appendable out)
Print a 'lock clausule' to the end of SQL SELECT statement to use a pessimistic lock.
|
void |
OracleDialect.printOffset(Query query,
Appendable out) |
void |
PostgreSqlDialect.printOffset(Query query,
Appendable out)
Print an OFFSET of the statement SELECT.
|
void |
DerbyDialect.printOffset(Query query,
Appendable out) |
protected void |
MSSqlDialect.printOrderColumns(Query query,
Appendable out,
boolean asOrderAlias,
boolean addOrderAlias,
boolean showDesc) |
void |
MSSqlDialect.printSelectOrder(Query query,
Appendable out,
boolean orderAlias)
Print SQL ORDER BY
|
protected Appendable |
MSSqlDialect.printSelectTable(Query query,
boolean count,
Appendable out)
Custom implementation of MS-SQL dialect due to different offset and limit usage
|
protected Appendable |
OracleDialect.printSelectTable(Query query,
boolean count,
Appendable out)
Print SQL database SELECT
|
| Modifier and Type | Method and Description |
|---|---|
static <UJO extends ExtendedOrmUjo> |
OrmTools.loadLazyValuesAsBatch(Query<UJO> query)
Load lazy value for all items and all relation keys by the rule: a one SQL statement per relation property.
|
Copyright 2013, Pavel Ponec