|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.net.mail.SQLEmailCustomizer
public class SQLEmailCustomizer
uses a JDBC connection to customize emails. All existing occurrences of ${columnName} will be replaced with the value stored in the column of the row where the email address equals the address of the InternetAddress object that is to be used.
| Constructor Summary | |
|---|---|
SQLEmailCustomizer(Connection con,
String tableName,
String emailColumn)
|
|
| Method Summary | |
|---|---|
void |
close()
does not close the embedded connection |
protected void |
customizeReplacement(Email email,
javax.mail.internet.InternetAddress address,
Map<String,Object> params)
used to customize the replacement. |
protected void |
finalize()
|
String[] |
getAddresses()
|
javax.mail.internet.InternetAddress[] |
getInternetAddresses()
|
void |
individualizeEmail(Email email,
javax.mail.internet.InternetAddress address)
this method is called by the EmailAccount.send() method to individualize
the body of an email given the address. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLEmailCustomizer(Connection con,
String tableName,
String emailColumn)
throws SQLException
SQLException| Method Detail |
|---|
public void individualizeEmail(Email email,
javax.mail.internet.InternetAddress address)
throws javax.mail.MessagingException
EmailCustomizerEmailAccount.send() method to individualize
the body of an email given the address.
individualizeEmail in interface EmailCustomizerjavax.mail.MessagingExceptionEmailAccount.sendEmails(Email, InternetAddress[], EmailCustomizer, Monitor)
protected void customizeReplacement(Email email,
javax.mail.internet.InternetAddress address,
Map<String,Object> params)
public String[] getAddresses()
throws SQLException
SQLException
public javax.mail.internet.InternetAddress[] getInternetAddresses()
throws SQLException,
javax.mail.internet.AddressException
SQLException
javax.mail.internet.AddressException
public void close()
throws IOException
close in interface CloseableIOException
protected void finalize()
throws SQLException
finalize in class ObjectSQLException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||