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