NoAsignableDBEntity extends NoAsignableDBEntityBase { public List getIdsDescendientes(String idElemento) { final StringBuffer qual = new StringBuffer("CONNECT BY PRIOR ") .append(ID_COLUMN_NAME) .append("=") .append(IDPADRE_COLUMN_NAME) .append(" START WITH ") .append(DBUtils.generateEQTokenField(CAMPO_IDPADRE, idElemento)); final DbColumnDef[] cols = new DbColumnDef[] { new DbColumnDef("value", CAMPO_ID) }; List ids = getVOS(qual.toString(), TABLE_NAME, cols, MutableObject.class); List idList = new ArrayList(); for (int i = 0; i < ids.size(); i++) idList.add((String) ((Mutable) ids.get(i)).getValue()); return idList; } NoAsignableDBEntity(DbDataSource dataSource);  NoAsignableDBEntity(DbConnection conn); static String createItemPathSubquery(String selecctionQual); static String createPathSubquery(String selecctionQual); List getNoAsignables(String qual, String orderBy); ElementoNoAsignableVO getNoAsignable(String qual); List getIdsDescendientes(String idElemento); static final DbColumnDef CAMPO_ITEM_PATH; static final DbColumnDef CAMPO_PATH; }
@Test public void getIdsDescendientes() { getDAO().getIdsDescendientes(idElemento); }