|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ImportLoader
| Field Summary | |
|---|---|
static java.lang.String |
LOOUKP_TR_COLUMNS
|
static int |
LOOUKP_TR_COUNT
|
static int |
MODE_APPEND
|
static int |
MODE_APPENDUPDATE
|
static int |
MODE_UPDATE
|
static int |
WRITE_LOOKUPS
|
| Method Summary | |
|---|---|
void |
close()
Close ImportLoader Must be always called before ImportLoader is destroyed |
int |
columnCount()
Get columns count |
java.lang.String[] |
columnNames()
Get array of column names |
java.lang.Object |
get(int iColumnIndex)
Get current value for a column given its index |
java.lang.Object |
get(java.lang.String sColumnName)
Get current value for a column given its name |
int |
getColumnIndex(java.lang.String sColumnName)
Get column index from its name |
void |
prepare(java.sql.Connection oConn,
ColumnList oCols)
Prepare ImportLoader for repeated execution |
void |
put(int iColumnIndex,
java.lang.Object oValue)
Put current value for a column |
void |
put(java.lang.String sColumnName,
java.lang.Object oValue)
Put current value for a column |
void |
setAllColumnsToNull()
Set all current values to null |
void |
store(java.sql.Connection oConn,
java.lang.String sWorkArea,
int iFlags)
Store a single row or a set of related rows |
| Field Detail |
|---|
static final int MODE_APPEND
static final int MODE_UPDATE
static final int MODE_APPENDUPDATE
static final int WRITE_LOOKUPS
static final java.lang.String LOOUKP_TR_COLUMNS
static final int LOOUKP_TR_COUNT
| Method Detail |
|---|
int columnCount()
java.lang.String[] columnNames()
throws java.lang.IllegalStateException
java.lang.IllegalStateException
java.lang.Object get(int iColumnIndex)
throws java.lang.ArrayIndexOutOfBoundsException
iColumnIndex - int [0..columnCount()-1]
java.lang.ArrayIndexOutOfBoundsException
java.lang.Object get(java.lang.String sColumnName)
throws java.lang.ArrayIndexOutOfBoundsException
sColumnName - Case insensitive String
java.lang.ArrayIndexOutOfBoundsException - if no column with such name was foundint getColumnIndex(java.lang.String sColumnName)
sColumnName - String
void put(int iColumnIndex,
java.lang.Object oValue)
throws java.lang.ArrayIndexOutOfBoundsException
iColumnIndex - int [0..columnCount()-1]oValue - Object
java.lang.ArrayIndexOutOfBoundsException
void put(java.lang.String sColumnName,
java.lang.Object oValue)
throws java.lang.ArrayIndexOutOfBoundsException
sColumnName - String Column nameoValue - Object
java.lang.ArrayIndexOutOfBoundsExceptionvoid setAllColumnsToNull()
void prepare(java.sql.Connection oConn,
ColumnList oCols)
throws java.sql.SQLException
oConn - ConnectionoCols - ColumnList List of columns that will be inserted or updated at the database
java.sql.SQLException
void close()
throws java.sql.SQLException
Close ImportLoader
Must be always called before ImportLoader is destroyed
java.sql.SQLException
void store(java.sql.Connection oConn,
java.lang.String sWorkArea,
int iFlags)
throws java.sql.SQLException,
java.lang.IllegalArgumentException,
java.lang.NullPointerException
oConn - ConnectionsWorkArea - StringiFlags - int
java.sql.SQLException
java.lang.IllegalArgumentException
java.lang.NullPointerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||