com.hs.mail.imap.dao
Class MySqlMessageDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
com.hs.mail.imap.dao.AbstractDao
com.hs.mail.imap.dao.MySqlMessageDao
- All Implemented Interfaces:
- MessageDao, org.springframework.beans.factory.InitializingBean
public class MySqlMessageDao
- extends AbstractDao
- implements MessageDao
- Since:
- Mar 23, 2010
- Author:
- Won Chul Doh
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
void |
addHeader(long physMessageID,
MessageHeader header)
|
void |
addMessage(long mailboxID,
MailMessage message)
|
void |
addMessage(long mailboxID,
MailMessage message,
javax.mail.Flags flags)
|
void |
copyMessage(long messageID,
long mailboxID)
|
void |
deleteMessage(long messageID)
|
void |
deletePhysicalMessage(long physMessageID)
|
PhysMessage |
getDanglingMessageID(long messageID)
|
javax.mail.Flags |
getFlags(long messageID)
|
Map<String,String> |
getHeader(long physMessageID)
|
Map<String,String> |
getHeader(long physMessageID,
String[] fields)
|
long |
getHeaderNameID(String headerName)
|
FetchData |
getMessageFetchData(long messageID)
|
List<Long> |
getMessageIDList(long mailboxID)
|
List<Long> |
resetRecent(long mailboxID)
|
void |
setFlags(long messageID,
javax.mail.Flags flags,
boolean replace,
boolean set)
|
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySqlMessageDao
public MySqlMessageDao()
getMessageIDList
public List<Long> getMessageIDList(long mailboxID)
- Specified by:
getMessageIDList
in interface MessageDao
addMessage
public void addMessage(long mailboxID,
MailMessage message)
- Specified by:
addMessage
in interface MessageDao
addMessage
public void addMessage(long mailboxID,
MailMessage message,
javax.mail.Flags flags)
- Specified by:
addMessage
in interface MessageDao
copyMessage
public void copyMessage(long messageID,
long mailboxID)
- Specified by:
copyMessage
in interface MessageDao
getMessageFetchData
public FetchData getMessageFetchData(long messageID)
- Specified by:
getMessageFetchData
in interface MessageDao
deleteMessage
public void deleteMessage(long messageID)
- Specified by:
deleteMessage
in interface MessageDao
getDanglingMessageID
public PhysMessage getDanglingMessageID(long messageID)
- Specified by:
getDanglingMessageID
in interface MessageDao
deletePhysicalMessage
public void deletePhysicalMessage(long physMessageID)
- Specified by:
deletePhysicalMessage
in interface MessageDao
resetRecent
public List<Long> resetRecent(long mailboxID)
- Specified by:
resetRecent
in interface MessageDao
setFlags
public void setFlags(long messageID,
javax.mail.Flags flags,
boolean replace,
boolean set)
- Specified by:
setFlags
in interface MessageDao
getFlags
public javax.mail.Flags getFlags(long messageID)
- Specified by:
getFlags
in interface MessageDao
getHeader
public Map<String,String> getHeader(long physMessageID)
- Specified by:
getHeader
in interface MessageDao
getHeader
public Map<String,String> getHeader(long physMessageID,
String[] fields)
- Specified by:
getHeader
in interface MessageDao
addHeader
public void addHeader(long physMessageID,
MessageHeader header)
- Specified by:
addHeader
in interface MessageDao
getHeaderNameID
public long getHeaderNameID(String headerName)
- Specified by:
getHeaderNameID
in interface MessageDao
Copyright © 2011. All Rights Reserved.