ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class DataAttributeDAO

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

public class DataAttributeDAO
extends AbstractDAO

Implements the DataAttributeDAO Data Access Object.


Constructor Summary
DataAttributeDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          DataAttributeDAO constructor.
 
Method Summary
 AttributeType createDataAttributeEnumType()
           
 void deleteDataAttribute(java.lang.Object dataAttributeId)
          Delete the specified DataAttribute object from the database.
 int deleteDataAttributes(java.util.Set dataAttributeIds)
          Delete the specified DataAttribute objects from the database.
 SearchResultsData findDataAttribute(DataAttributeSearchData searchData)
          Find all DataAttribute records matching the specified criteria.
 DataAttribute getDataAttribute(java.lang.Object dataAttributeId)
          Get the DataAttribute object for the specified object id.
 DataAttribute saveDataAttribute(DataAttribute dataAttribute)
          Save the specified DataAttribute object to the database.
 int updateDataAttributes(java.util.Set dataAttributeIds, DataAttribute dataAttribute)
          Updated the specified DataAttribute objects with the values in the specified dataAttribute 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

DataAttributeDAO

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

Method Detail

createDataAttributeEnumType

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

deleteDataAttribute

public final void deleteDataAttribute(java.lang.Object dataAttributeId)
                               throws java.lang.Exception
Delete the specified DataAttribute object from the database.

Throws:
java.lang.Exception

deleteDataAttributes

public final int deleteDataAttributes(java.util.Set dataAttributeIds)
                               throws java.lang.Exception
Delete the specified DataAttribute objects from the database.

Throws:
java.lang.Exception

findDataAttribute

public final SearchResultsData findDataAttribute(DataAttributeSearchData searchData)
                                          throws java.lang.Exception
Find all DataAttribute records matching the specified criteria.

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

getDataAttribute

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

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

saveDataAttribute

public final DataAttribute saveDataAttribute(DataAttribute dataAttribute)
                                      throws java.lang.Exception
Save the specified DataAttribute object to the database.

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

updateDataAttributes

public final int updateDataAttributes(java.util.Set dataAttributeIds,
                                      DataAttribute dataAttribute)
                               throws java.lang.Exception
Updated the specified DataAttribute objects with the values in the specified dataAttribute object.

Throws:
java.lang.Exception

ThinkUI SQL Client 1.1.3 API

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