protected void init(){
  try {
    Connection conn=null;
    Trx trx=p_vo.getTrxName() == null ? null : Trx.get(p_vo.getTrxName(),false);
    if (trx != null) {
      conn=trx.getConnection();
    }
 else {
      if (p_vo.getResultSetConcurrency() == ResultSet.CONCUR_UPDATABLE)       m_conn=DB.getConnectionRW();
 else       m_conn=DB.getConnectionRO();
      conn=m_conn;
    }
    if (conn == null)     throw new DBException("No Connection");
    p_stmt=conn.createStatement(p_vo.getResultSetType(),p_vo.getResultSetConcurrency());
  }
 catch (  SQLException e) {
    log.log(Level.SEVERE,"CStatement",e);
    throw new DBException(e);
  }
}

protected void init ( ) { try { Connection conn = null ; Trx trx = p_vo . getTrxName ( ) == null ? null : Trx . get ( p_vo . getTrxName ( ) , false ) ; if ( trx != null ) { conn = trx . getConnection ( ) ; } else { if ( p_vo . getResultSetConcurrency ( ) == ResultSet . CONCUR_UPDATABLE ) m_conn = DB . getConnectionRW ( ) ; else m_conn = DB . getConnectionRO ( ) ; conn = m_conn ; } if ( conn == null ) throw new DBException ( "No Connection" ) ; p_stmt = conn . createStatement ( p_vo . getResultSetType ( ) , p_vo . getResultSetConcurrency ( ) ) ; } catch ( SQLException e ) { log . log ( Level . SEVERE , "CStatement" , e ) ; throw new DBException ( e ) ; } }
initialise the statement wrapper object
