Java Doc for ContactLoader.java in  » Groupware » hipergate » com » knowgate » crm » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Groupware » hipergate » com.knowgate.crm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.knowgate.crm.ContactLoader

ContactLoader
public class ContactLoader implements ImportLoader(Code)

Load Contact, Company and Address data from a single source

Contact loader creates or updates simultaneously registers at k_companies, k_contacts and k_addresses tables and the links between them k_x_contact_addr.


author:
   Sergio Montoro Ten
version:
   1.0


Field Summary
final public static  intMODE_APPEND
    
final public static  intMODE_APPENDUPDATE
    
final public static  intMODE_UPDATE
    
final public static  intNO_DUPLICATED_MAILS
    
final public static  intNO_DUPLICATED_NAMES
    
final public static  intWRITE_ADDRESSES
    
final public static  intWRITE_COMPANIES
    
final public static  intWRITE_CONTACTS
    
final public static  intWRITE_LOOKUPS
    
public static  intbo_active
    
public static  intbo_change_pwd
    
public static  intbo_private
    
public static  intcontact_person
    
public static  intcoord_x
    
public static  intcoord_y
    
public static  intde_company
    
public static  intde_title
    
public static  intdirect_phone
    
public static  intdt_birth
    
public static  intdt_created
    
public static  intdt_drivelic
    
public static  intdt_founded
    
public static  intdt_modified
    
public static  intdt_pwd_expires
    
public static  intfax_phone
    
public static  intgu_address
    
public static  intgu_company
    
public static  intgu_contact
    
public static  intgu_geozone
    
public static  intgu_sales_man
    
public static  intgu_workarea
    
public static  intgu_writer
    
public static  inthome_phone
    
public static  intid_address_ref
    
public static  intid_company_ref
    
public static  intid_company_status
    
public static  intid_contact_ref
    
public static  intid_contact_status
    
public static  intid_country
    
public static  intid_gender
    
public static  intid_legal
    
public static  intid_sector
    
public static  intid_state
    
public static  intim_revenue
    
public static  intix_address
    
public static  intmn_city
    
public static  intmov_phone
    
public static  intnm_commercial
    
public static  intnm_country
    
public static  intnm_legal
    
public static  intnm_state
    
public static  intnm_street
    
public static  intnu_employees
    
public static  intnu_street
    
public static  intny_age
    
public static  intother_phone
    
public static  intpo_box
    
public static  intsn_drivelic
    
public static  intsn_passport
    
public static  inttp_company
    
public static  inttp_location
    
public static  inttp_passport
    
public static  inttp_street
    
public static  inttx_addr1
    
public static  inttx_addr2
    
public static  inttx_challenge
    
public static  inttx_comments
    
public static  inttx_dept
    
public static  inttx_division
    
public static  inttx_email
    
public static  inttx_email_alt
    
public static  inttx_franchise
    
public static  inttx_name
    
public static  inttx_nickname
    
public static  inttx_pwd
    
public static  inttx_remarks
    
public static  inttx_reply
    
public static  inttx_salutation
    
public static  inttx_surname
    
public static  inturl_addr
    
public static  intwork_phone
    
public static  intzipcode
    

Constructor Summary
public  ContactLoader()
    
public  ContactLoader(Connection oConn)
    

Method Summary
public  voidclose()
    
public  intcolumnCount()
    
public  String[]columnNames()
    
public  Objectget(int iColumnIndex)
    
public  Objectget(String sColumnName)
    
public  intgetColumnIndex(String sColumnName)
    
public  voidprepare(Connection oConn, ColumnList oColList)
    

Prepare statements for execution

This method needs to be called only once if the default constructor was used.
If ContactLoader(Connection) constructor was used, there is no need to call prepare() and a SQLException will be raised if the attempt is made.
It is neccesary to call close() always for prepared instances as a failure to do so will leave open cursors on the database causing it eventually to stop.
public  voidput(int iColumnIndex, Object oValue)
    
public  voidput(String sColumnName, Object oValue)
    
