ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class DbVersionDAO

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

public class DbVersionDAO
extends AbstractDAO

Implements the DbVersionDAO Data Access Object.


Constructor Summary
DbVersionDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          DbVersionDAO constructor.
 
Method Summary
 AttributeType createDbVersionEnumType()
           
 void deleteDbVersion(java.lang.Object dbVersionId)
          Delete the specified DbVersion object from the database.
 int deleteDbVersions(java.util.Set dbVersionIds)
          Delete the specified DbVersion objects from the database.
 SearchResultsData findDbVersion(DbVersionSearchData searchData)
          Find all DbVersion records matching the specified criteria.
 DbVersion getDbVersion(java.lang.Object dbVersionId)
          Get the DbVersion object for the specified object id.
 DbVersion insertDbVersion(DbVersion dbVersion)
          Insert the specified DbVersion object into the database.
 void insertDbVersionNoSync(DbVersion dbVersion)
          Insert the specified DbVersion object to the database.
 DbVersion saveDbVersion(DbVersion dbVersion)
          Save the specified DbVersion object to the database.
 int updateDbVersion(DbVersion dbVersion, DbVersionSearchData searchData)
          Update all DbVersion objects matching the specified search criteria.
 int updateDbVersions(java.util.Set dbVersionIds, DbVersion dbVersion)
          Updated the specified DbVersion objects with the values in the specified dbVersion 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

DbVersionDAO

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

Method Detail

createDbVersionEnumType

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

deleteDbVersion

public final void deleteDbVersion(java.lang.Object dbVersionId)
                           throws java.lang.Exception
Delete the specified DbVersion object from the database.

Throws:
java.lang.Exception

deleteDbVersions

public final int deleteDbVersions(java.util.Set dbVersionIds)
                           throws java.lang.Exception
Delete the specified DbVersion objects from the database.

Throws:
java.lang.Exception

findDbVersion

public final SearchResultsData findDbVersion(DbVersionSearchData searchData)
                                      throws java.lang.Exception
Find all DbVersion records matching the specified criteria.

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

getDbVersion

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

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

insertDbVersion

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

Throws:
java.lang.Exception

insertDbVersionNoSync

public final void insertDbVersionNoSync(DbVersion dbVersion)
                                 throws java.lang.Exception
Insert the specified DbVersion object to the database.

Throws:
java.lang.Exception

saveDbVersion

public final DbVersion saveDbVersion(DbVersion dbVersion)
                              throws java.lang.Exception
Save the specified DbVersion object to the database.

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

updateDbVersion

public final int updateDbVersion(DbVersion dbVersion,
                                 DbVersionSearchData searchData)
                          throws java.lang.Exception
Update all DbVersion 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

updateDbVersions

public final int updateDbVersions(java.util.Set dbVersionIds,
                                  DbVersion dbVersion)
                           throws java.lang.Exception
Updated the specified DbVersion objects with the values in the specified dbVersion object.

Throws:
java.lang.Exception

ThinkUI SQL Client 1.1.3 API

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