ResultSet cursor
rs.next()
rs.next()
rs.next()
rs.next()
rs.next()
null
The last next() method invocation returns false, and the rs instance is now null.
The first next() method invocation returns true, and rs points to the first row of data.
The hard-coded JDBC URL, username, and password is just for this simple example.
Loop through all of the rows in the ResultSet.
Vendor-dependent state codes, error codes and messages
Note that these methods are indexed from 1, not 0.
Move the cursor to the last row, this method returns false if the ResultSet is empty.
Returning the row cursor to its original position before the call is a good practice.
Substitutes value for the first parameter in the prepared statement.
Parameter for substitution.
The IN parameter is passed in to the stored procedure.
The OUT parameter is returned from the stored procedure.
$1000
+$100
$1100
$500
-$100
$400
2) Deposit: $100
1) Withdraw: $100
Transfer: $100
From: Acct 1
To: Acct 2
ATM
Account 1
Account 2
$1000
$500
-$100
$400
1) Withdraw: $100
Transfer: $100
From: Acct 1
To: Acct 2
ATM
A
B
Failed
Deposit
Bank
Bank
Account 1
Account 2
$1100
$400
Commit
Transfer
Successful
Commit
$1000
+$100
$1100
$500
-$100
$400
2) Deposit: $100
1) Withdraw: $100
Transfer: $100
From: Acct 1
To: Acct 2
ATM
Account 1
Account 2
A
Bank
Transaction Started by Bank
Account 1
Account 2
ATM
B
Bank
Transaction Started by Bank
$500
-$100
$400
1) Withdraw: $100
Transfer: $100
From: Acct 1
To: Acct 2
ATM
Account 1
Account 2
A
Bank
Transaction Started by Bank
$1000
Failed
Deposit
$1000
$500
Rollback
Error Message
Rollback
ATM
B
Bank
Transaction Started by Bank
Account 1
Account 2
Если не удалось найти и скачать презентацию, Вы можете заказать его на нашем сайте. Мы постараемся найти нужный Вам материал и отправим по электронной почте. Не стесняйтесь обращаться к нам, если у вас возникли вопросы или пожелания:
Email: Нажмите что бы посмотреть