public class BindUploader extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
static int |
arrayBindValueCount(Map<String,ParameterBindingDTO> bindValues)
Compute the number of array bind values in the given bind map
|
void |
close()
Close uploader, deleting the local temporary directory
This class can be used in a try-with-resources statement, which ensures that
the temporary directory is cleaned up even when exceptions occur
|
Path |
getBindDir() |
String |
getStagePath() |
static boolean |
isArrayBind(Map<String,ParameterBindingDTO> bindValues) |
static BindUploader |
newInstance(SFSession session,
String stageDir)
Create a new BindUploader which will upload to the given stage name
Ensures temporary directory for file writing exists
|
void |
setFileSize(int fileSize) |
void |
upload(Map<String,ParameterBindingDTO> bindValues)
Upload the bindValues to stage
|
public static BindUploader newInstance(SFSession session, String stageDir) throws BindException
stageDir - BindExceptionpublic void upload(Map<String,ParameterBindingDTO> bindValues) throws BindException
bindValues - BindExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void setFileSize(int fileSize)
public String getStagePath()
public Path getBindDir()
public static int arrayBindValueCount(Map<String,ParameterBindingDTO> bindValues)
bindValues - the bind mappublic static boolean isArrayBind(Map<String,ParameterBindingDTO> bindValues)
Copyright © 2018. All rights reserved.