|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowgate.addrbook.FellowLoader
public class FellowLoader
Load fellow data from a single source
| Field Summary | |
|---|---|
static int |
bo_active
|
static int |
bo_change_pwd
|
static int |
bo_searchable
|
static int |
de_title
|
static int |
dt_birth
|
static int |
dt_cancel
|
static int |
dt_created
|
static int |
dt_last_update
|
static int |
dt_last_visit
|
static int |
dt_modified
|
static int |
dt_pwd_expires
|
static int |
ext_phone
|
static int |
gu_acl_group
|
static int |
gu_category
|
static int |
gu_fellow
|
static int |
gu_user
|
static int |
gu_workarea
|
static int |
home_phone
|
static int |
icq_id
|
static int |
id_account
|
static int |
id_boss
|
static int |
id_domain
|
static int |
id_gender
|
static int |
id_ref
|
static int |
id_title
|
static int |
im_salary_max
|
static int |
im_salary_min
|
static int |
len_quota
|
static int |
marital_status
|
static int |
max_quota
|
static int |
MODE_APPEND
|
static int |
MODE_APPENDUPDATE
|
static int |
MODE_UPDATE
|
static int |
mov_phone
|
static int |
nm_acl_group
|
static int |
nm_company
|
static int |
nm_user
|
static int |
nm_workarea
|
static int |
ny_age
|
static int |
sn_passport
|
static int |
tp_account
|
static int |
tp_passport
|
static int |
tp_title
|
static int |
tx_alt_email
|
static int |
tx_challenge
|
static int |
tx_comments
|
static int |
tx_company
|
static int |
tx_dept
|
static int |
tx_division
|
static int |
tx_education
|
static int |
tx_email
|
static int |
tx_location
|
static int |
tx_main_email
|
static int |
tx_name
|
static int |
tx_nickname
|
static int |
tx_pwd
|
static int |
tx_pwd_sign
|
static int |
tx_reply
|
static int |
tx_surname
|
static int |
tx_surname1
|
static int |
tx_surname2
|
static int |
tx_timezone
|
static int |
work_phone
|
static int |
WRITE_LOOKUPS
|
| Fields inherited from interface com.knowgate.hipergate.datamodel.ImportLoader |
|---|
LOOUKP_TR_COLUMNS, LOOUKP_TR_COUNT |
| Constructor Summary | |
|---|---|
FellowLoader()
|
|
FellowLoader(java.sql.Connection oConn)
Create FellowLoader and call prepare() on Connection |
|
| 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 column by index |
java.lang.Object |
get(java.lang.String sColumnName)
Get column by name |
int |
getColumnIndex(java.lang.String sColumnName)
Get column index at ColumnNames array given its name This method performs binary search assuming that ColumnNames is sorted in ascending order |
void |
prepare(java.sql.Connection oConn,
ColumnList oColList)
Prepare statements for execution This method needs to be called only once if the default constructor was used. |
void |
put(int iColumnIndex,
java.lang.Object oValue)
Put value for a given column |
void |
put(java.lang.String sColumnName,
java.lang.Object oValue)
Put value for a given column If a previous value already exists then it is replaced |
void |
putAll(java.util.Map oValues)
Put all values from a map on their corresponding columns matching by name |
void |
setAllColumnsToNull()
Set all column 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MODE_APPEND
public static final int MODE_UPDATE
public static final int MODE_APPENDUPDATE
public static final int WRITE_LOOKUPS
public static int bo_active
public static int bo_change_pwd
public static int bo_searchable
public static int de_title
public static int dt_birth
public static int dt_cancel
public static int dt_created
public static int dt_last_update
public static int dt_last_visit
public static int dt_modified
public static int dt_pwd_expires
public static int ext_phone
public static int gu_acl_group
public static int gu_category
public static int gu_fellow
public static int gu_user
public static int gu_workarea
public static int home_phone
public static int icq_id
public static int id_account
public static int id_boss
public static int id_domain
public static int id_gender
public static int id_ref
public static int id_title
public static int im_salary_max
public static int im_salary_min
public static int len_quota
public static int marital_status
public static int max_quota
public static int mov_phone
public static int nm_acl_group
public static int nm_company
public static int nm_user
public static int nm_workarea
public static int ny_age
public static int sn_passport
public static int tp_account
public static int tp_passport
public static int tp_title
public static int tx_alt_email
public static int tx_challenge
public static int tx_comments
public static int tx_company
public static int tx_dept
public static int tx_division
public static int tx_education
public static int tx_email
public static int tx_location
public static int tx_main_email
public static int tx_name
public static int tx_nickname
public static int tx_pwd
public static int tx_pwd_sign
public static int tx_reply
public static int tx_surname
public static int tx_surname1
public static int tx_surname2
public static int tx_timezone
public static int work_phone
| Constructor Detail |
|---|
public FellowLoader()
public FellowLoader(java.sql.Connection oConn)
throws java.sql.SQLException
oConn - Connection
java.sql.SQLException| Method Detail |
|---|
public void setAllColumnsToNull()
setAllColumnsToNull in interface ImportLoaderpublic int getColumnIndex(java.lang.String sColumnName)
Get column index at ColumnNames array given its name
This method performs binary search assuming that ColumnNames is sorted in ascending order
getColumnIndex in interface ImportLoadersColumnName - String Column name (case insensitive)
public int columnCount()
ImportLoader
columnCount in interface ImportLoader
public java.lang.String[] columnNames()
throws java.lang.IllegalStateException
ImportLoader
columnNames in interface ImportLoaderjava.lang.IllegalStateException
public void put(int iColumnIndex,
java.lang.Object oValue)
throws java.lang.ArrayIndexOutOfBoundsException
put in interface ImportLoaderiColumnIndex - Column index [0..getColumnCount()-1]oValue - Value for column
java.lang.ArrayIndexOutOfBoundsException
public void put(java.lang.String sColumnName,
java.lang.Object oValue)
throws java.lang.ArrayIndexOutOfBoundsException
Put value for a given column
If a previous value already exists then it is replaced
put in interface ImportLoadersColumnName - Column name (case sensitive)oValue - Value for column
java.lang.ArrayIndexOutOfBoundsExceptionpublic void putAll(java.util.Map oValues)
oValues - Map
public java.lang.Object get(int iColumnIndex)
throws java.lang.ArrayIndexOutOfBoundsException
get in interface ImportLoaderiColumnIndex - int Colunm index [0..getColumnCount()-1]
java.lang.ArrayIndexOutOfBoundsException
public java.lang.Object get(java.lang.String sColumnName)
throws java.lang.ArrayIndexOutOfBoundsException
get in interface ImportLoadersColumnName - String Column name (case sensitive)
java.lang.ArrayIndexOutOfBoundsException - If no column with sucjh name was found
public void prepare(java.sql.Connection oConn,
ColumnList oColList)
throws java.sql.SQLException
Prepare statements for execution
This method needs to be called only once if the default constructor was used.
prepare in interface ImportLoaderoConn - Connection Open JDBC database connectionoColList - ColumnList This parameter is ignored
java.sql.SQLException
public void close()
throws java.sql.SQLException
ImportLoaderClose ImportLoader
Must be always called before ImportLoader is destroyed
close in interface ImportLoaderjava.sql.SQLException
public void store(java.sql.Connection oConn,
java.lang.String sWorkArea,
int iFlags)
throws java.sql.SQLException,
java.lang.IllegalArgumentException,
java.lang.NullPointerException,
java.lang.ClassCastException,
java.lang.NumberFormatException
ImportLoader
store in interface ImportLoaderoConn - ConnectionsWorkArea - StringiFlags - int
java.sql.SQLException
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.ClassCastException
java.lang.NumberFormatException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||