Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members | Related Pages

org.colimas.mapper.ComponentEntityMapper Class Reference

Inheritance diagram for org.colimas.mapper.ComponentEntityMapper:

org.colimas.db.mapper.DbMapper org.colimas.db.mapper.SQLQueriesCodes List of all members.

Public Member Functions

List doQuery (I_Query query)
int insert (ComponentEntity entity)
int update (ComponentEntity entity, int delete0)
int update (ComponentEntity entity)
int update (ComponentEntity entity, boolean isAutoCommit)
int delete (ComponentEntity entity)

Static Public Member Functions

static ComponentEntityMapper getInstance ()

Protected Member Functions

I_Entity createEntity (ResultSet rs)

Detailed Description

ComponentEntityMapper

Function:
Map ComponentEntity to record TCBI in DB.

Author:
zhao lei
Version:
1.4
Modification History:
 SEQ DATE       ORDER DEVELOPER      DESCRIPTION
 --- ---------- ----- -------------- -----------------------------
 001 2005/09/19       zhao lei       INIT
 002 2005/11/01       zhao lei       Modified Comment
 003 2005/12/03       zhao lei       Changed package name
 004 2006/01/02       zhao lei       coding
 


Member Function Documentation

I_Entity org.colimas.mapper.ComponentEntityMapper.createEntity ResultSet  rs  )  [protected, virtual]
 

Create ComponentEntity

Parameters:
Result of searching
Returns:
ComponentEntity

Implements org.colimas.db.mapper.DbMapper.

int org.colimas.mapper.ComponentEntityMapper.delete ComponentEntity  entity  ) 
 

delete entity

Parameters:
ComponentEntity 
Returns:
updated num
Exceptions:
throw SQLException RuntimeException

List org.colimas.mapper.ComponentEntityMapper.doQuery I_Query  query  )  [virtual]
 

run select

Parameters:
query object
Returns:
get result list

Implements org.colimas.db.mapper.DbMapper.

static ComponentEntityMapper org.colimas.mapper.ComponentEntityMapper.getInstance  )  [static]
 

get Mapper instance(using Singleton Pattern)

Returns:
Mapper Object

int org.colimas.mapper.ComponentEntityMapper.insert ComponentEntity  entity  ) 
 

insert component entity

Parameters:
ComponentEntity 
Returns:
inserted num

int org.colimas.mapper.ComponentEntityMapper.update ComponentEntity  entity,
boolean  isAutoCommit
 

update component entity

Parameters:
entity 
isAutoCommit 
Returns:
updated num

int org.colimas.mapper.ComponentEntityMapper.update ComponentEntity  entity  ) 
 

update component entity

Parameters:
ComponentEntity 
Returns:
updated num

int org.colimas.mapper.ComponentEntityMapper.update ComponentEntity  entity,
int  delete0
 

soft delete/recovery set delete=1 to delete set delete=0 to recovery

Parameters:
delete0 
Returns:
updated num


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 02:04:29 2006 for Colimas by  doxygen 1.4.4