ThinkUI SQL Client 1.1.3 API

thinkui.sqlclient.dao
Class TemplateFileDAO

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

public class TemplateFileDAO
extends AbstractDAO

Implements the TemplateFileDAO Data Access Object.


Constructor Summary
TemplateFileDAO(thinkui.db.dao.DataObjectManager dataObjectManager)
          TemplateFileDAO constructor.
 
Method Summary
 AttributeType createTemplateFileEnumType()
           
 void deleteTemplateFile(java.lang.Object templateFileId)
          Delete the specified TemplateFile object from the database.
 int deleteTemplateFiles(java.util.Set templateFileIds)
          Delete the specified TemplateFile objects from the database.
 SearchResultsData findTemplateFile(TemplateFileSearchData searchData)
          Find all TemplateFile records matching the specified criteria.
 TemplateFile getTemplateFile(java.lang.Object templateFileId)
          Get the TemplateFile object for the specified object id.
 void insertTemplateFile(TemplateFile templateFile)
          Insert the specified TemplateFile object to the database.
 TemplateFile saveTemplateFile(TemplateFile templateFile)
          Save the specified TemplateFile object to the database.
 int updateTemplateFile(TemplateFile templateFile, TemplateFileSearchData searchData)
          Update all TemplateFile objects matching the specified search criteria.
 int updateTemplateFiles(java.util.Set templateFileIds, TemplateFile templateFile)
          Updated the specified TemplateFile objects with the values in the specified templateFile 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

TemplateFileDAO

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

Method Detail

createTemplateFileEnumType

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

deleteTemplateFile

public final void deleteTemplateFile(java.lang.Object templateFileId)
                              throws java.lang.Exception
Delete the specified TemplateFile object from the database.

Throws:
java.lang.Exception

deleteTemplateFiles

public final int deleteTemplateFiles(java.util.Set templateFileIds)
                              throws java.lang.Exception
Delete the specified TemplateFile objects from the database.

Throws:
java.lang.Exception

findTemplateFile

public final SearchResultsData findTemplateFile(TemplateFileSearchData searchData)
                                         throws java.lang.Exception
Find all TemplateFile records matching the specified criteria.

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

getTemplateFile

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

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

insertTemplateFile

public final void insertTemplateFile(TemplateFile templateFile)
                              throws java.lang.Exception
Insert the specified TemplateFile object to the database.

Throws:
java.lang.Exception

saveTemplateFile

public final TemplateFile saveTemplateFile(TemplateFile templateFile)
                                    throws java.lang.Exception
Save the specified TemplateFile object to the database.

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

updateTemplateFile

public final int updateTemplateFile(TemplateFile templateFile,
                                    TemplateFileSearchData searchData)
                             throws java.lang.Exception
Update all TemplateFile 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

updateTemplateFiles

public final int updateTemplateFiles(java.util.Set templateFileIds,
                                     TemplateFile templateFile)
                              throws java.lang.Exception
Updated the specified TemplateFile objects with the values in the specified templateFile object.

Throws:
java.lang.Exception

ThinkUI SQL Client 1.1.3 API

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