public  voidputAll(Map oValues)
    
public  voidsetAllColumnsToNull()
    
public  voidstore(Connection oConn, String sWorkArea, int iFlags)
    

Field Detail
MODE_APPEND
final public static int MODE_APPEND(Code)



MODE_APPENDUPDATE
final public static int MODE_APPENDUPDATE(Code)



MODE_UPDATE
final public static int MODE_UPDATE(Code)



NO_DUPLICATED_MAILS
final public static int NO_DUPLICATED_MAILS(Code)



NO_DUPLICATED_NAMES
final public static int NO_DUPLICATED_NAMES(Code)



WRITE_ADDRESSES
final public static int WRITE_ADDRESSES(Code)



WRITE_COMPANIES
final public static int WRITE_COMPANIES(Code)



WRITE_CONTACTS
final public static int WRITE_CONTACTS(Code)



WRITE_LOOKUPS
final public static int WRITE_LOOKUPS(Code)



bo_active
public static int bo_active(Code)



bo_change_pwd
public static int bo_change_pwd(Code)



bo_private
public static int bo_private(Code)



contact_person
public static int contact_person(Code)



coord_x
public static int coord_x(Code)



coord_y
public static int coord_y(Code)



de_company
public static int de_company(Code)



de_title
public static int de_title(Code)



direct_phone
public static int direct_phone(Code)



dt_birth
public static int dt_birth(Code)



dt_created
public static int dt_created(Code)



dt_drivelic
public static int dt_drivelic(Code)



dt_founded
public static int dt_founded(Code)



dt_modified
public static int dt_modified(Code)



dt_pwd_expires
public static int dt_pwd_expires(Code)



fax_phone
public static int fax_phone(Code)



gu_address
public static int gu_address(Code)



gu_company
public static int gu_company(Code)



gu_contact
public static int gu_contact(Code)



gu_geozone
public static int gu_geozone(Code)



gu_sales_man
public static int gu_sales_man(Code)



gu_workarea
public static int gu_workarea(Code)



gu_writer
public static int gu_writer(Code)



home_phone
public static int home_phone(Code)



id_address_ref
public static int id_address_ref(Code)



id_company_ref
public static int id_company_ref(Code)



id_company_status
public static int id_company_status(Code)



id_contact_ref
public static int id_contact_ref(Code)



id_contact_status
public static int id_contact_status(Code)



id_country
public static int id_country(Code)



id_gender
public static int id_gender(Code)



id_legal
public static int id_legal(Code)



id_sector
public static int id_sector(Code)



id_state
public static int id_state(Code)



im_revenue
public static int im_revenue(Code)



ix_address
public static int ix_address(Code)



mn_city
public static int mn_city(Code)



mov_phone
public static int mov_phone(Code)



nm_commercial
public static int nm_commercial(Code)



nm_country
public static int nm_country(Code)



nm_legal
public static int nm_legal(Code)



nm_state
public static int nm_state(Code)



nm_street
public static int nm_street(Code)



nu_employees
public static int nu_employees(Code)



nu_street
public static int nu_street(Code)



ny_age
public static int ny_age(Code)



other_phone
public static int other_phone(Code)



po_box
public static int po_box(Code)



sn_drivelic
public static int sn_drivelic(Code)



sn_passport
public static int sn_passport(Code)



tp_company
public static int tp_company(Code)



tp_location
public static int tp_location(Code)



tp_passport
public static int tp_passport(Code)



tp_street
public static int tp_street(Code)



tx_addr1
public static int tx_addr1(Code)



tx_addr2
public static int tx_addr2(Code)



tx_challenge
public static int tx_challenge(Code)



tx_comments
public static int tx_comments(Code)



tx_dept
public static int tx_dept(Code)



tx_division
public static int tx_division(Code)



tx_email
public static int tx_email(Code)



tx_email_alt
public static int tx_email_alt(Code)



tx_franchise
public static int tx_franchise(Code)



tx_name
public static int tx_name(Code)



