Package | Description |
---|---|
sirius.db.jdbc |
Support layer for using JDBC (accessing SQL Databases).
|
sirius.db.jdbc.batch | |
sirius.db.jdbc.constraints | |
sirius.db.mixing.properties |
Modifier and Type | Class and Description |
---|---|
class |
SmartQuery<E extends SQLEntity>
Provides a query DSL which is used to query
SQLEntity instances from the database. |
class |
SQLEntityRef<E extends SQLEntity>
Represents a reference from one entity to another.
|
class |
TransformedQuery<E extends SQLEntity>
A transformed query converts a plain
SQLQuery into one that returns entities rather than rows. |
Modifier and Type | Method and Description |
---|---|
protected <E extends SQLEntity> |
OMA.execFind(Object id,
EntityDescriptor ed,
Connection c) |
protected <E extends SQLEntity> |
OMA.findEntity(E entity) |
protected <E extends SQLEntity> |
OMA.findEntity(Object id,
EntityDescriptor ed,
Function<String,sirius.kernel.commons.Value> context)
Tries to find the entity with the given id
|
static <E extends SQLEntity> |
SQLEntityRef.on(Class<E> type,
BaseEntityRef.OnDelete deleteHandler)
Generates an entity reference to the given entity type.
|
<E extends SQLEntity> |
OMA.select(Class<E> type) |
<E extends SQLEntity> |
OMA.transform(Class<E> type,
SQLQuery qry)
Transforms a plain
SQLQuery to directly return entities of the given type. |
<E extends SQLEntity> |
OMA.transform(Class<E> type,
String alias,
SQLQuery qry)
Same as
OMA.transform(Class, SQLQuery) but with support for aliased columns. |
Modifier and Type | Method and Description |
---|---|
protected void |
OMA.createEntity(SQLEntity entity,
EntityDescriptor ed) |
protected void |
OMA.deleteEntity(SQLEntity entity,
boolean force,
EntityDescriptor ed) |
protected void |
SmartQuery.Compiler.executeJoinFetches(SQLEntity entity,
Set<String> columns,
ResultSet rs) |
static void |
OMA.loadCreatedId(SQLEntity entity,
Row keys)
Loads an auto generated id from the given row.
|
protected void |
OMA.updateEntity(SQLEntity entity,
boolean force,
EntityDescriptor ed) |
Modifier and Type | Class and Description |
---|---|
class |
BatchQuery<E extends SQLEntity>
Provides an abstract wrapper around a
PreparedStatement to be used within a BatchContext . |
class |
DeleteQuery<E extends SQLEntity>
Represents a batch query which deletes one or more entities from the database.
|
class |
FindQuery<E extends SQLEntity>
Represents a batch query which finds and entity in the database.
|
class |
InsertQuery<E extends SQLEntity>
Represents a batch query which inserts an entity into the database.
|
class |
UpdateQuery<E extends SQLEntity>
Represents a batch query which updates an entity in the database.
|
Modifier and Type | Method and Description |
---|---|
<E extends SQLEntity> |
BatchContext.deleteQuery(Class<E> type,
Mapping... mappingsToCompare)
Creates a new
delete query . |
<E extends SQLEntity> |
BatchContext.findQuery(Class<E> type,
Mapping... mappingsToCompare)
Creates a
find query . |
<E extends SQLEntity> |
BatchContext.insertQuery(Class<E> type,
boolean fetchId,
Mapping... mappingsToInsert)
Creates a new
insert query . |
<E extends SQLEntity> |
BatchContext.insertQuery(Class<E> type,
Mapping... mappingsToInsert)
Creates a new
insert query . |
<E extends SQLEntity> |
BatchContext.updateByIdQuery(Class<E> type,
Mapping... mappingsToUpdate)
Creates a new
update query which uses ID as mapping to compare. |
<E extends SQLEntity> |
BatchContext.updateQuery(Class<E> type,
Mapping... mappingsToCompare)
Creates a new
update query . |
Modifier and Type | Method and Description |
---|---|
CustomQuery |
BatchContext.customQuery(Class<? extends SQLEntity> type,
boolean fetchId,
String sql)
Prepares the given SQL statement as
custom query . |
Constructor and Description |
---|
CustomQuery(BatchContext context,
Class<? extends SQLEntity> type,
boolean fetchId,
String sql) |
Modifier and Type | Method and Description |
---|---|
Exists |
SQLFilterFactory.existsIn(Mapping outerColumn,
Class<? extends SQLEntity> other,
Mapping innerColumn)
Generates an EXISTS clause: EXISTS(SELECT * FROM other WHERE e.outerColumn = other.innerColumn.
|
Constructor and Description |
---|
Exists(Mapping outerColumn,
Class<? extends SQLEntity> other,
Mapping innerColumn) |
Modifier and Type | Method and Description |
---|---|
protected Optional<SQLEntity> |
SQLEntityRefProperty.find(Class<SQLEntity> type,
sirius.kernel.commons.Value value) |
Modifier and Type | Method and Description |
---|---|
void |
SQLEntityRefProperty.setReferencedEntity(SQLEntity parent,
SQLEntity child)
Updates the field (
SQLEntityRef within the given parent to point to the given child. |
Modifier and Type | Method and Description |
---|---|
protected Optional<SQLEntity> |
SQLEntityRefProperty.find(Class<SQLEntity> type,
sirius.kernel.commons.Value value) |
Copyright © 2018. All rights reserved.