Thesaurus (ATL, WTL, SQLite)

Download Sources

Example of data access code

CDataStore ds;

ds.open();

CThesaurusDao dao(ds);

CListReader2<CWord> reader;

dao.getWordsByKey(key, reader);

ds.close();

// process the list

XML meta-program

<dto-classes>		
	<dto-class name="Word" ref="WORDS" >
	       <field java-type="Long" column="W_ID" />
	       <field java-type="String" column="W_WORD" />
	</dto-class>
	<dto-class name="RelatedWord" ref="thesaurus/getRelatedWords.sql" />
</dto-classes>
<dao-class>		
	<query-dto-list ref="thesaurus/getWordsByKey.sql" dto="Word"
			method="getWordsByKey(key)" />
	<query-dto-list ref="thesaurus/getRelatedWords.sql" dto="RelatedWord"
			method="getRelatedWords(Long w_id)" />
</dao-class>