public interface ExternalTypeFactory
ExternalValues
to RecordHolder
implementations and
optionally it can provide the createRecord capability.Modifier and Type | Method and Description |
---|---|
void |
addToBatchLoading(java.util.Collection<ExternalValue> values)
Register value to be loaded in batch
|
void |
addToBatchLoading(ExternalValue value,
RecordType type)
Deprecated.
|
RecordHolder |
convertJavaObjectToHolder(ModelInstance modelInstance,
RecordType recordType,
java.lang.Object value)
Converts given java object to external holder.
|
RecordHolder |
convertValueToHolder(ExternalValue value,
RecordType recordType)
Converts given external type value to external holder.
|
RecordHolder |
createRecord(ModelInstance modelInstance,
RecordType type,
java.util.Map<java.lang.String,?> values)
Creates a new record of the specified type.
|
java.util.Collection<java.lang.String> |
getSupportedRecordTypes()
Returns a collection of supported record types.
|
RecordHolder convertValueToHolder(ExternalValue value, RecordType recordType)
value
- recordType
- RecordHolder convertJavaObjectToHolder(ModelInstance modelInstance, RecordType recordType, java.lang.Object value)
modelInstance
- recordType
- value
- RecordHolder createRecord(ModelInstance modelInstance, RecordType type, java.util.Map<java.lang.String,?> values)
modelInstance
- the model instancetype
- the record typevalues
- initial record field values @return new RecordHolderjava.util.Collection<java.lang.String> getSupportedRecordTypes()
@Deprecated void addToBatchLoading(ExternalValue value, RecordType type)
addToBatchLoading(Collection)
value
- type
- void addToBatchLoading(java.util.Collection<ExternalValue> values)
values
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.