涉及中文字符串记录的数据库管理是Java开发中的常见问题。由于Java语言对中文支持不足,导致中文字符串记录的排序不能很好地满足应用要求。该文在与当前中文排序方法比较分析的基础上,提出了一种通用的排序方法,适用于Java环境下中文字符串和数字类型记录的排序过程,较好地解决了中文字符串数据集记录的排序问题,并且针对记录添加和检索时易出现的谐音拼写错误,提出了谐音检索方法,提高了检索过程的容错和纠错性能。
It is a common problem for database management in a Java development environment when involving Chinese text records. As a result of the incapability in dealing with Chinese text for Java, the sorting of Chinese text records can not fulfill the application requirements. A general sorting approach applying to sort of Chinese text and digital records in Java environment is presented based on comparative analysis of current Chinese sorting methods ,which can better solve the sorting problem of Chinese text dataset .This paper puts forward fuzzy retrieving methods which can stand homophonic spelling errors easily occurring in adding and retrieving, which improves fault tolerance and error-correcting performance in retrieval process.