com.vinculumtech.carrierwave.datamodel
Class Rows

java.lang.Object
  extended bycom.vinculumtech.carrierwave.datamodel.Model
      extended bycom.vinculumtech.carrierwave.datamodel.Rows

public class Rows
extends com.vinculumtech.carrierwave.datamodel.Model

A Rows instance represents a sub-set of its parents set of "rows". Typically a Rows instance applies a filter to the parents set of rows when its values are retrieved.

Version:
$Id: //depot/carrierwave/src/shared/com/vinculumtech/carrierwave/datamodel/Rows.java#4 $
See Also:
DataModel

Method Summary
 DataModel becomeModelCache()
          Creates a new DataModel that is sourced once by the results of getValues() from this Rows instance, all future calls to getValues() on the returned DataModle will not consult this Rows instance.
The returned DataModel is not thread safe.
 Rows getAllRows()
           
 Column getColumn(java.lang.String columnName)
           
 java.lang.Class getCommonType()
           
 com.vinculumtech.carrierwave.datamodel.Filter getFilter()
           
 com.vinculumtech.carrierwave.datamodel.Model getParentModel()
           
 Rows getRowsFor(java.lang.String columnName, UnaryFunction filter)
           
 Rows getRowsFor(UnaryFunction filter)
           
 java.util.Collection getValues()
           
 java.util.Collection getValues(java.util.Collection destination)
           
 boolean hasColumnName(java.lang.String columnName)
           
 boolean hasParentModel()
           
 boolean isAllRows()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFilter

public com.vinculumtech.carrierwave.datamodel.Filter getFilter()

isAllRows

public boolean isAllRows()

getValues

public java.util.Collection getValues(java.util.Collection destination)

getAllRows

public Rows getAllRows()

getRowsFor

public Rows getRowsFor(UnaryFunction filter)

getRowsFor

public Rows getRowsFor(java.lang.String columnName,
                       UnaryFunction filter)

getColumn

public Column getColumn(java.lang.String columnName)

becomeModelCache

public DataModel becomeModelCache()
Creates a new DataModel that is sourced once by the results of getValues() from this Rows instance, all future calls to getValues() on the returned DataModle will not consult this Rows instance.
The returned DataModel is not thread safe. A custom RowSource should be created and passed to a new DataModel instance if this is required.

Returns:

getParentModel

public com.vinculumtech.carrierwave.datamodel.Model getParentModel()

hasParentModel

public boolean hasParentModel()

getCommonType

public java.lang.Class getCommonType()

getValues

public java.util.Collection getValues()

hasColumnName

public boolean hasColumnName(java.lang.String columnName)


Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.