com.poscoict.glueframework.dao.vo
Class GlueRowSetImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<GlueRow<String,Object>>
              extended by com.poscoict.glueframework.dao.vo.GlueRowSetImpl
All Implemented Interfaces:
GlueRowSet<GlueRow<String,Object>>, Serializable, Cloneable, Iterable<GlueRow<String,Object>>, Collection<GlueRow<String,Object>>, List<GlueRow<String,Object>>, RandomAccess
Direct Known Subclasses:
GluePageSetImpl

public class GlueRowSetImpl
extends ArrayList<GlueRow<String,Object>>
implements GlueRowSet<GlueRow<String,Object>>

Database 테이블의 복수 개의 레코드를 표현하는 Value Object. 복수 개의 레코드는 하나의 GlueRowSetImpl 오브젝트로 표현된다.

See Also:
Serialized Form

Field Summary
protected  GlueColumnDef[] columndefs
          column definition
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
GlueRowSetImpl()
          생성자(constructor).
GlueRowSetImpl(int initialCapacity)
          생성자(constructor).
GlueRowSetImpl(List<GlueRow<String,Object>> rows)
          생성자(constructor).
 
Method Summary
 int count()
          현재 RowSet의 Row 개수를 얻는다.
 GlueRow<String,Object>[] getAllRow()
          현재 RowSet의 모든 Row를 얻는다.
 GlueColumnDef[] getColumnDefs()
          Column Definition 정보를 얻는다.
 boolean hasNext()
          현재 커서 위치에서 다음 Row의 존재 여부를 확인한다.
 boolean hasPrevious()
          현재 커서 위치에서 그 전의 Row 존재 여부를 확인한다.
 GlueRow<String,Object> next()
          현재 커서 위치에서 다음에 존재하는 Row를 얻는다.
 GlueRow<String,Object> previous()
          현재 커서 위치에서 바로 전에 존재하는 Row를 얻는다.
 void reset()
          RowSet의 커서 위치를 처음으로 이동시킨다.
 void setColumnDefs(GlueColumnDef[] columnDefs)
          Column Definition 정보를 설정한다.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

columndefs

protected GlueColumnDef[] columndefs
column definition

Constructor Detail

GlueRowSetImpl

public GlueRowSetImpl()
생성자(constructor).


GlueRowSetImpl

public GlueRowSetImpl(int initialCapacity)
생성자(constructor).

Parameters:
initialCapacity -

GlueRowSetImpl

public GlueRowSetImpl(List<GlueRow<String,Object>> rows)
생성자(constructor).

Parameters:
rows -
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: GlueRowSet
현재 커서 위치에서 다음 Row의 존재 여부를 확인한다.

Specified by:
hasNext in interface GlueRowSet<GlueRow<String,Object>>
Returns:
Row가 존재하면 true

hasPrevious

public boolean hasPrevious()
Description copied from interface: GlueRowSet
현재 커서 위치에서 그 전의 Row 존재 여부를 확인한다.

Specified by:
hasPrevious in interface GlueRowSet<GlueRow<String,Object>>
Returns:
Row가 존재하면 true

reset

public void reset()
Description copied from interface: GlueRowSet
RowSet의 커서 위치를 처음으로 이동시킨다.

Specified by:
reset in interface GlueRowSet<GlueRow<String,Object>>

next

public GlueRow<String,Object> next()
Description copied from interface: GlueRowSet
현재 커서 위치에서 다음에 존재하는 Row를 얻는다.

Specified by:
next in interface GlueRowSet<GlueRow<String,Object>>
Returns:
현재 커서 위치에서 다음에 존재하는 Row

previous

public GlueRow<String,Object> previous()
Description copied from interface: GlueRowSet
현재 커서 위치에서 바로 전에 존재하는 Row를 얻는다.

Specified by:
previous in interface GlueRowSet<GlueRow<String,Object>>
Returns:
현재 커서 위치에서 바로 전에 존재하는 Row

count

public int count()
Description copied from interface: GlueRowSet
현재 RowSet의 Row 개수를 얻는다.

Specified by:
count in interface GlueRowSet<GlueRow<String,Object>>
Returns:
Row 개수 (레코드 개수)

getAllRow

public GlueRow<String,Object>[] getAllRow()
Description copied from interface: GlueRowSet
현재 RowSet의 모든 Row를 얻는다.

Specified by:
getAllRow in interface GlueRowSet<GlueRow<String,Object>>
Returns:
Row Array

getColumnDefs

public GlueColumnDef[] getColumnDefs()
Description copied from interface: GlueRowSet
Column Definition 정보를 얻는다.

Specified by:
getColumnDefs in interface GlueRowSet<GlueRow<String,Object>>
Returns:
Column Definition Array

setColumnDefs

public void setColumnDefs(GlueColumnDef[] columnDefs)
Description copied from interface: GlueRowSet
Column Definition 정보를 설정한다.

Specified by:
setColumnDefs in interface GlueRowSet<GlueRow<String,Object>>
Parameters:
columnDefs - GlueColumnDef Array


Copyright © 2013–2014 POSCO ICT SW제품기술팀. All rights reserved.