Thesaurus (GWT, JDBC)

Download Sources

Example of how to use generated data access code

DataStoreManager dm = new DataStoreManager();

dm.open();

ThesaurusDao dao = dm.createThesaurusDao();

List<Word> words = dao.getWordsByKey(key);

// process the list 

dm.close();

XML meta-program

<dto-classes>		
	<dto-class name="Word" ref="WORDS" />
	<dto-class name="RelatedWord" ref="thesaurus/getRelatedWords.sql" />
</dto-classes>
<dao-class>		
	<query ref="thesaurus/getTotalWordsCount.sql"
		method="getTotalWordsCount" />
	<query-dto-list ref="thesaurus/getWordsByKey.sql" dto="Word"
		method="getWordsByKey(key)" />
	<query-dto-list ref="getRelatedWords.sql" dto="RelatedWord"
		method="getRelatedWords(w_id)" />
</dao-class>