//////////// Пример 1 /////////////////
void test2(){
Connection con = null;
con = this.getSQLSERVERConnectionPool();
con.setAutoCommit(false);
this.test1(con)
}
void test1 (Connection con){
}
//////////// Пример 2 /////////////////
void test2(){
Connection con = null;
con = this.getSQLSERVERConnectionPool();
con.setAutoCommit(false);
this.test1()
}
void test1 (){
Connection con = null;
con = this.getSQLSERVERConnectionPool();
con.setAutoCommit(false);
}
Пожалуйста, скажите, кто является правильным примером?