ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class DataClassDAO

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

public class DataClassDAO
extends AbstractDAO

Implements the DataClassDAO Data Access Object.


Constructor Summary
DataClassDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          DataClassDAO constructor.
 
Method Summary
 AttributeType createDataClassEnumType()
           
 void deleteDataClass(java.lang.Object dataClassId)
          Delete the specified DataClass object from the database.
 int deleteDataClasses(java.util.Set dataClassIds)
          Delete the specified DataClass objects from the database.
 SearchResultsData findDataClass(DataClassSearchData searchData)
          Find all DataClass records matching the specified criteria.
 DataClass findDataClassByName(java.lang.Object dataModelId, java.lang.String dataClassFullName)
          Helper method to find the DataClass for the given dataClassFullName or return null.
 DataClass getDataClass(java.lang.Object dataClassId)
          Get the DataClass object for the specified object id.
 DataClass saveDataClass(DataClass dataClass)
          Save the specified DataClass object to the database.
 int updateDataClasses(java.util.Set dataClassIds, DataClass dataClass)
          Updated the specified DataClass objects with the values in the specified dataClass 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

DataClassDAO

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

Method Detail

createDataClassEnumType

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

deleteDataClass

public final void deleteDataClass(java.lang.Object dataClassId)
                           throws java.lang.Exception
Delete the specified DataClass object from the database.

Throws:
java.lang.Exception

deleteDataClasses

public final int deleteDataClasses(java.util.Set dataClassIds)
                            throws java.lang.Exception
Delete the specified DataClass objects from the database.

Throws:
java.lang.Exception

findDataClass

public final SearchResultsData findDataClass(DataClassSearchData searchData)
                                      throws java.lang.Exception
Find all DataClass records matching the specified criteria.

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

findDataClassByName

public final DataClass findDataClassByName(java.lang.Object dataModelId,
                                           java.lang.String dataClassFullName)
                                    throws java.lang.Exception
Helper method to find the DataClass for the given dataClassFullName or return null.

Throws:
java.lang.Exception

getDataClass

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

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

saveDataClass

public final DataClass saveDataClass(DataClass dataClass)
                              throws java.lang.Exception
Save the specified DataClass object to the database.

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

updateDataClasses

public final int updateDataClasses(java.util.Set dataClassIds,
                                   DataClass dataClass)
                            throws java.lang.Exception
Updated the specified DataClass objects with the values in the specified dataClass object.

Throws:
java.lang.Exception

ThinkUI SQL Client 1.1.3 API

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