public class RecordFileToDB
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
INTEGER
This integer represent of data type for integer.
|
static int |
STRING
This integer represent of data type for string.
|
Constructor and Description |
---|
RecordFileToDB(RunDB runDB,
java.lang.String[] tableNames,
java.lang.String fileField,
java.lang.String[] unqFields,
java.lang.String[] unqFieldData,
int[] unqFieldTypes)
The basic variables of the constructor include database, table and file information.
|
RecordFileToDB(RunDB runDB,
java.lang.String[] tableNames,
java.lang.String fileField,
java.lang.String keyField,
java.lang.String keyData)
The basic variables of the constructor include database, table and file information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
clearBCData()
For deleting blob and clob data from DB.
|
void |
closeAll()
For calling RunDB class closeAll() method.
|
java.io.InputStream |
getBlobData()
For retrieving blob data from DB.
|
java.io.Reader |
getClobData()
For retrieving clob data from DB.
|
java.lang.String |
getErrorString()
For getting errorString
|
java.lang.String |
getMessageScript()
For getting messageScript
|
java.lang.String |
getResultMessage()
For getting resultMessage
|
boolean |
isDebug()
For getting ifDebug
|
boolean |
recordBlobData(java.io.InputStream inpStream)
For recording blob data to DB
|
boolean |
recordClobData(java.io.Reader reader)
For recording clob data to DB
|
void |
setIsDebug(boolean isDebug)
For setting ifDebug
|
boolean |
setKeyData()
If the record is inserted DB, we don't have id yet.
|
public static final int STRING
public static final int INTEGER
public RecordFileToDB(RunDB runDB, java.lang.String[] tableNames, java.lang.String fileField, java.lang.String keyField, java.lang.String keyData)
runDB
- For connecting the database and executing processes.tableNames
- The table name to be accessed.fileField
- The name of file field of the table to access.keyField
- The key field name of the table to access.keyData
- Key field data.public RecordFileToDB(RunDB runDB, java.lang.String[] tableNames, java.lang.String fileField, java.lang.String[] unqFields, java.lang.String[] unqFieldData, int[] unqFieldTypes)
runDB
- For connecting the database and executing processes.tableNames
- The table name to be accessed.fileField
- The name of file field of the table to access.unqFields
- Unique fields string array.unqFieldData
- Unique data string array.unqFieldTypes
- Unique field types string array.public boolean setKeyData()
public java.io.InputStream getBlobData() throws java.sql.SQLException
java.sql.SQLException
public java.io.Reader getClobData()
public boolean recordBlobData(java.io.InputStream inpStream)
inpStream
- from blob datapublic boolean recordClobData(java.io.Reader reader) throws java.sql.SQLException
reader
- from clob datajava.sql.SQLException
public boolean clearBCData()
public void closeAll()
public java.lang.String getErrorString()
public java.lang.String getMessageScript()
public java.lang.String getResultMessage()
public boolean isDebug()
public void setIsDebug(boolean isDebug)
ifDebug
-