| java.lang.Object org.apache.james.core.MimeMessageSource org.apache.james.mailrepository.MimeMessageJDBCSource
MimeMessageJDBCSource | public class MimeMessageJDBCSource extends MimeMessageSource (Code) | | This class points to a specific message in a repository. This will return an
InputStream to the JDBC field/record, possibly sequenced with the file stream.
|
retrieveMessageBodySQL | String retrieveMessageBodySQL(Code) | | SQL used to retrieve the message body
|
retrieveMessageBodySizeSQL | String retrieveMessageBodySizeSQL(Code) | | SQL used to retrieve the size of the message body
|
MimeMessageJDBCSource | public MimeMessageJDBCSource(JDBCMailRepository repository, String key, StreamRepository sr) throws IOException(Code) | | Construct a MimeMessageSource based on a JDBC repository, a key, and a
stream repository (where we might store the message body)
|
equals | public boolean equals(Object obj)(Code) | | Check to see whether this is the same repository and the same key
|
getInputStream | public synchronized InputStream getInputStream() throws IOException(Code) | | Return the input stream to the database field and then the file stream. This should
be smart enough to work even if the file does not exist. This is to support
a repository with the entire message in the database, which is how James 1.2 worked.
|
getMessageSize | public synchronized long getMessageSize() throws IOException(Code) | | Runs a custom SQL statement to check the size of the message body
|
getSourceId | public String getSourceId()(Code) | | Returns a unique String ID that represents the location from where
this source is loaded. This will be used to identify where the data
is, primarily to avoid situations where this data would get overwritten.
the String ID |
hashCode | public int hashCode()(Code) | | Provide a hash code that is consistent with equals for this class
the hash code |
|
|