public interface HolderFactory
Modifier and Type | Method and Description |
---|---|
BinaryHolder |
createBinaryHolder(byte[] data)
Creates binary data holder.
|
BinaryHolder |
createBinaryHolder(String datasourceJndi,
String recordType,
String primaryKeyString,
String propertyName,
Blob data)
Creates binary data holder.
|
ClosureHolder |
createClosure(ClosureType closureType,
ClosureExpression closureExpression,
ClosureOrigin origin)
Creates new closure corresponding to given closure expression.
|
ClosureHolder |
createClosure(ClosureType closureType,
FunctionExpression operationExpression,
ClosureOrigin origin)
Creates new closure corresponding to given operation expression.
|
ClosureHolder |
createClosure(ClosureType closureType,
MethodExpression operationExpression,
ClosureOrigin origin)
Creates new closure corresponding to given operation expression.
|
ClosureHolder |
createClosureFromExpression(ClosureType closureType,
Expression expression,
ClosureOrigin origin)
Creates new closure from a given expression.
|
RecordHolder |
createExternalRecordProxy(RecordType type,
RecordHolder proxySet)
Creates a proxy without proxied record.
|
ListHolder |
createList(Collection<?> values)
Creates new list with given values (
ListHolder s are immutable). |
MapHolder |
createMap(List<?> keys,
List<?> values)
Creates new map with given values (
MapHolder s are immutable). |
default MapHolder |
createMap(Map<?,?> map)
Creates new map with given values (
MapHolder s are immutable). |
RecordHolder |
createNonSharedRecord(RecordType type,
Map<String,?> values)
Creates new record of given type.
|
ListHolder |
createRange(long first,
long last)
Creates a range (list) defined by endpoints (both inclusive).
|
default RecordHolder |
createRecord(RecordType type)
Creates new record with given type.
|
RecordHolder |
createRecord(RecordType type,
Map<String,?> values)
Creates new record with given type.
|
default RecordHolder |
createRecord(String type)
Creates new record with given type.
|
RecordHolder |
createRecord(String type,
Map<String,?> values)
Creates new record with given type.
|
ReferenceHolder |
createReference(ReferenceType referenceType,
ReferenceExpression referenceExpression,
List<Property> properties,
ClosureOrigin origin)
Returns new reference corresponding to given reference expression.
|
SetHolder |
createSet(Collection<?> values)
Creates new set with given values (
SetHolder s are immutable). |
default RecordHolder createRecord(RecordType type)
type
- NullPointerException
- if type
is nullRecordHolder createExternalRecordProxy(RecordType type, RecordHolder proxySet)
type
- proxySet
- RecordHolder createRecord(RecordType type, Map<String,?> values)
type
- values
- initial record field valuesNullPointerException
- if type
or values
is nullIllegalArgumentException
- if values
are not assignable to the record field
typesRecordHolder createNonSharedRecord(RecordType type, Map<String,?> values)
type
- values
- initial record field valuesNullPointerException
- if type
or values
is nullIllegalArgumentException
- if values
are not assignable to the record field
typesdefault RecordHolder createRecord(String type)
type
- NullPointerException
- if type
is nullIllegalArgumentException
- if no such type existsRecordType
RecordHolder createRecord(String type, Map<String,?> values)
type
- values
- initial record field valuesNullPointerException
- if type
is nullIllegalArgumentException
- if no such type exists or if values
are not
assignable to the record field typesRecordType
ListHolder createList(Collection<?> values)
ListHolder
s are immutable).
The type is inferred from the types of the values.values
- NullPointerException
- if values
is nullIllegalArgumentException
- if values
are not of a valid typeListHolder createRange(long first, long last)
If first <= last
, the range contains elements first, first + 1, ..., last
.
If first > last
, the range contains elements first, first - 1, ..., last
.
The memory footprint of range in constant (only endpoints and size is stored, not all elements).
first
- last
- NullPointerException
- if values
is nullIllegalArgumentException
- if values
are not of a valid typeSetHolder createSet(Collection<?> values)
SetHolder
s are immutable). The
type is inferred from the types of the values.values
- NullPointerException
- if values
is nullIllegalArgumentException
- if values
are not of a valid typeMapHolder createMap(List<?> keys, List<?> values)
MapHolder
s are immutable). The
type is inferred from the types of the values.keys
- a list of keysvalues
- a list of valuesNullPointerException
- if keys
or values
is nulldefault MapHolder createMap(Map<?,?> map)
MapHolder
s are immutable). The
type is inferred from the types of the values.map
- NullPointerException
- if map
is nullClosureHolder createClosure(ClosureType closureType, ClosureExpression closureExpression, ClosureOrigin origin)
closureType
- closureExpression
- origin
- NullPointerException
- if closureType
or closureExpression
is nullClosureHolder createClosureFromExpression(ClosureType closureType, Expression expression, ClosureOrigin origin)
closureType
- expression
- origin
- NullPointerException
- if closureType
or expression
is nullClosureHolder createClosure(ClosureType closureType, FunctionExpression operationExpression, ClosureOrigin origin)
closureType
- operationExpression
- origin
- NullPointerException
- if closureType
or operationExpression
is nullClosureHolder createClosure(ClosureType closureType, MethodExpression operationExpression, ClosureOrigin origin)
closureType
- operationExpression
- origin
- NullPointerException
- if closureType
or operationExpression
is nullReferenceHolder createReference(ReferenceType referenceType, ReferenceExpression referenceExpression, List<Property> properties, ClosureOrigin origin)
referenceType
- referenceExpression
- properties
- origin
- NullPointerException
- if referenceType
or referenceExpression
is
nullBinaryHolder createBinaryHolder(byte[] data)
data
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.