ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class DataRelationshipDAO

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

public class DataRelationshipDAO
extends AbstractDAO

Implements the DataRelationshipDAO Data Access Object.


Constructor Summary
DataRelationshipDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          DataRelationshipDAO constructor.
 
Method Summary
 AttributeType createDataRelationshipEnumType()
           
 void deleteDataRelationship(java.lang.Object dataRelationshipId)
          Delete the specified DataRelationship object from the database.
 int deleteDataRelationships(java.util.Set dataRelationshipIds)
          Delete the specified DataRelationship objects from the database.
 SearchResultsData findDataRelationship(DataRelationshipSearchData searchData)
          Find all DataRelationship records matching the specified criteria.
 DataRelationship getDataRelationship(java.lang.Object dataRelationshipId)
          Get the DataRelationship object for the specified object id.
 void insertDataRelationship(DataRelationship dataRelationship)
          Insert the specified DataRelationship object to the database.
 DataRelationship saveDataRelationship(DataRelationship dataRelationship)
          Save the specified DataRelationship object to the database.
 int updateDataRelationship(DataRelationship dataRelationship, DataRelationshipSearchData searchData)
          Update all DataRelationship objects matching the specified search criteria.
 int updateDataRelationships(java.util.Set dataRelationshipIds, DataRelationship dataRelationship)
          Updated the specified DataRelationship objects with the values in the specified dataRelationship 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

DataRelationshipDAO

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

Method Detail

createDataRelationshipEnumType

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

deleteDataRelationship

public final void deleteDataRelationship(java.lang.Object dataRelationshipId)
                                  throws java.lang.Exception
Delete the specified DataRelationship object from the database.

Throws:
java.lang.Exception

deleteDataRelationships

public final int deleteDataRelationships(java.util.Set dataRelationshipIds)
                                  throws java.lang.Exception
Delete the specified DataRelationship objects from the database.

Throws:
java.lang.Exception

findDataRelationship

public final SearchResultsData findDataRelationship(DataRelationshipSearchData searchData)
                                             throws java.lang.Exception
Find all DataRelationship records matching the specified criteria.

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

getDataRelationship

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

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

insertDataRelationship

public final void insertDataRelationship(DataRelationship dataRelationship)
                                  throws java.lang.Exception
Insert the specified DataRelationship object to the database.

Throws:
java.lang.Exception

saveDataRelationship

public final DataRelationship saveDataRelationship(DataRelationship dataRelationship)
                                            throws java.lang.Exception
Save the specified DataRelationship object to the database.

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

updateDataRelationship

public final int updateDataRelationship(DataRelationship dataRelationship,
                                        DataRelationshipSearchData searchData)
                                 throws java.lang.Exception
Update all DataRelationship 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

updateDataRelationships

public final int updateDataRelationships(java.util.Set dataRelationshipIds,
                                         DataRelationship dataRelationship)
                                  throws java.lang.Exception
Updated the specified DataRelationship objects with the values in the specified dataRelationship object.

Throws:
java.lang.Exception

ThinkUI SQL Client 1.1.3 API

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