public class WordFixController extends JDBCObjectController<WordFix>
WordFix class. Provides methods for
retrieving and persisting mixed case word correction (a.k.a. word replacement)
records in the database.| Modifier and Type | Field and Description |
|---|---|
private static java.util.Hashtable<java.lang.String,WordFix> |
cvCache
A hash table for caching all word fixes.
|
private static long |
serialVersionUID
The class' serialization version id.
|
ivDBObjCls, ivFieldCount, ivFieldKeyAlt, ivFieldKeyPri, ivFieldResPfx, ivSyncLast, ivSyncType, ivTableNameivHashCode, ivHashFlds, ivObjAttrs| Constructor and Description |
|---|
WordFixController()
The constructor for the controller.
|
| Modifier and Type | Method and Description |
|---|---|
int |
add(WordFix obj,
boolean logdup)
Adds a new record to the table associated with the controller.
|
boolean |
delete(WordFix obj)
Deletes an existing record from the table associated with the controller.
|
boolean |
deleteAll()
Deletes all records in the table associated with the controller.
|
WordFix |
get(java.lang.String wrong)
Returns the word fix record for the given wrong format.
|
java.lang.String |
getMixedCase(java.lang.String s)
Returns a mixed case string for the given string.
|
private void |
loadCache()
Loads the cache of word fixes with all word fixes.
|
boolean |
update(WordFix obj)
Updates an existing record in the table associated with the controller.
|
add, add, arrayToMap, arrayToMap, countAll, delete, dispose, equals, getAll, getConnection, getConnectionInfo, getController, getFieldNames, getFieldNamesForKey, getFieldNamesForUpdate, getFieldNulls, getFieldNullsForKey, getFieldNullsForUpdate, getFieldsForOrderBy, getFieldsForWhere, getFieldSize, getFieldTypes, getFieldTypesForKey, getFieldTypesForUpdate, getStatementForDelete, getStatementForGet, getStatementForGetAll, getStatementForInsert, getStatementForUpdate, getStatementKey, getStatementString, getTableName, hasFieldNamesForKey, hasFieldNamesForUpdate, isDuplicate, resultSetToArray, resultSetToMap, resultSetToMap, resultSetToObject, setConnectionInfo, setPSDeleteValues, setPSExistsValues, setPSInsertValues, setPSUpdateValues, setPSValue, update, valuesToObjectcloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArrayprivate static final long serialVersionUID
private static java.util.Hashtable<java.lang.String,WordFix> cvCache
WordFix object as its value.public int add(WordFix obj, boolean logdup)
add in JDBCObjectController.add in class JDBCObjectController<WordFix>obj - (JDBCObject) The object for the record to be added.logdup - (boolean) true if duplicate errors are to be
logged as an exception, otherwise false if not. When
duplicates are logged, the return value of 1 is never returned.public boolean delete(WordFix obj)
delete in JDBCObjectController.delete in class JDBCObjectController<WordFix>obj - (JDBCObject) The object for the record to be deleted.true if the record deleted successfully,
otherwise false.public boolean deleteAll()
deleteAll in JDBCObjectController.deleteAll in class JDBCObjectController<WordFix>true if the deletes are successful,
otherwise false.public boolean update(WordFix obj)
update in JDBCObjectController.update in class JDBCObjectController<WordFix>obj - (JDBCObject) The object for the record to be updated.true if the record updated successfully,
otherwise false.public WordFix get(java.lang.String wrong)
wrong - (String) The wrong format for the desired record.public java.lang.String getMixedCase(java.lang.String s)
WordFix corrections to the result.s - (String) The string to process.private void loadCache()