ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class QueryDAO

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

public class QueryDAO
extends AbstractDAO

Implements the QueryDAO Data Access Object.


Constructor Summary
QueryDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          QueryDAO constructor.
 
Method Summary
 AttributeType createQueryEnumType()
           
 int deleteQueries(java.util.Set queryIds)
          Delete the specified Query objects from the database.
 void deleteQuery(java.lang.Object queryId)
          Delete the specified Query object from the database.
 SearchResultsData findQuery(QuerySearchData searchData)
          Find all Query records matching the specified criteria.
 Query getQuery(java.lang.Object queryId)
          Get the Query object for the specified object id.
 Query insertQuery(Query query)
          Insert the specified Query object into the database.
 void insertQueryNoSync(Query query)
          Insert the specified Query object to the database.
 Query saveQuery(Query query)
          Save the specified Query object to the database.
 int updateQueries(java.util.Set queryIds, Query query)
          Updated the specified Query objects with the values in the specified query object.
 int updateQuery(Query query, QuerySearchData searchData)
          Update all Query objects matching the specified search criteria.
 
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

QueryDAO

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

Method Detail

createQueryEnumType

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

deleteQueries

public final int deleteQueries(java.util.Set queryIds)
                        throws java.lang.Exception
Delete the specified Query objects from the database.

Throws:
java.lang.Exception

deleteQuery

public final void deleteQuery(java.lang.Object queryId)
                       throws java.lang.Exception
Delete the specified Query object from the database.

Throws:
java.lang.Exception

findQuery

public final SearchResultsData findQuery(QuerySearchData searchData)
                                  throws java.lang.Exception
Find all Query records matching the specified criteria.

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

getQuery

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

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

insertQuery

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

Throws:
java.lang.Exception

insertQueryNoSync

public final void insertQueryNoSync(Query query)
                             throws java.lang.Exception
Insert the specified Query object to the database.

Throws:
java.lang.Exception

saveQuery

public final Query saveQuery(Query query)
                      throws java.lang.Exception
Save the specified Query object to the database.

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

updateQueries

public final int updateQueries(java.util.Set queryIds,
                               Query query)
                        throws java.lang.Exception
Updated the specified Query objects with the values in the specified query object.

Throws:
java.lang.Exception

updateQuery

public final int updateQuery(Query query,
                             QuerySearchData searchData)
                      throws java.lang.Exception
Update all Query 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

ThinkUI SQL Client 1.1.3 API

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