ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class ProjectDAO

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

public class ProjectDAO
extends AbstractDAO

Implements the ProjectDAO Data Access Object.


Constructor Summary
ProjectDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          ProjectDAO constructor.
 
Method Summary
 AttributeType createProjectEnumType()
           
 void deleteProject(java.lang.Object projectId)
          Delete the specified Project object from the database.
 int deleteProjects(java.util.Set projectIds)
          Delete the specified Project objects from the database.
 SearchResultsData findProject(ProjectSearchData searchData)
          Find all Project records matching the specified criteria.
 Project getProject(java.lang.Object projectId)
          Get the Project object for the specified object id.
 Project getProjectByName(java.lang.String projectName)
          Find the Project object for the specified project name.
 Project insertProject(Project project)
          Insert the specified Project object into the database.
 void insertProjectNoSync(Project project)
          Insert the specified Project object to the database.
 Project saveProject(Project project)
          Save the specified Project object to the database.
 int updateProject(Project project, ProjectSearchData searchData)
          Update all Project objects matching the specified search criteria.
 int updateProjects(java.util.Set projectIds, Project project)
          Updated the specified Project objects with the values in the specified project 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

ProjectDAO

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

Method Detail

createProjectEnumType

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

deleteProject

public final void deleteProject(java.lang.Object projectId)
                         throws java.lang.Exception
Delete the specified Project object from the database.

Throws:
java.lang.Exception

deleteProjects

public final int deleteProjects(java.util.Set projectIds)
                         throws java.lang.Exception
Delete the specified Project objects from the database.

Throws:
java.lang.Exception

findProject

public final SearchResultsData findProject(ProjectSearchData searchData)
                                    throws java.lang.Exception
Find all Project records matching the specified criteria.

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

getProject

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

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

getProjectByName

public final Project getProjectByName(java.lang.String projectName)
                               throws java.lang.Exception
Find the Project object for the specified project name.

Returns:
the Project object for the specified project name.
Throws:
java.lang.Exception

insertProject

public final Project insertProject(Project project)
                            throws java.lang.Exception
Insert the specified Project object into the database. Any defaulted columns will be automatically populated and returned.

Throws:
java.lang.Exception

insertProjectNoSync

public final void insertProjectNoSync(Project project)
                               throws java.lang.Exception
Insert the specified Project object to the database.

Throws:
java.lang.Exception

saveProject

public final Project saveProject(Project project)
                          throws java.lang.Exception
Save the specified Project object to the database.

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

updateProject

public final int updateProject(Project project,
                               ProjectSearchData searchData)
                        throws java.lang.Exception
Update all Project 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

updateProjects

public final int updateProjects(java.util.Set projectIds,
                                Project project)
                         throws java.lang.Exception
Updated the specified Project objects with the values in the specified project object.

Throws:
java.lang.Exception

ThinkUI SQL Client 1.1.3 API

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