ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class FilterDAO

java.lang.Object
  extended bythinkui.db.dao.AbstractDataAccessObject
      extended bythinkui.sqlclient.dao.AbstractDAO
          extended bythinkui.sqlclient.dao.FilterDAO
All Implemented Interfaces:
thinkui.db.dao.DataAccessObject

public class FilterDAO
extends AbstractDAO

Implements the FilterDAO Data Access Object.


Constructor Summary
FilterDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          FilterDAO constructor.
 
Method Summary
 AttributeType createFilterEnumType()
           
 void deleteFilter(java.lang.Object filterId)
          Delete the specified Filter object from the database.
 int deleteFilters(java.util.Set filterIds)
          Delete the specified Filter objects from the database.
 SearchResultsData findFilter(FilterSearchData searchData)
          Find all Filter records matching the specified criteria.
 Filter getFilter(java.lang.Object filterId)
          Get the Filter object for the specified object id.
 Filter insertFilter(Filter filter)
          Insert the specified Filter object into the database.
 void insertFilterNoSync(Filter filter)
          Insert the specified Filter object to the database.
 Filter saveFilter(Filter filter)
          Save the specified Filter object to the database.
 int updateFilter(Filter filter, FilterSearchData searchData)
          Update all Filter objects matching the specified search criteria.
 int updateFilters(java.util.Set filterIds, Filter filter)
          Updated the specified Filter objects with the values in the specified filter object.
 
Methods inherited from class thinkui.db.dao.AbstractDataAccessObject
close, getDataObjectManager, setDataObjectManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterDAO

public FilterDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
FilterDAO constructor.

Method Detail

createFilterEnumType

public final AttributeType createFilterEnumType()
                                         throws java.lang.Exception
Returns:
enum attribute type of all Filter objects.
Throws:
java.lang.Exception

deleteFilter

public final void deleteFilter(java.lang.Object filterId)
                        throws java.lang.Exception
Delete the specified Filter object from the database.

Throws:
java.lang.Exception

deleteFilters

public final int deleteFilters(java.util.Set filterIds)
                        throws java.lang.Exception
Delete the specified Filter objects from the database.

Throws:
java.lang.Exception

findFilter

public final SearchResultsData findFilter(FilterSearchData searchData)
                                   throws java.lang.Exception
Find all Filter records matching the specified criteria.

Returns:
the results matching the specified criteria.
Throws:
java.lang.Exception

getFilter

public final Filter getFilter(java.lang.Object filterId)
                       throws java.lang.Exception
Get the Filter object for the specified object id. If the object id is null, simply create and return a new empty Project object.

Returns:
the Filter object for the specified object id or a new empty Filter object if the id is null.
Throws:
java.lang.Exception

insertFilter

public final Filter insertFilter(Filter filter)
                          throws java.lang.Exception
Insert the specified Filter object into the database. Any defaulted columns will be automatically populated and returned.

Throws:
java.lang.Exception

insertFilterNoSync

public final void insertFilterNoSync(Filter filter)
                              throws java.lang.Exception
Insert the specified Filter object to the database.

Throws:
java.lang.Exception

saveFilter

public final Filter saveFilter(Filter filter)
                        throws java.lang.Exception
Save the specified Filter object to the database.

Returns:
the Filter object saved.
Throws:
java.lang.Exception

updateFilter

public final int updateFilter(Filter filter,
                              FilterSearchData searchData)
                       throws java.lang.Exception
Update all Filter objects matching the specified search criteria. The number of records that was actually updated is returned.

Returns:
the number of records that was updated.
Throws:
java.lang.Exception

updateFilters

public final int updateFilters(java.util.Set filterIds,
                               Filter filter)
                        throws java.lang.Exception
Updated the specified Filter objects with the values in the specified filter object.

Throws:
java.lang.Exception

ThinkUI SQL Client 1.1.3 API

Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.