public class MockBinaryHolder extends MockValueHolder<BinaryType> implements BinaryHolder
Constructor and Description |
---|
MockBinaryHolder(Blob blob)
Creates new instance.
|
MockBinaryHolder(byte[] data)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
Blob |
getBlob()
Returns blob.
|
byte[] |
getData()
Returns array of bytes.
|
String |
getDatasourceJndi()
Returns jndi of datasource.
|
InputStream |
getStream()
Returns stream.
|
getId, getNotCompiledValueHolder, getType, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getNotCompiledValueHolder, getType
public MockBinaryHolder(byte[] data)
data
- public MockBinaryHolder(Blob blob)
blob
- public byte[] getData()
BinaryHolder
getData
in interface BinaryHolder
public InputStream getStream()
BinaryHolder
getStream
in interface BinaryHolder
public Blob getBlob()
BinaryHolder
getBlob
in interface BinaryHolder
public String getDatasourceJndi()
BinaryHolder
getDatasourceJndi
in interface BinaryHolder
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.