com.poscoict.glueframework.dao.vo
Interface GlueCursorBasedRowSet<E>

Type Parameters:
E -
All Superinterfaces:
Collection<E>, Iterable<E>, List<E>
All Known Implementing Classes:
GlueCursorBasedRowSetImpl

public interface GlueCursorBasedRowSet<E>
extends List<E>

GlueCursorBasedRowSet ÀÎÅÍÆäÀ̽º. GlueLazyJdbcDaoÀÇ Á¶È¸(find) ½ÇÇà°á°ú¸¦ ´ã´Â °´Ã¼.
java.util.List ÀÎÅÍÆäÀ̽º¸¦ È®ÀåÇÏ¿´À¸³ª, clear() Method¸¦ Á¦¿ÜÇÏ°í´Â »ç¿ëÇÒ ¼ö ¾ø´Ù.

 sample.jsp ÀϺÎ
 
 GlueCursorBasedRowSet<Map> empRowSet = (GlueCursorBasedRowSet<Map>)ctx.get("EmpList");
 for (int i=0; empRowSet.hasNext(); )
 {
     Map row = empRowSet.next();
     out.print((i+1)+"th ");
     out.print(row.get("EMPNO"));
     out.print("|");
     out.print(row.get("ENAME"));
     out.print("|");
     out.print(row.get("JOB"));
     out.print("|");
     out.print(row.get("MGR"));
     out.print("|");
     out.print(row.get("HIREDATE"));
     out.print("|");
     out.print(row.get("SAL"));
     out.print("|");
     out.print(row.get("COMM"));
     out.print("|");
     out.print(row.get("DEPTNO"));
     out.print("<br>");
 }
 GlueCursorBasedRowSet<DeptVO> deptRowSet = (GlueCursorBasedRowSet<DeptVO>)ctx.get("DeptList");
 for (int i=0; deptRowSet.hasNext(); )
 {
     DeptVO row = deptRowSet.next();
     out.print((i+1)+"th ");
     out.print(row.getDeptno());
     out.print("|");
     out.print(row.getDname());
     out.print("|");
     out.print(row.getLoc());
     out.print("<br>");
 }
 
 
 
 sample-query.glue_sqlÀÇ ÀϺÎ
 
 <queryMap>
     <query id="emp.select" desc="EMP Á¶È¸" resultType="" isNamed="false">
     <![CDATA[
     select EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO from EMP
     ]]>
     </query>
     <query id="dept.select.vo" desc="DEPT Á¶È¸" resultType="sample.vo.DeptVO" isNamed="false">
     <![CDATA[
     select DEPTNO, DNAME, LOC from DEPT
     ]]>
     </query>
 </queryMap>
 
 


Method Summary
 GlueColumnDef[] getColumnDefs()
          Column Definition Á¤º¸¸¦ ¾ò´Â´Ù.
 boolean hasNext()
          ÇöÀç Ä¿¼­ À§Ä¡¿¡¼­ ´ÙÀ½ RowÀÇ Á¸Àç ¿©ºÎ¸¦ È®ÀÎÇÑ´Ù.
 E next()
          ÇöÀç Ä¿¼­ À§Ä¡¿¡¼­ ´ÙÀ½¿¡ Á¸ÀçÇÏ´Â Row¸¦ ¾ò´Â´Ù.
 void reset()
          RowSetÀÇ Ä¿¼­ À§Ä¡¸¦ óÀ½À¸·Î À̵¿½ÃŲ´Ù.
 void setColumnDefs(GlueColumnDef[] columnDefs)
          Column Definition Á¤º¸¸¦ ¼³Á¤ÇÑ´Ù.
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

hasNext

boolean hasNext()
ÇöÀç Ä¿¼­ À§Ä¡¿¡¼­ ´ÙÀ½ RowÀÇ Á¸Àç ¿©ºÎ¸¦ È®ÀÎÇÑ´Ù.

Returns:
Row°¡ Á¸ÀçÇϸé true

reset

void reset()
RowSetÀÇ Ä¿¼­ À§Ä¡¸¦ óÀ½À¸·Î À̵¿½ÃŲ´Ù.


next

E next()
ÇöÀç Ä¿¼­ À§Ä¡¿¡¼­ ´ÙÀ½¿¡ Á¸ÀçÇÏ´Â Row¸¦ ¾ò´Â´Ù.

Returns:
ÇöÀç Ä¿¼­ À§Ä¡¿¡¼­ ´ÙÀ½¿¡ Á¸ÀçÇÏ´Â Row

getColumnDefs

GlueColumnDef[] getColumnDefs()
Column Definition Á¤º¸¸¦ ¾ò´Â´Ù.

Returns:
Column Definition Array

setColumnDefs

void setColumnDefs(GlueColumnDef[] columnDefs)
Column Definition Á¤º¸¸¦ ¼³Á¤ÇÑ´Ù.

Parameters:
columnDefs - GlueColumnDef Array


Copyright © 2013–2018 POSCO ICT. All rights reserved.