Package | Description |
---|---|
sirius.db.es | |
sirius.db.es.constraints | |
sirius.db.jdbc |
Support layer for using JDBC (accessing SQL Databases).
|
sirius.db.jdbc.batch | |
sirius.db.jdbc.constraints | |
sirius.db.jdbc.schema | |
sirius.db.mixing | |
sirius.db.mixing.properties | |
sirius.db.mixing.query | |
sirius.db.mixing.query.constraints | |
sirius.db.mongo |
Thin layer above Mongo DB.
|
sirius.db.mongo.constraints |
Modifier and Type | Field and Description |
---|---|
protected Map<EntityDescriptor,Property> |
Elastic.discriminatorTable |
protected Map<EntityDescriptor,Property> |
Elastic.routeTable |
Modifier and Type | Method and Description |
---|---|
protected void |
Elastic.createEntity(ElasticEntity entity,
EntityDescriptor ed) |
protected void |
Elastic.deleteEntity(ElasticEntity entity,
boolean force,
EntityDescriptor ed) |
protected String |
Elastic.determineIndex(EntityDescriptor ed,
ElasticEntity entity)
Determines the index to use for the given entity.
|
protected String |
Elastic.determineRouting(EntityDescriptor ed,
ElasticEntity entity)
Determines the routing value to be used for the given entity.
|
protected String |
Elastic.determineTypeName(EntityDescriptor ed)
Determines the type name used for a given entity type.
|
protected String |
Elastic.determineYearIndex(EntityDescriptor ed,
Object year)
Computes the effective index name for the given descriptor and year.
|
void |
IndexMappings.ensureYearlyIndexExists(EntityDescriptor ed,
int year)
Ensures that the index for the given entity type and year exists and contains the appropriate mappings.
|
protected <E extends ElasticEntity> |
Elastic.findEntity(Object id,
EntityDescriptor ed,
Function<String,sirius.kernel.commons.Value> context) |
boolean |
Elastic.isRouted(EntityDescriptor ed)
Determines if the entity of the given descriptor requires a routing value.
|
boolean |
Elastic.isStoredPerYear(EntityDescriptor descriptor)
Determines if the given entity type is
stored per year . |
protected static ElasticEntity |
Elastic.make(EntityDescriptor ed,
com.alibaba.fastjson.JSONObject obj)
Creates a new instance of the given entity type for the given data.
|
protected boolean |
IndexMappings.setupEntity(EntityDescriptor ed) |
protected boolean |
Elastic.toJSON(EntityDescriptor ed,
ElasticEntity entity,
com.alibaba.fastjson.JSONObject data)
Transforms the given entity to JSON.
|
protected void |
Elastic.updateDiscriminatorTable(EntityDescriptor ed,
Property p) |
protected void |
Elastic.updateEntity(ElasticEntity entity,
boolean force,
EntityDescriptor ed) |
protected void |
Elastic.updateRouteTable(EntityDescriptor ed,
Property p) |
Constructor and Description |
---|
ElasticQuery(EntityDescriptor descriptor,
LowLevelClient client)
Creates a new query for the given type using the given client.
|
Modifier and Type | Method and Description |
---|---|
ElasticConstraint |
ElasticFilterFactory.queryString(EntityDescriptor descriptor,
String query,
List<QueryField> fields) |
Constructor and Description |
---|
ElasticQueryCompiler(FilterFactory<ElasticConstraint> factory,
EntityDescriptor descriptor,
String query,
List<QueryField> searchFields)
Creates a new instance for the given factory entity and query.
|
Modifier and Type | Field and Description |
---|---|
protected EntityDescriptor |
SmartQuery.Compiler.ed |
Modifier and Type | Field and Description |
---|---|
protected Map<String,sirius.kernel.commons.Tuple<String,EntityDescriptor>> |
SmartQuery.Compiler.joinTable |
Modifier and Type | Method and Description |
---|---|
protected EntityDescriptor |
TranslationState.getEd() |
EntityDescriptor |
SmartQuery.getEntityDescriptor()
Returns the EntityDescriptor for the type of entities addressed by this query.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,sirius.kernel.commons.Tuple<String,EntityDescriptor>> |
TranslationState.getJoinTable() |
Modifier and Type | Method and Description |
---|---|
TranslationState |
SmartQuery.Compiler.captureAndReplaceTranslationState(String newDefaultAlias,
EntityDescriptor newDefaultDescriptor)
Returns the currently active translation state and replaces all settings for the new alias and base descriptor.
|
protected void |
OMA.createEntity(SQLEntity entity,
EntityDescriptor ed) |
protected void |
OMA.deleteEntity(SQLEntity entity,
boolean force,
EntityDescriptor ed) |
protected <E extends SQLEntity> |
OMA.execFind(Object id,
EntityDescriptor ed,
Connection c) |
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
|
protected void |
OMA.updateEntity(SQLEntity entity,
boolean force,
EntityDescriptor ed) |
Constructor and Description |
---|
Compiler(EntityDescriptor ed)
Creates a new compiler for the given entity descriptor.
|
SmartQuery(EntityDescriptor descriptor,
Database db)
Creates a new query instance.
|
TransformedQuery(EntityDescriptor descriptor,
String alias,
SQLQuery qry) |
TranslationState(EntityDescriptor ed,
String defaultAlias,
StringBuilder joins,
Map<String,sirius.kernel.commons.Tuple<String,EntityDescriptor>> joinTable) |
Constructor and Description |
---|
TranslationState(EntityDescriptor ed,
String defaultAlias,
StringBuilder joins,
Map<String,sirius.kernel.commons.Tuple<String,EntityDescriptor>> joinTable) |
Modifier and Type | Field and Description |
---|---|
protected EntityDescriptor |
BatchQuery.descriptor |
Modifier and Type | Method and Description |
---|---|
protected EntityDescriptor |
BatchQuery.getDescriptor()
Determines the descriptor for the our entity type.
|
Modifier and Type | Method and Description |
---|---|
SQLConstraint |
SQLFilterFactory.queryString(EntityDescriptor descriptor,
String query,
List<QueryField> fields) |
Constructor and Description |
---|
SQLQueryCompiler(FilterFactory<SQLConstraint> factory,
EntityDescriptor descriptor,
String query,
List<QueryField> searchFields)
Creates a new instance for the given factory entity and query.
|
Modifier and Type | Method and Description |
---|---|
EntityDescriptor |
Table.getSource() |
Constructor and Description |
---|
Table(EntityDescriptor source) |
Modifier and Type | Field and Description |
---|---|
protected EntityDescriptor |
Property.descriptor
Contains the descriptor to which this property belongs
|
Modifier and Type | Method and Description |
---|---|
EntityDescriptor |
Property.getDescriptor()
Returns the entity descriptor to which this property belongs
|
EntityDescriptor |
BaseEntity.getDescriptor()
Returns the descriptor which maps the entity to the database table.
|
EntityDescriptor |
Mixing.getDescriptor(Class<?> aClass)
Returns the descriptor of the given entity class.
|
EntityDescriptor |
Mixing.getDescriptor(String aTypeName)
Returns the descriptor for the given entity type.
|
Modifier and Type | Method and Description |
---|---|
Optional<EntityDescriptor> |
Mixing.findDescriptor(String aTypeName)
Returns the descriptor for the given entity type.
|
Collection<EntityDescriptor> |
Mixing.getDesciptors()
Returns all known descriptors.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PropertyFactory.accepts(EntityDescriptor descriptor,
Field field)
Determines if the given field is handled by this property factory.
|
static void |
EntityDescriptor.addFields(EntityDescriptor descriptor,
AccessPath accessPath,
Class<?> clazz,
Consumer<Property> propertyConsumer) |
void |
PropertyFactory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer)
Computes a
Property for the given field. |
protected abstract void |
BaseMapper.createEntity(B entity,
EntityDescriptor ed)
Creates a new entity in the underlying database.
|
protected abstract void |
BaseMapper.deleteEntity(B entity,
boolean force,
EntityDescriptor ed)
Deletes the give entity from the database.
|
protected abstract <E extends B> |
BaseMapper.findEntity(Object id,
EntityDescriptor ed,
Function<String,sirius.kernel.commons.Value> context)
Tries to find the entity with the given id.
|
protected abstract void |
BaseMapper.updateEntity(B entity,
boolean force,
EntityDescriptor ed)
Updates an existing entity in the underlying database.
|
Constructor and Description |
---|
Property(EntityDescriptor descriptor,
AccessPath accessPath,
Field field)
Creates a new property for the given descriptor, access path and field.
|
Modifier and Type | Field and Description |
---|---|
protected EntityDescriptor |
BaseEntityRefProperty.referencedDescriptor |
Modifier and Type | Method and Description |
---|---|
protected EntityDescriptor |
StringNestedMapProperty.getNestedDescriptor() |
protected EntityDescriptor |
NestedListProperty.getNestedDescriptor() |
protected EntityDescriptor |
BaseEntityRefListProperty.getReferencedDescriptor()
Returns the
EntityDescriptor of the referenced entity. |
EntityDescriptor |
BaseEntityRefProperty.getReferencedDescriptor()
Returns the
EntityDescriptor of the referenced entity. |
Modifier and Type | Method and Description |
---|---|
boolean |
StringListMapProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
StringIntMapProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
StringListProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
LocalTimeProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
StringNestedMapProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
MultiPointLocationProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
LocalDateProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
EnumProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
LongProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
NestedListProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
IntegerProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
LocalDateTimeProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
MongoRefProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
StringLocalDateTimeMapProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
SQLEntityRefProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
BooleanProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
AmountProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
StringProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
BaseEntityRefListProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
CompositePropertyFactory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
ElasticRefProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
InstantProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
boolean |
StringMapProperty.Factory.accepts(EntityDescriptor descriptor,
Field field) |
void |
StringListMapProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
StringIntMapProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
StringListProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
LocalTimeProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
StringNestedMapProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
MultiPointLocationProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
LocalDateProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
EnumProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
LongProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
NestedListProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
IntegerProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
LocalDateTimeProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
MongoRefProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
StringLocalDateTimeMapProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
SQLEntityRefProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
BooleanProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
AmountProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
StringProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
BaseEntityRefListProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
CompositePropertyFactory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
ElasticRefProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
InstantProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
void |
StringMapProperty.Factory.create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer) |
Constructor and Description |
---|
BaseEntityRefProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
BaseMapProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
ElasticRefProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
LocalDateProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
LocalDateTimeProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
MongoRefProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
NestedListProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
SQLEntityRefProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
StringListProperty(EntityDescriptor descriptor,
AccessPath accessPath,
Field field) |
Modifier and Type | Field and Description |
---|---|
protected EntityDescriptor |
QueryCompiler.descriptor |
protected EntityDescriptor |
BaseQuery.descriptor
Contains the descriptor of the entities being queried.
|
Modifier and Type | Method and Description |
---|---|
EntityDescriptor |
BaseQuery.getDescriptor()
Returns the underlying descriptor
|
Modifier and Type | Method and Description |
---|---|
C |
QueryTagHandler.generateConstraint(FilterFactory<C> factory,
EntityDescriptor descriptor,
String tagValue)
Computes the constraint.
|
Constructor and Description |
---|
BaseQuery(EntityDescriptor descriptor)
Creates a new query for entities of the given type.
|
Query(EntityDescriptor descriptor) |
QueryCompiler(FilterFactory<C> factory,
EntityDescriptor descriptor,
String query,
List<QueryField> searchFields)
Creates a new instance for the given factory entity and query.
|
Modifier and Type | Method and Description |
---|---|
abstract C |
FilterFactory.queryString(EntityDescriptor descriptor,
String query,
List<QueryField> fields)
Compiles the given query for the given entity while searching in the given fields.
|
C |
FilterFactory.queryString(EntityDescriptor descriptor,
String query,
QueryField... fields)
Compiles the given query for the given entity while searching in the given fields.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Mango.createEntity(MongoEntity entity,
EntityDescriptor ed) |
protected void |
Mango.deleteEntity(MongoEntity entity,
boolean force,
EntityDescriptor ed) |
protected <E extends MongoEntity> |
Mango.findEntity(Object id,
EntityDescriptor ed,
Function<String,sirius.kernel.commons.Value> context) |
static <E extends MongoEntity> |
Mango.make(EntityDescriptor ed,
Doc doc)
Creates a new entity for the given descriptor based on the given doc.
|
protected void |
Mango.updateEntity(MongoEntity entity,
boolean force,
EntityDescriptor ed) |
Constructor and Description |
---|
MongoQuery(EntityDescriptor descriptor)
Creates a new query for the given descriptor.
|
Modifier and Type | Method and Description |
---|---|
MongoConstraint |
MongoFilterFactory.queryString(EntityDescriptor descriptor,
String query,
List<QueryField> fields) |
Constructor and Description |
---|
MongoQueryCompiler(MongoFilterFactory factory,
EntityDescriptor descriptor,
String query,
List<QueryField> searchFields)
Creates a new instance for the given factory entity and query.
|
Copyright © 2018. All rights reserved.