ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class DataModelDAO

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

public class DataModelDAO
extends AbstractDAO

Implements the DataModelDAO Data Access Object.


Constructor Summary
DataModelDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          DataModelDAO constructor.
 
Method Summary
 AttributeType createDataModelEnumType()
           
 void deleteDataModel(java.lang.Object dataModelId)
          Delete the specified DataModel object from the database.
 int deleteDataModels(java.util.Set dataModelIds)
          Delete the specified DataModel objects from the database.
 SearchResultsData findDataModel(DataModelSearchData searchData)
          Find all DataModel records matching the specified criteria.
 DataModel findDataModelByName(java.lang.String modelName)
          Helper method to find the DataModel for the given dataModelName or return null.
 DataModel getDataModel(java.lang.Object dataModelId)
          Get the DataModel object for the specified object id.
 DataModel saveDataModel(DataModel dataModel)
          Save the specified DataModel object to the database.
 int updateDataModels(java.util.Set dataModelIds, DataModel dataModel)
          Updated the specified DataModel objects with the values in the specified dataModel 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

DataModelDAO

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

Method Detail

createDataModelEnumType

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

deleteDataModel

public final void deleteDataModel(java.lang.Object dataModelId)
                           throws java.lang.Exception
Delete the specified DataModel object from the database.

Throws:
java.lang.Exception

deleteDataModels

public final int deleteDataModels(java.util.Set dataModelIds)
                           throws java.lang.Exception
Delete the specified DataModel objects from the database.

Throws:
java.lang.Exception

findDataModel

public final SearchResultsData findDataModel(DataModelSearchData searchData)
                                      throws java.lang.Exception
Find all DataModel records matching the specified criteria.

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

findDataModelByName

public final DataModel findDataModelByName(java.lang.String modelName)
                                    throws java.lang.Exception
Helper method to find the DataModel for the given dataModelName or return null.

Throws:
java.lang.Exception

getDataModel

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

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

saveDataModel

public final DataModel saveDataModel(DataModel dataModel)
                              throws java.lang.Exception
Save the specified DataModel object to the database.

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

updateDataModels

public final int updateDataModels(java.util.Set dataModelIds,
                                  DataModel dataModel)
                           throws java.lang.Exception
Updated the specified DataModel objects with the values in the specified dataModel object.

Throws:
java.lang.Exception

ThinkUI SQL Client 1.1.3 API

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