An abstract method which child classes override to handle logging of
errors in their particular environments.
Parameters: errorString - the error message generated
getLastDatabaseUpdateTime
public static long getLastDatabaseUpdateTime()(Code)
Getter for static lastDatabaseUpdateTime.
Value of property lastDatabaseUpdateTime.
Initializes the sql query environment from the SqlResources file.
Will look for conf/sqlResources.xml.
Parameters: conn - The connection for accessing the database Parameters: mailetContext - The current mailet context,for finding the conf/sqlResources.xml file throws: Exception - If any error occurs
Loads the token frequencies from the database.
Parameters: conn - The connection for accessing the database throws: SQLException - If a database error occurs
setSqlFileName
public void setSqlFileName(String sqlFileName)(Code)
Setter for property sqlFileName.
Parameters: sqlFileName - New value of property sqlFileName.
setSqlParameters
public void setSqlParameters(Map sqlParameters)(Code)
Setter for property sqlParameters.
Parameters: sqlParameters - New value of property sqlParameters.
touchLastDatabaseUpdateTime
public static void touchLastDatabaseUpdateTime()(Code)
Sets static lastDatabaseUpdateTime to System.currentTimeMillis().
Updates the database with new "ham" token frequencies.
Parameters: conn - The connection for accessing the database throws: SQLException - If a database error occurs
Updates the database with new "spam" token frequencies.
Parameters: conn - The connection for accessing the database throws: SQLException - If a database error occurs
Methods inherited from org.apache.james.util.BayesianAnalyzer