| Package | Description |
|---|---|
| sila_java.library.server_base.binary_transfer.database | |
| sila_java.library.server_base.binary_transfer.database.impl |
| Modifier and Type | Method and Description |
|---|---|
Duration |
BinaryDatabase.addBinary(@NonNull UUID binaryTransferUuid,
byte[] bytes,
@NonNull String parameterIdentifier)
Add a binary into the database
|
Duration |
BinaryDatabase.addBinary(UUID binaryTransferUuid,
InputStream stream,
@NonNull String parameterIdentifier)
Add a binary into the database
|
Duration |
BinaryDatabase.extendBinaryExpiration(UUID binaryTransferUuid)
Extend the expiration date of a binary
|
Binary |
BinaryDatabase.getBinary(UUID binaryTransferUuid)
Get a binary by its identifier
|
BinaryInfo |
BinaryDatabase.getBinaryInfo(UUID binaryTransferUuid)
Get the information of a binary by its identifier
|
boolean |
BinaryDatabase.hasBinary(UUID binaryTransferUuid)
Check if the specified binary transfer UUID exists
|
void |
BinaryDatabase.removeAllBinaries()
Remove all binaries from the database
|
void |
BinaryDatabase.removeBinary(UUID binaryTransferUuid)
Remove a binary from the database
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
H2BinaryDatabase.addBinary(@NonNull UUID binaryTransferUuid,
byte[] bytes,
@NonNull String parameterIdentifier)
Save a binary stream to the database
|
Duration |
H2BinaryDatabase.addBinary(@NonNull UUID binaryTransferUuid,
@NonNull InputStream stream,
@NonNull String parameterIdentifier)
Save a binary stream to the database
|
Duration |
H2BinaryDatabase.extendBinaryExpiration(@NonNull UUID binaryTransferUuid)
Extend the binary expiration duration by
H2BinaryDatabase.BINARY_EXTEND_DURATION |
Binary |
H2BinaryDatabase.getBinary(@NonNull UUID binaryTransferUuid)
Retrieve a binary from the database
|
BinaryInfo |
H2BinaryDatabase.getBinaryInfo(@NonNull UUID binaryTransferUuid)
Retrieve a binary
binary info |
boolean |
H2BinaryDatabase.hasBinary(UUID binaryTransferUuid)
Check if the specified binary transfer UUID exists
|
void |
H2BinaryDatabase.removeAllBinaries()
Remove the BINARIES table and hence all binaries from the database
|
void |
H2BinaryDatabase.removeBinary(@NonNull UUID binaryTransferUuid)
Remove the specified binary from the database
|
Copyright © 2022 SiLA Java Developers. All rights reserved.