ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class DbConnectionDAO

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

public class DbConnectionDAO
extends AbstractDAO

Implements the DbConnectionDAO Data Access Object.


Constructor Summary
DbConnectionDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          DbConnectionDAO constructor.
 
Method Summary
 AttributeType createDbConnectionEnumType()
           
 void deleteDbConnection(java.lang.Object dbConnectionId)
          Delete the specified DbConnection object from the database.
 int deleteDbConnections(java.util.Set dbConnectionIds)
          Delete the specified DbConnection objects from the database.
 SearchResultsData findDbConnection(DbConnectionSearchData searchData)
          Find all DbConnection records matching the specified criteria.
 DbConnection getDbConnection(java.lang.Object dbConnectionId)
          Get the DbConnection object for the specified object id.
 DbConnection getDbConnectionByName(java.lang.String connectionName)
          Find the DbConnection object for the specified connection name.
 void insertDbConnection(DbConnection dbConnection)
          Insert the specified DbConnection object to the database.
 DbConnection saveDbConnection(DbConnection dbConnection)
          Save the specified DbConnection object to the database.
 int updateDbConnection(DbConnection dbConnection, DbConnectionSearchData searchData)
          Update all the DbConnection objects matching the specified search criteria.
 int updateDbConnections(java.util.Set dbConnectionIds, DbConnection dbConnection)
          Updated the specified DbConnection objects with the values in the specified dbConnection 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

DbConnectionDAO

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

Method Detail

createDbConnectionEnumType

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

deleteDbConnection

public final void deleteDbConnection(java.lang.Object dbConnectionId)
                              throws java.lang.Exception
Delete the specified DbConnection object from the database.

Throws:
java.lang.Exception

deleteDbConnections

public final int deleteDbConnections(java.util.Set dbConnectionIds)
                              throws java.lang.Exception
Delete the specified DbConnection objects from the database.

Throws:
java.lang.Exception

findDbConnection

public final SearchResultsData findDbConnection(DbConnectionSearchData searchData)
                                         throws java.lang.Exception
Find all DbConnection records matching the specified criteria.

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

getDbConnection

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

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

getDbConnectionByName

public final DbConnection getDbConnectionByName(java.lang.String connectionName)
                                         throws java.lang.Exception
Find the DbConnection object for the specified connection name.

Returns:
the DbConnection object for the specified connection name.
Throws:
java.lang.Exception

insertDbConnection

public final void insertDbConnection(DbConnection dbConnection)
                              throws java.lang.Exception
Insert the specified DbConnection object to the database.

Throws:
java.lang.Exception

saveDbConnection

public final DbConnection saveDbConnection(DbConnection dbConnection)
                                    throws java.lang.Exception
Save the specified DbConnection object to the database.

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

updateDbConnection

public final int updateDbConnection(DbConnection dbConnection,
                                    DbConnectionSearchData searchData)
                             throws java.lang.Exception
Update all the DbConnection 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

updateDbConnections

public final int updateDbConnections(java.util.Set dbConnectionIds,
                                     DbConnection dbConnection)
                              throws java.lang.Exception
Updated the specified DbConnection objects with the values in the specified dbConnection object.

Throws:
java.lang.Exception

ThinkUI SQL Client 1.1.3 API

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