Java Doc for ListMember.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.ListMember

ListMember
public class ListMember (Code)

List Member

List Members are kept at database differently depending on the type of list they belong to.

For Members of Dynamic Lists (k_lists.tp_list=2) no member record is explicitly stored at database, but members are dynamically extracted from k_member_address view each time that the DistributionList is used.

For Members of Static Lists (k_lists.tp_list=1) a record is stored at k_x_list_members table. Members of Static Lists can be Companies from k_companies table of Contacts from k_contacts table. If Member is a Company then tp_member is set to 91 and gu_company is set to Company GUID. If Member is a Contact then tp_member is set to 90 and gu_contact is set to Contact GUID.

For Members of Direct and Black Lists (k_lists.tp_list=3 and k_lists.tp_list=4) tp_member is set to 95. One record is stored at k_x_list_members table and another record is stored at k_list_members. There is one unique record per Member at k_list_members and one record per member and list at k_x_list_members.

List Member Storage Summary
List Typek_lists.tp_memberk_x_list_member.gu_contactk_x_list_member.gu_companyk_list_member.gu_member
DYNAMIC90 or 91NONENONENONE
STATIC90 or 91References k_contacts if tp_member=90References k_companies if tp_member=91NONE
DIRECT95References k_list_membersNULLMember GUID

author:
   Sergio Montoro Ten
version:
   2.0



Field Summary
final public static  shortClassId
    

Constructor Summary
public  ListMember()
    
public  ListMember(JDCConnection oConn, String sMemberId, String sListGUID)
     Create ListMember and load its fields from database.

Method Summary
public  voidblock(JDCConnection oConn, String sListGUID)
    
public  booleandelete(JDCConnection oConn, String sListId)
    

Remove Member from a DistributionList.

Member is also removed from associated black list.
public  booleandelete(JDCConnection oConn)
     Remove Member from all DistributionList.
public  java.util.DategetDate(String sKey)
    
public  StringgetDateFormated(String sKey, String sFormat)
    
public  shortgetShort(String sKey)
    
public  StringgetString(String sKey)
    
public  StringgetStringNull(String sKey, String sDefault)
    
public  booleanisBlocked(JDCConnection oConn)
    
public  booleanisNull(String sColumnName)
    
public  DBPersistmember()
     Internal DBPersist object reference for k_list_members register.
public  voidput(String sKey, String sVal)
    
public  voidput(String sKey, short iVal)
    
public  voidput(String sKey, java.util.Date dtVal)
    
public  voidput(String sKey, Object oObj)
    
public  voidremove(String sKey)
    
public  voidreplace(String sKey, Object oObj)
    
public  voidreplace(String sKey, short iVal)
    
public  booleanstore(JDCConnection oConn, String sListGUID)
    
public  voidunblock(JDCConnection oConn, String sListGUID)
    

Field Detail
ClassId
final public static short ClassId(Code)




Constructor Detail
ListMember
public ListMember()(Code)



ListMember
public ListMember(JDCConnection oConn, String sMemberId, String sListGUID) throws SQLException(Code)
Create ListMember and load its fields from database. ListMember with given GUID or e-amil is seeked at k_x_list_members table.
Parameters:
  oConn - Database Connection
Parameters:
  sMemberId - One of: GUID for Contact, GUID for Company or Member e-mail.
Parameters:
  sListGUID - DistributionList GUID
throws:
  SQLException -




Method Detail
block
public void block(JDCConnection oConn, String sListGUID) throws SQLException, NoSuchFieldException(Code)

Block Member

Add member to Black List associated to Base List.


Parameters:
  oConn - Database Connection
Parameters:
  sListGUID - Base List GUID
throws:
  SQLException -
throws:
  NoSuchFieldException -



delete
public boolean delete(JDCConnection oConn, String sListId) throws SQLException(Code)

Remove Member from a DistributionList.

Member is also removed from associated black list.
Parameters:
  oConn - Database Connection
Parameters:
  sListId - GUID of DistributionList from witch Member is to be removed.
throws:
  SQLException -



delete
public boolean delete(JDCConnection oConn) throws SQLException(Code)
Remove Member from all DistributionList.
Parameters:
  oConn - Database Connection
throws:
  SQLException -



getDate
public java.util.Date getDate(String sKey)(Code)



getDateFormated
public String getDateFormated(String sKey, String sFormat)(Code)



getShort
public short getShort(String sKey) throws java.lang.NullPointerException(Code)



getString
public String getString(String sKey) throws java.lang.NullPointerException(Code)



getStringNull
public String getStringNull(String sKey, String sDefault)(Code)



isBlocked
public boolean isBlocked(JDCConnection oConn) throws SQLException(Code)

Get whether or not a List Member is Blocked

Blocked Members are those present on the associated black list.
Companies and Contacts are considered to be in the black list if its gu_company or gu_contact is into black list register at k_x_list_members
Direct List Members are considered to be in the black list if its tx_email is into black list register at k_x_list_members
This way, by searching Companies and Contacts by GUID and Direct Members by e-mail, a Contact or Company may have several e-mail addresses all of them blocked by a single black list entry.
This method calls stored procedures: k_sp_company_blocked, k_sp_contact_blocked and k_sp_email_blocked
Parameters:
  oConn - Database Connection true if member is blocked (present at associated black list for this list) false otherwise.
throws:
  SQLException -



isNull
public boolean isNull(String sColumnName)(Code)



member
public DBPersist member()(Code)
Internal DBPersist object reference for k_list_members register.



put
public void put(String sKey, String sVal)(Code)



put
public void put(String sKey, short iVal)(Code)



put
public void put(String sKey, java.util.Date dtVal)(Code)



put
public void put(String sKey, Object oObj)(Code)



remove
public void remove(String sKey)(Code)



replace
public void replace(String sKey, Object oObj)(Code)



replace
public void replace(String sKey, short iVal)(Code)



store
public boolean store(JDCConnection oConn, String sListGUID) throws ClassCastException, NoSuchFieldException, SQLException(Code)

Store Member at a DistributionList

Automatically generates gu_member GUID for Direct List Members and dt_modified DATE if not explicitly set.


Parameters:
  oConn - Database Connection
Parameters:
  sListGUID - GUID of Distribution List
throws:
  ClassCastException - If sListId type is DYNAMIC.
throws:
  NoSuchFieldException - If List is Static and gu_member field is not set
throws:
  SQLException -



unblock
public void unblock(JDCConnection oConn, String sListGUID) throws SQLException(Code)

Unblock Member

Remove member from Black List associated to Base List.


Parameters:
  oConn - Database Connection
Parameters:
  sListGUID - Base List GUID
throws:
  SQLException -



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.