ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class DataAttrTypeDAO

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

public class DataAttrTypeDAO
extends AbstractDAO

Implements the DataAttrTypeDAO Data Access Object.


Constructor Summary
DataAttrTypeDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          DataAttrTypeDAO constructor.
 
Method Summary
 java.util.Map buildDataAttrTypeNameIdMap()
          Helper method to build a map of DataAttrType CAPTION -> ID map.
 java.util.Map buildDataAttrTypeValueClassNameIdMap()
          Helper method to build a map of DataAttrType Value Class Name -> ID map.
 AttributeType createDataAttrTypeEnumType()
           
 void deleteDataAttrType(java.lang.Object dataAttrTypeId)
          Delete the specified DataAttrType object from the database.
 int deleteDataAttrTypes(java.util.Set dataAttrTypeIds)
          Delete the specified DataAttrType objects from the database.
 SearchResultsData findDataAttrType(DataAttrTypeSearchData searchData)
          Find all DataAttrType records matching the specified criteria.
 DataAttrType getDataAttrType(java.lang.Object dataAttrTypeId)
          Get the DataAttrType object for the specified object id.
 void insertDataAttrType(DataAttrType dataAttrType)
          Insert the specified DataAttrType object to the database.
 DataAttrType saveDataAttrType(DataAttrType dataAttrType)
          Save the specified DataAttrType object to the database.
 int updateDataAttrTypes(java.util.Set dataAttrTypeIds, DataAttrType dataAttrType)
          Updated the specified DataAttrType objects with the values in the specified dataAttrType 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

DataAttrTypeDAO

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

Method Detail

buildDataAttrTypeNameIdMap

public final java.util.Map buildDataAttrTypeNameIdMap()
                                               throws java.lang.Exception
Helper method to build a map of DataAttrType CAPTION -> ID map. Note: the DataAttrType.NAME column corresponds to the AttributeType class name. Whereas the DataAttrType.CAPTION column corresponds to the AttributeType.getName() value.

Throws:
java.lang.Exception

buildDataAttrTypeValueClassNameIdMap

public final java.util.Map buildDataAttrTypeValueClassNameIdMap()
                                                         throws java.lang.Exception
Helper method to build a map of DataAttrType Value Class Name -> ID map. Note: Since a given Value Class Name may be repeated, we take the "best" match based on the attribute type code.

Throws:
java.lang.Exception

createDataAttrTypeEnumType

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

deleteDataAttrType

public final void deleteDataAttrType(java.lang.Object dataAttrTypeId)
                              throws java.lang.Exception
Delete the specified DataAttrType object from the database.

Throws:
java.lang.Exception

deleteDataAttrTypes

public final int deleteDataAttrTypes(java.util.Set dataAttrTypeIds)
                              throws java.lang.Exception
Delete the specified DataAttrType objects from the database.

Throws:
java.lang.Exception

findDataAttrType

public final SearchResultsData findDataAttrType(DataAttrTypeSearchData searchData)
                                         throws java.lang.Exception
Find all DataAttrType records matching the specified criteria.

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

getDataAttrType

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

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

insertDataAttrType

public final void insertDataAttrType(DataAttrType dataAttrType)
                              throws java.lang.Exception
Insert the specified DataAttrType object to the database.

Throws:
java.lang.Exception

saveDataAttrType

public final DataAttrType saveDataAttrType(DataAttrType dataAttrType)
                                    throws java.lang.Exception
Save the specified DataAttrType object to the database.

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

updateDataAttrTypes

public final int updateDataAttrTypes(java.util.Set dataAttrTypeIds,
                                     DataAttrType dataAttrType)
                              throws java.lang.Exception
Updated the specified DataAttrType objects with the values in the specified dataAttrType object.

Throws:
java.lang.Exception

ThinkUI SQL Client 1.1.3 API

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