public class BinaryValue extends ComplexValue
modelInstance| Constructor and Description |
|---|
BinaryValue(ModelInstance modelInstance,
java.lang.String level,
byte[] value)
Creates new instance of
BinaryValue. |
BinaryValue(ModelInstance modelInstance,
java.lang.String level,
byte[] value,
java.lang.String datasourceJndi,
java.lang.String recordType,
java.lang.String objectIdentification,
java.lang.String propertyName,
java.sql.Blob blob,
BlobLoader blobLoader)
Creates new instance.
|
BinaryValue(ModelInstance modelInstance,
java.lang.String level,
java.lang.String datasourceJndi,
java.lang.String recordType,
java.lang.String objectIdentification,
java.lang.String propertyName,
java.sql.Blob blob,
BlobLoader blobLoader)
Creates new instance.
|
BinaryValue(SBinarySimpleValue source,
ModelInstance modelInstance)
Creates a new instance from the serialized companion.
|
BinaryValue(SBinaryValue source,
ModelInstance modelInstance)
Creates a new instance from the serialized companion.
|
| Modifier and Type | Method and Description |
|---|---|
<T,E extends java.lang.Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
protected void |
convertToDirectReferences() |
BinaryValue |
createCopy(ModelInstance targetModelInstance)
Creates a copy without references to other objects.
|
java.sql.Blob |
getBlob()
Returns blob, if fails tries to reload referencing record holder.
|
Type |
getCompiledType(ModelProvider modelProvider)
Returns the compiled type.
|
byte[] |
getData()
Returns binary data.
|
java.lang.String |
getDatasourceJndi()
Returns datasource jndi.
|
java.lang.String |
getEvaluationLevel()
Returns evaluation level,
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
java.lang.String |
getObjectIdentification()
Returns referenced object identification.
|
java.lang.String |
getPropertyName()
Returns property name in which binary is stored.
|
java.lang.String |
getRecordType()
Returns referenced record type.
|
java.util.Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
java.lang.String |
getType()
Returns the type.
|
byte[] |
getValue() |
boolean |
isRemoved()
Returns true if value is removed
|
void |
rebind(ModelInstance modelInstance)
Re-binds to a model instance.
|
void |
refreshDirectReferences()
Re-set references to elements from the same model instance.
|
void |
setBlobLoader(BlobLoader blobLoader)
Sets blob loader.
|
SBinaryValue |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
java.lang.String |
toString() |
Value |
toValue()
If this is a
ValueRef this method returns the referenced value, otherwise it returns
this. |
clear, collect, fillSerializable, findReplacementId, finishCopy, getBaseLevelEntity, getBaseLevelEntityId, getHandle, getId, getLowerLevelEntity, getLowerLevelEntityId, isPersistent, replaceIdAndEvaluationLevel, replaceReferencedIds, setLowerLevelEntity, toSimpleValuepublic BinaryValue(ModelInstance modelInstance, java.lang.String level, byte[] value, java.lang.String datasourceJndi, java.lang.String recordType, java.lang.String objectIdentification, java.lang.String propertyName, java.sql.Blob blob, BlobLoader blobLoader)
modelInstance - level - value - datasourceJndi - recordType - objectIdentification - propertyName - blob - blobLoader - public BinaryValue(ModelInstance modelInstance, java.lang.String level, java.lang.String datasourceJndi, java.lang.String recordType, java.lang.String objectIdentification, java.lang.String propertyName, java.sql.Blob blob, BlobLoader blobLoader)
modelInstance - level - datasourceJndi - recordType - objectIdentification - propertyName - blob - blobLoader - public BinaryValue(ModelInstance modelInstance, java.lang.String level, byte[] value)
BinaryValue.modelInstance - level - value - java.lang.NullPointerException - if modelInstance or value is nullpublic BinaryValue(SBinaryValue source, ModelInstance modelInstance)
source - modelInstance - public BinaryValue(SBinarySimpleValue source, ModelInstance modelInstance)
source - modelInstance - public SBinaryValue toSerializable(SModelInstance smi, MarshallerConfig config)
ComplexValuetoSerializable in interface ValuetoSerializable in class ComplexValuepublic byte[] getValue()
public <T,E extends java.lang.Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends java.lang.Throwable
ValueEE extends java.lang.Throwablepublic ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwaregetModelInstance in class ComplexValuepublic Value toValue()
ValueValueRef this method returns the referenced value, otherwise it returns
this.toValue in interface ValuetoValue in class ComplexValueValuepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getType()
ValuegetType in interface ValuegetType in class ComplexValuepublic Type getCompiledType(ModelProvider modelProvider)
ValuegetCompiledType in interface ValuegetCompiledType in class ComplexValuepublic void rebind(ModelInstance modelInstance)
rebind in interface ModelInstanceAwarerebind in class ComplexValuemodelInstance - public java.lang.String getDatasourceJndi()
public java.lang.String getRecordType()
public java.lang.String getObjectIdentification()
public java.lang.String getPropertyName()
public java.lang.String getEvaluationLevel()
getEvaluationLevel in interface EvaluationLevelAwaregetEvaluationLevel in class ComplexValuepublic java.sql.Blob getBlob()
public void setBlobLoader(BlobLoader blobLoader)
blobLoader - public byte[] getData()
public BinaryValue createCopy(ModelInstance targetModelInstance)
public boolean isRemoved()
ValueisRemoved in interface ValueisRemoved in class ComplexValuepublic java.util.Collection<Collectible> getReferences()
Collectibleprotected void convertToDirectReferences()
convertToDirectReferences in class ComplexValuepublic void refreshDirectReferences()
EvaluationLevelAwarerefreshDirectReferences in interface EvaluationLevelAwarerefreshDirectReferences in class ComplexValueCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.