| Package | Description |
|---|---|
| net.as_development.asdk.api.db | |
| net.as_development.asdk.db_service | |
| net.as_development.asdk.db_service.impl |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IDBQuery<TEntity extends IEntity>
Queries can be used to search for data base entities which match to a set of
specified criteria.
|
| Modifier and Type | Method and Description |
|---|---|
<TEntity extends IEntity> |
IDBSchema.createEntitySchema(Class<TEntity> aType)
create necessary structures inside DB for specified entity type.
|
<TEntity extends IEntity> |
IDB.getAllEntitiesOfType(Class<TEntity> aType,
String sNextToken,
List<TEntity> lResults)
return all entities matching to the given type.
|
<TEntity extends IEntity> |
IDB.getEntitiesById(Class<TEntity> aType,
String sNextToken,
List<TEntity> lResults,
String... lIds)
return a list of entities matching to the given list of primary keys.
|
<TEntity extends IEntity> |
IDB.getEntityById(Class<TEntity> aType,
String sId)
direct access to ONE entity which specified ID.
|
<TEntity extends IEntity> |
IDB.prepareQuery(Class<TEntity> aType,
String sQueryId)
provide a query object which we can use later at the interface method
IDB.query ().
|
<TEntity extends IEntity> |
IDB.query(Class<TEntity> aType,
String sNextToken,
List<TEntity> lResults,
IDBQuery<TEntity> iQuery)
query for entities where it's attributes match the given set of
query parameters/values.
|
<TEntity extends IEntity> |
IDB.queryOne(Class<TEntity> aType,
IDBQuery<TEntity> iQuery)
Does the same then query () ... but instead of be usable for big sets of
results these method can be used if one result will be expected.
|
<TEntity extends IEntity> |
IDB.removeAllEntitiesOfType(Class<TEntity> aType)
remove all entities of given type from these DB.
|
<TEntity extends IEntity> |
IDB.removeEntities(TEntity... lEntities)
remove the given set of entities from the DB.
|
<TEntity extends IEntity> |
IDB.removeEntitiesById(Class<TEntity> aType,
String... lIds)
remove all entities of specified type from the DB where it's
Id's match to given Id set.
|
<TEntity extends IEntity> |
IDBSchema.removeEntitySchema(Class<TEntity> aType)
remove all data within DB back end related to the specified entity.
|
<TEntity extends IEntity> |
IDB.storeEntities(TEntity... lEntities)
make all given entities persistent inside DB.
|
| Modifier and Type | Method and Description |
|---|---|
<TEntity extends IEntity> |
IDB.removeEntities(TEntity... lEntities)
remove the given set of entities from the DB.
|
<TEntity extends IEntity> |
IDB.storeEntities(TEntity... lEntities)
make all given entities persistent inside DB.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EntityBase
provides basic functionality for all DB entities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DBQuery<TEntity extends IEntity>
An implementation for the interface IDBQuery.
|
class |
DBQueryTemplate<TEntity extends IEntity>
Because IDBQuery (implemented as class DBQuery) can't be used within multi-threaded
environments if it contains both (meta structure and real values) we split
those functionality into two pieces:
- the template part which contains all meta and static parts of a query
- the value part referring the template and adding real query values only
Where the template can be cached and used multi-threaded the value part
must not be cached.
|
| Modifier and Type | Method and Description |
|---|---|
<TEntity extends IEntity> |
DB.createEntitySchema(Class<TEntity> aType) |
<TEntity extends IEntity> |
DB.getAllEntitiesOfType(Class<TEntity> aType,
String sNextToken,
List<TEntity> lResults) |
<TEntity extends IEntity> |
DB.getEntitiesById(Class<TEntity> aType,
String sNextToken,
List<TEntity> lResults,
String... lIds) |
<TEntity extends IEntity> |
DB.getEntityById(Class<TEntity> aType,
String sId) |
<TEntity extends IEntity> |
DB.prepareQuery(Class<TEntity> aType,
String sQueryId) |
<TEntity extends IEntity> |
DB.query(Class<TEntity> aType,
String sNextToken,
List<TEntity> lResults,
IDBQuery<TEntity> iQuery) |
<TEntity extends IEntity> |
DB.queryOne(Class<TEntity> aType,
IDBQuery<TEntity> iQuery) |
<TEntity extends IEntity> |
DB.removeAllEntitiesOfType(Class<TEntity> aType) |
<TEntity extends IEntity> |
DB.removeEntities(TEntity... lEntities) |
<TEntity extends IEntity> |
DB.removeEntitiesById(Class<TEntity> aType,
String... lIds) |
<TEntity extends IEntity> |
DB.removeEntitySchema(Class<TEntity> aType) |
<TEntity extends IEntity> |
DB.storeEntities(TEntity... lEntities) |
| Modifier and Type | Method and Description |
|---|---|
<TEntity extends IEntity> |
DB.removeEntities(TEntity... lEntities) |
<TEntity extends IEntity> |
DB.storeEntities(TEntity... lEntities) |
Copyright © 2016 as-development.net. All rights reserved.