com.arsdigita.mimetypes
Class MimeTypeCollection

java.lang.Object
  extended bycom.arsdigita.domain.DomainQuery
      extended bycom.arsdigita.domain.DomainCollection
          extended bycom.arsdigita.mimetypes.MimeTypeCollection
All Implemented Interfaces:
DataQuery

public class MimeTypeCollection
extends DomainCollection

This class contains a collection of MimeTypes.

Version:
1.0
Author:
Jack Chung
See Also:
DomainCollection, DataCollection

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.domain.DomainCollection
m_dataCollection
 
Fields inherited from class com.arsdigita.domain.DomainQuery
m_dataQuery
 
Constructor Summary
MimeTypeCollection(DataCollection dataCollection)
          Constructor.
 
Method Summary
 void addOrder(String order)
          Set the order of this Collection.
 DomainObject getDomainObject()
          Returns a DomainObject for the current position in the collection.
 MimeType getMimeType()
          Returns a MimeType for the current position in the collection.
 
Methods inherited from class com.arsdigita.domain.DomainQuery
addEqualsFilter, addFilter, addFilter, addInSubqueryFilter, addInSubqueryFilter, addNotEqualsFilter, addNotInSubqueryFilter, addOrderWithNull, addPath, alias, clearFilter, clearOrder, close, first, get, getFilterFactory, getParameter, getPosition, getPropertyValues, getType, hasProperty, isAfterLast, isBeforeFirst, isEmpty, isFirst, isLast, last, next, previous, removeFilter, reset, rewind, setFilter, setOrder, setParameter, setRange, setRange, setReturnsLowerBound, setReturnsUpperBound, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

MimeTypeCollection

public MimeTypeCollection(DataCollection dataCollection)
Constructor.

Method Detail

addOrder

public void addOrder(String order)
Set the order of this Collection. This method needs to be called before next() is called on this collection.

Specified by:
addOrder in interface DataQuery
Overrides:
addOrder in class DomainQuery
Parameters:
order - This String parameter specifies the ordering of the output. This should be a comma seperated list of Attribute names (not the database column names) in the order of precedence. Separating attributes by commas is the same as calling addOrder multiple times, each with the next attribute. For instance, this

              addOrder("creationDate");
              addOrder("creationUser");
              
is the same as

              addOrder("creationDate, creationUser");
              

If the items should be ordered in ascending order, the attribute name should be followed by the word "asc" If the items should be ordered in descending order, the attribute should be followed by the word "desc" For instance, or order by ascending date and descending user (for users created with the same date), you would use the following:


              addOrder("creationDate asc, creationUser desc");
              

getDomainObject

public DomainObject getDomainObject()
Returns a DomainObject for the current position in the collection.

Overrides:
getDomainObject in class DomainCollection
See Also:
DomainObject

getMimeType

public MimeType getMimeType()
Returns a MimeType for the current position in the collection.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC