Code example for Connection

Methods: createStatement, isClosed, setAutoCommit, setTransactionIsolation

0
  } 
 
  public Connection getDBConn()
  	throws SQLException 
  { 
	if ( (null == _bootstrapConn) || (_bootstrapConn.isClosed()))
	{ 
		createNewBootstrapConnection(); 
	} 
    return _bootstrapConn;
  } 
 
  public String getSrcTableName(int srcId)
  { 
    return "tab_" + srcId;
  } 
 
  public String getLogTableNameToProduce(int srcId) throws SQLException
  { 
    return "log_" + srcId + "_" + getProducerLogId(srcId);
  }