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

org.colimas.db.mapper.DbMapper Class Reference

Inheritance diagram for org.colimas.db.mapper.DbMapper:

org.colimas.mapper.BatchEntityMapper org.colimas.mapper.ComponentEntityMapper org.colimas.mapper.LogEntityMapper org.colimas.mapper.ProjectComponentMapper org.colimas.mapper.ProjectEntityMapper org.colimas.mapper.RoleEntityMapper org.colimas.mapper.SCMEntityMapper org.colimas.mapper.StatisticsEntityMapper org.colimas.mapper.UserEntityMapper org.colimas.mapper.WebServiceEntityMapper List of all members.

Public Member Functions

 DbMapper ()
abstract List doQuery (I_Query query)

Protected Member Functions

List getEntityList (String sql) throws Exception
I_Entity getEntity (String sql) throws Exception
int updateEntity (String sql) throws Exception
int updateEntityBatch (List sqllist) throws Exception
abstract I_Entity createEntity (ResultSet rs) throws Exception
int updateEntity (String sql, List column) throws Exception
int updateEntity (String sql, List column, Object key) throws Exception
int updateEntity (String sql, List column, Object key, boolean isAutoCommit) throws Exception

Protected Attributes

Connection conn = null

Detailed Description

DbMapper

Function:
An abstract class for mapping between DB tables and Entity classes.

Author:
zhao lei
Version:
1.3
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
 


Constructor & Destructor Documentation

org.colimas.db.mapper.DbMapper.DbMapper  ) 
 

the default construtor


Member Function Documentation

abstract I_Entity org.colimas.db.mapper.DbMapper.createEntity ResultSet  rs  )  throws Exception [protected, pure virtual]
 

Map ResultSet into special entity iColimasEntity)

Parameters:
rs result
Returns:
ColimasEntity
Since:

Implemented in org.colimas.mapper.BatchEntityMapper, org.colimas.mapper.ComponentEntityMapper, org.colimas.mapper.LogEntityMapper, org.colimas.mapper.ProjectComponentMapper, org.colimas.mapper.ProjectEntityMapper, org.colimas.mapper.RoleEntityMapper, org.colimas.mapper.SCMEntityMapper, org.colimas.mapper.StatisticsEntityMapper, org.colimas.mapper.UserEntityMapper, and org.colimas.mapper.WebServiceEntityMapper.

abstract List org.colimas.db.mapper.DbMapper.doQuery I_Query  query  )  [pure virtual]
 

Do query, abstract method.

Parameters:
query 
Returns:
list of return.

Implemented in org.colimas.mapper.BatchEntityMapper, org.colimas.mapper.ComponentEntityMapper, org.colimas.mapper.LogEntityMapper, org.colimas.mapper.ProjectComponentMapper, org.colimas.mapper.ProjectEntityMapper, org.colimas.mapper.RoleEntityMapper, org.colimas.mapper.SCMEntityMapper, org.colimas.mapper.StatisticsEntityMapper, org.colimas.mapper.UserEntityMapper, and org.colimas.mapper.WebServiceEntityMapper.

I_Entity org.colimas.db.mapper.DbMapper.getEntity String  sql  )  throws Exception [protected]
 

get One result

Parameters:
sql 
Returns:
Entity of result
Since:

List org.colimas.db.mapper.DbMapper.getEntityList String  sql  )  throws Exception [protected]
 

get SELECT results

Parameters:
SELECT sentence
Returns:
list of result.
Since:

int org.colimas.db.mapper.DbMapper.updateEntity String  sql,
List  column,
Object  key,
boolean  isAutoCommit
throws Exception [protected]
 

Execute SQL INSERT,UPDATE,DELETE

Parameters:
sql 
column 
key 
isAutoCommit 
Returns:
Exceptions:
Exception autocommit

int org.colimas.db.mapper.DbMapper.updateEntity String  sql,
List  column,
Object  key
throws Exception [protected]
 

Execute SQL INSERT,UPDATE,DELETE

See also:
DbMapper.updateEntity(String sql,List column,Object key,boolean isAutoCommit)

int org.colimas.db.mapper.DbMapper.updateEntity String  sql,
List  column
throws Exception [protected]
 

Execute SQL INSERT,UPDATE,DELETE

See also:
DbMapper.updateEntity(String sql,List column,Object key,boolean isAutoCommit)

int org.colimas.db.mapper.DbMapper.updateEntity String  sql  )  throws Exception [protected]
 

SQL Execute INSERT,UPDATE,DELETE

Parameters:
sql 
Returns:
row num of updated records.
Since:

int org.colimas.db.mapper.DbMapper.updateEntityBatch List  sqllist  )  throws Exception [protected]
 

execute batch command

Parameters:
sqllist SQL list
Returns:
total updated num
Since:


Member Data Documentation

Connection org.colimas.db.mapper.DbMapper.conn = null [protected]
 

class name


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