tx_nickname
public static int tx_nickname(Code)



tx_pwd
public static int tx_pwd(Code)



tx_remarks
public static int tx_remarks(Code)



tx_reply
public static int tx_reply(Code)



tx_salutation
public static int tx_salutation(Code)



tx_surname
public static int tx_surname(Code)



url_addr
public static int url_addr(Code)



work_phone
public static int work_phone(Code)



zipcode
public static int zipcode(Code)




Constructor Detail
ContactLoader
public ContactLoader()(Code)
Default construtor



ContactLoader
public ContactLoader(Connection oConn) throws SQLException(Code)
Create ContactLoader and call prepare() on Connection
Parameters:
  oConn - Connection
throws:
  SQLException -




Method Detail
close
public void close() throws SQLException(Code)

Close prepared statements

This method must always be called before object is destroyed or else
throws:
  SQLException -



columnCount
public int columnCount()(Code)



columnNames
public String[] columnNames() throws IllegalStateException(Code)



get
public Object get(int iColumnIndex) throws ArrayIndexOutOfBoundsException(Code)
Get column by index
Parameters:
  iColumnIndex - int Colunm index [0..getColumnCount()-1] Object Column value
throws:
  ArrayIndexOutOfBoundsException -



get
public Object get(String sColumnName) throws ArrayIndexOutOfBoundsException(Code)
Get column by name
Parameters:
  sColumnName - String Column name (case sensitive) Object Column value
throws:
  ArrayIndexOutOfBoundsException - If no column with sucjh name was found



getColumnIndex
public int getColumnIndex(String sColumnName)(Code)

Get column index at ColumnNames array given its name

This method performs binary search assuming that ColumnNames is sorted in ascending order
Parameters:
  sColumnName - String Column name (case insensitive) int Column index or -1 if not found



prepare
public void prepare(Connection oConn, ColumnList oColList) throws SQLException(Code)

Prepare statements for execution

This method needs to be called only once if the default constructor was used.
If ContactLoader(Connection) constructor was used, there is no need to call prepare() and a SQLException will be raised if the attempt is made.
It is neccesary to call close() always for prepared instances as a failure to do so will leave open cursors on the database causing it eventually to stop.
Parameters:
  oConn - Connection Open JDBC database connection
Parameters:
  oColList - ColumnList This parameter is ignored
throws:
  SQLException -



put
public void put(int iColumnIndex, Object oValue) throws ArrayIndexOutOfBoundsException(Code)
Put value for a given column
Parameters:
  iColumnIndex - Column index [0..getColumnCount()-1]
Parameters:
  oValue - Value for column
throws:
  ArrayIndexOutOfBoundsException -



put
public void put(String sColumnName, Object oValue) throws ArrayIndexOutOfBoundsException(Code)

Put value for a given column

If a previous value already exists then it is replaced
Parameters:
  sColumnName - Column name (case sensitive)
Parameters:
  oValue - Value for column
throws:
  ArrayIndexOutOfBoundsException -



putAll
public void putAll(Map oValues)(Code)
Put all values from a map on their corresponding columns matching by name
Parameters:
  oValues - Map



setAllColumnsToNull
public void setAllColumnsToNull()(Code)
Set all column values to null



store
public void store(Connection oConn, String sWorkArea, int iFlags) throws SQLException, IllegalArgumentException, NullPointerException, ClassCastException(Code)
Store properties curently held in RAM into the database
Parameters:
  oConn - Opened JDBC connection
Parameters:
  sWorkArea - String GUID of WorkArea to which inserted data will belong
Parameters:
  iFlags - int A boolean combination of {MODE_APPEND|MODE_UPDATE|WRITE_COMPANIES|WRITE_CONTACTS|WRITE_ADDRESSES|WRITE_LOOKUPS|NO_DUPLICATED_NAMES|NO_DUPLICATED_MAILS}
throws:
  SQLException -
throws:
  IllegalArgumentException -
throws:
  NullPointerException -
throws:
  ClassCastException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.