ATG執行sql部分示例

duruiyang603發表於2015-09-18
gggRepository=/com/ggg/mmm/repository/store/gggStoreRepository
-----
 private Repository gggRepository;
 RepositoryView view = gggRepository.getView("gome_aaa_bbb");

 RqlStatement rql = RqlStatement.parseRqlStatement( "division_type=?0 order by seq SORT ASC" );
 Object[] params = new Object[1];
 params[0] = "1";
 RepositoryItem[] results = rql.executeQuery(view, params);
 for( RepositoryItem repositoryItem : results )
                {
                }




Repository rep = (Repository) ServletUtil.getCurrentRequest().resolveName("/atg/uuu/XxxxRepository");
RepositoryItemDescriptor desc = rep.getItemDescriptor("user"); 
RepositoryView view = desc.getRepositoryView();

RqlStatement ……















相關文章