public interface SharedRecordTypeFactory extends ExternalTypeFactory
Modifier and Type | Method and Description |
---|---|
Decimal |
count(ExecutionContext context,
ClosureHolder closureWithQuery,
String iterator,
Expression whereExpression)
Dynamically creates query and executes it.
|
Decimal |
count(ExecutionContext context,
Object querySpecification,
Collection<?> parameters)
Executes the given HQL query specification and returns the number of all objects in the result (executes count query).
|
Decimal |
count(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType,
String iterator,
Expression whereExpression)
Dynamically creates query and executes it.
|
RecordHolder |
createRecord(ModelInstance modelInstance,
RecordType type,
Map<String,?> values,
boolean flush)
Creates a new record of the specified type.
|
Object |
getEntity(ExternalRecordHolder recordHolder)
Returns entity for the holder.
|
Object |
getEntity(ModelInstance modelInstance,
RecordType type,
Serializable id)
Returns a Hibernate entity for the given model, type and id.
|
Object |
getEntity(ModelInstance modelInstance,
RecordType type,
Serializable id,
Long auditRevisionId)
Returns a Hibernate entity for the given model, type and id.
|
ExternalRecordHolder |
getRecord(ModelInstance modelInstance,
Object entity)
Returns a shared record for the given Hibernate entity.
|
ExternalRecordHolder |
getRecord(ModelInstance modelInstance,
RecordType type,
Serializable id)
Returns a shared record for the given type and id.
|
ExternalRecordHolder |
getRecord(ModelInstance modelInstance,
RecordType type,
Serializable id,
Long auditRevisionId)
Returns a shared record for the given type and id.
|
ExternalRecordHolder |
getRecord(ModelInstance modelInstance,
String type,
Serializable id)
Returns a shared record for the given type and id.
|
ExternalRecordHolder |
getRecord(ModelInstance modelInstance,
String type,
Serializable id,
Long auditRevisionId)
Returns a shared record for the given type and id.
|
Decimal |
hqlQueryCount(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.HQLQuerySpecification querySpecification,
Collection<?> parameters)
Executes the given HQL count query.
|
ListHolder |
hqlQueryList(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.HQLQuerySpecification querySpecification,
Collection<?> parameters)
Executes the given HQL query specification and returns the result.
|
Object |
hqlQuerySingle(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.HQLQuerySpecification querySpecification,
Collection<?> parameters)
Executes the given HQL query specification and returns the first result.
|
ListHolder |
queryAuditList(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType,
String iterator,
Expression whereExpression,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count,
Long revision,
List<AuditCriteria> auditCriteria)
Dynamically creates query and executes it.
|
ListHolder |
queryList(ExecutionContext context,
ClosureHolder closureWithQuery,
String iterator,
Expression whereExpression,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count)
Dynamically creates query and executes it.
|
ListHolder |
queryList(ExecutionContext context,
Object querySpecification,
Collection<?> parameters)
Executes the given HQL query specification and returns the result.
|
ListHolder |
queryList(ExecutionContext context,
com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType,
String iterator,
Expression whereExpression,
List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings,
Integer index,
Integer count)
Dynamically creates query and executes it.
|
Object |
querySingle(ExecutionContext context,
Object querySpecification,
Collection<?> parameters)
Executes the given HQL query specification and returns the first result.
|
addToBatchLoading, addToBatchLoading, convertJavaObjectToHolder, convertValueToHolder, createRecord, getSupportedRecordTypes
ListHolder queryList(ExecutionContext context, Object querySpecification, Collection<?> parameters) throws ErrorException
context
- querySpecification
- parameters
- ErrorException
ListHolder queryList(ExecutionContext context, com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType, String iterator, Expression whereExpression, List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings, Integer index, Integer count) throws ErrorException, ValidationException
context
- recordType
- iterator
- whereExpression
- orderings
- index
- count
- ErrorException
ValidationException
ListHolder queryList(ExecutionContext context, ClosureHolder closureWithQuery, String iterator, Expression whereExpression, List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings, Integer index, Integer count) throws ErrorException, ValidationException
context
- closureWithQuery
- iterator
- whereExpression
- orderings
- index
- count
- ErrorException
ValidationException
ListHolder queryAuditList(ExecutionContext context, com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType, String iterator, Expression whereExpression, List<com.whitestein.lsps.model.sharedrecord.QueryOrderingItem> orderings, Integer index, Integer count, Long revision, List<AuditCriteria> auditCriteria) throws ErrorException, ValidationException
context
- recordType
- iterator
- whereExpression
- orderings
- index
- count
- revision
- auditCriteria
- ErrorException
ValidationException
Decimal count(ExecutionContext context, Object querySpecification, Collection<?> parameters) throws ErrorException
context
- querySpecification
- parameters
- ErrorException
Decimal count(ExecutionContext context, com.whitestein.lsps.model.sharedrecord.SharedRecordType recordType, String iterator, Expression whereExpression) throws ErrorException, ValidationException
context
- recordType
- iterator
- whereExpression
- ErrorException
ValidationException
Decimal count(ExecutionContext context, ClosureHolder closureWithQuery, String iterator, Expression whereExpression) throws ErrorException, ValidationException
context
- closureWithQuery
- iterator
- whereExpression
- ErrorException
ValidationException
Object querySingle(ExecutionContext context, Object querySpecification, Collection<?> parameters) throws ErrorException
context
- querySpecification
- parameters
- ErrorException
ExternalRecordHolder getRecord(ModelInstance modelInstance, Object entity)
modelInstance
- entity
- ExternalRecordHolder getRecord(ModelInstance modelInstance, RecordType type, Serializable id)
modelInstance
- type
- id
- ExternalRecordHolder getRecord(ModelInstance modelInstance, RecordType type, Serializable id, Long auditRevisionId)
modelInstance
- type
- id
- auditRevisionId
- ExternalRecordHolder getRecord(ModelInstance modelInstance, String type, Serializable id)
modelInstance
- type
- id
- ExternalRecordHolder getRecord(ModelInstance modelInstance, String type, Serializable id, Long auditRevisionId)
modelInstance
- type
- id
- auditRevisionId
- Object getEntity(ModelInstance modelInstance, RecordType type, Serializable id)
modelInstance
- type
- id
- Object getEntity(ModelInstance modelInstance, RecordType type, Serializable id, Long auditRevisionId)
modelInstance
- type
- id
- auditRevisionId
- Object getEntity(ExternalRecordHolder recordHolder)
recordHolder
- RecordHolder createRecord(ModelInstance modelInstance, RecordType type, Map<String,?> values, boolean flush)
modelInstance
- the model instancetype
- the record typevalues
- initial record field values @return new RecordHolderflush
- a flag indicating whether Hibernate session should be immediatelly flushedListHolder hqlQueryList(ExecutionContext context, com.whitestein.lsps.model.sharedrecord.HQLQuerySpecification querySpecification, Collection<?> parameters) throws ErrorException
context
- querySpecification
- parameters
- ErrorException
Object hqlQuerySingle(ExecutionContext context, com.whitestein.lsps.model.sharedrecord.HQLQuerySpecification querySpecification, Collection<?> parameters) throws ErrorException
context
- querySpecification
- parameters
- ErrorException
Decimal hqlQueryCount(ExecutionContext context, com.whitestein.lsps.model.sharedrecord.HQLQuerySpecification querySpecification, Collection<?> parameters) throws ErrorException
context
- querySpecification
- parameters
- ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.