Data Access with JDBC¶
Значение, предоставляемое абстракцией JDBC Spring Framework, возможно, лучше всего демонстрируется последовательностью действий, описанной в следующей таблице.
Action |
Spring |
You |
|---|---|---|
Define connection parameters. |
X |
|
Open the connection. |
X |
|
Specify the SQL statement. |
X |
|
Declare parameters and provide |
X |
|
Prepare and run the statement. |
X |
|
Set up the loop to iterate |
X |
|
Do the work for each iteration. |
X |
|
Process any exception. |
X |
|
Handle transactions. |
X |
|
Close the connection, the |
X |
В таблице показано, какие действия выполняет Spring и за какие действия вы отвечаете
Ссылки: