|
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()
|
boolean |
individualizeEmail(Email email,
javax.mail.internet.InternetAddress address)
this method is called by the EmailAccount.send() method to individualize
this particular email for 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 boolean individualizeEmail(Email email,
javax.mail.internet.InternetAddress address)
throws DatabaseException
EmailCustomizerEmailAccount.send() method to individualize
this particular email for given the address.
individualizeEmail in interface EmailCustomizerDatabaseException - if something went wrong when trying to access relevant data for the customizationPOP3Account.sendEmails(Email, InternetAddress[], EmailCustomizer, com.antelmann.util.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 | |||||||||