|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.orindasoft.pub.LongObjectLoader
This utility class is used to get LOB objects into and out of the database.
Under normal circumstances OrindaBuild users will have no reason to use this class directly - the generated code will use it.
(c) Copyright 2003 - 2011 Orinda Software Ltd
| Constructor Summary | |
LongObjectLoader()
This utility class is used to get LOB objects into and out of the database. |
|
| Method Summary | |
static oracle.sql.BFILE |
loadBFILE(oracle.sql.BFILE newBFILE,
java.io.File theFile,
int bufferSize)
Attempts to upload a File to a BFILE This always fails as BFILES are read only. |
static oracle.sql.BLOB |
loadBLOB(oracle.sql.BLOB newBLOB,
byte[] theArray)
Unloads a byte array to a BLOB |
static oracle.sql.BLOB |
loadBLOB(oracle.sql.BLOB newBLOB,
java.io.File theFile,
int bufferSize)
Loads a File into a BLOB |
static oracle.sql.CLOB |
loadCLOB(oracle.sql.CLOB newCLOB,
byte[] theArray)
Loads a byte array into a CLOB |
static oracle.sql.CLOB |
loadCLOB(oracle.sql.CLOB newCLOB,
char[] theArray)
Loads a char array into a CLOB |
static oracle.sql.CLOB |
loadCLOB(oracle.sql.CLOB newCLOB,
java.io.File theFile,
int bufferSize)
Loads a File into a CLOB |
void |
setBufferSize(int bufferSize)
Set buffer size for IO operations |
void |
setKeepFiles(boolean keepFiles)
Sets flag used to determine whether we call the 'deleteOnExit' method for files we download. |
java.io.File |
unloadBfile(java.io.File newFile,
oracle.sql.BFILE tempBFILE)
Unloads a BFILE column into a file |
byte[] |
unloadBfileIntoByteArray(oracle.sql.BFILE tempBFILE)
Unloads a BFILE column into a byte array |
java.io.File |
unloadBinaryStream(java.io.File newFile,
java.io.InputStream theInputStream,
java.lang.String columnDataType)
Unloads a Binary Stream into a file |
java.io.File |
unloadBinaryStream(java.io.File newFile,
java.lang.String theInputString,
java.lang.String columnDataType)
Unloads a LONG column into a file |
byte[] |
unloadBinaryStreamIntoByteArray(java.io.InputStream theInputStream,
java.lang.String columnDataType)
Unloads a Binary Stream into a byte array. |
java.io.File |
unloadBlob(java.io.File newFile,
oracle.sql.BLOB tempBLOB)
Unloads a BLOB column into a file |
byte[] |
unloadBlobIntoByteArray(oracle.sql.BLOB tempBLOB)
Unloads a BLOB column into a byte array |
java.io.File |
unloadClob(java.io.File newFile,
oracle.sql.CLOB tempCLOB)
Unloads a CLOB column into a file |
byte[] |
unloadClobIntoByteArray(oracle.sql.CLOB tempCLOB)
Unloads a CLOB column into a byte array |
char[] |
unloadClobIntoCharArray(oracle.sql.CLOB tempCLOB)
Unloads a CLOB column into a char array |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public LongObjectLoader()
| Method Detail |
public void setKeepFiles(boolean keepFiles)
public void setBufferSize(int bufferSize)
public java.io.File unloadBinaryStream(java.io.File newFile,
java.io.InputStream theInputStream,
java.lang.String columnDataType)
throws CSException
File - newFile File to unload stream intoInputStream - theInputStream Input stream from databaseString - columnDataType Column database type
public byte[] unloadBinaryStreamIntoByteArray(java.io.InputStream theInputStream,
java.lang.String columnDataType)
throws CSException
InputStream - theInputStream Input stream from databaseString - columnDataType Column database type
public java.io.File unloadBinaryStream(java.io.File newFile,
java.lang.String theInputString,
java.lang.String columnDataType)
throws CSException
File - newFile File to unload stream intoString - theInputString long column from databaseString - columnDataType Column database type
public static oracle.sql.CLOB loadCLOB(oracle.sql.CLOB newCLOB,
java.io.File theFile,
int bufferSize)
throws CSException
File - theFile File to read fromint - bufferSize IO Buffer size in bytes
public static oracle.sql.BLOB loadBLOB(oracle.sql.BLOB newBLOB,
java.io.File theFile,
int bufferSize)
throws CSException
oracle.sql.BLOB - newBLOB BLOB to be updatedbyte[] - theArray an array of bytes
public static oracle.sql.CLOB loadCLOB(oracle.sql.CLOB newCLOB,
byte[] theArray)
throws CSException
oracle.sql.CLOB - newCLOB CLOB to be updatedbyte[] - theArray an array of bytes
public static oracle.sql.BLOB loadBLOB(oracle.sql.BLOB newBLOB,
byte[] theArray)
throws CSException
oracle.sql.BLOB - newBLOB BLOB to be updatedbyte[] - theArray Array of bytes
public static oracle.sql.BFILE loadBFILE(oracle.sql.BFILE newBFILE,
java.io.File theFile,
int bufferSize)
throws CSException
oracle.sql.BFILEB - newBFILE BFILE to be updatedFile - theFile File to read fromint - bufferSize IO Buffer size in bytes
public java.io.File unloadBfile(java.io.File newFile,
oracle.sql.BFILE tempBFILE)
throws CSException
File - newFile File to unload stream intooracle.sql.BFILE - tempBFILE BFILE to unload.
public java.io.File unloadBlob(java.io.File newFile,
oracle.sql.BLOB tempBLOB)
throws CSException
File - newFile File to unload stream intooracle.sql.BLOB - tempBLOB BLOB to unload.
public java.io.File unloadClob(java.io.File newFile,
oracle.sql.CLOB tempCLOB)
throws CSException
oracle.sql.CLOB - tempCLOB CLOB to unload.File - newFile File to unload stream into
public byte[] unloadBfileIntoByteArray(oracle.sql.BFILE tempBFILE)
throws CSException
oracle.sql.BFILE - tempBFILE BFILE to unload.
public byte[] unloadBlobIntoByteArray(oracle.sql.BLOB tempBLOB)
throws CSException
oracle.sql.BLOB - tempBLOB BLOB to unload.
public byte[] unloadClobIntoByteArray(oracle.sql.CLOB tempCLOB)
throws CSException
oracle.sql.CLOB - tempCLOB CLOB to unload.
public char[] unloadClobIntoCharArray(oracle.sql.CLOB tempCLOB)
throws CSException
oracle.sql.CLOB - tempCLOB CLOB to unload.
public static oracle.sql.CLOB loadCLOB(oracle.sql.CLOB newCLOB,
char[] theArray)
throws CSException
oracle.sql.CLOB - newCLOB CLOB to be updatedchar[] - theArray an array of chars
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||