summaryrefslogtreecommitdiff
path: root/java/demo/Database/library/BookI.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2008-08-18 14:22:36 -0230
committerMatthew Newhook <matthew@zeroc.com>2008-08-18 14:22:36 -0230
commitc9423fa34639713ca1b248551efca97e7f0eea12 (patch)
tree94808ca61debcd0bf29f622264b09eb4a0c91b53 /java/demo/Database/library/BookI.java
parentSQL setup is now more automatic. (diff)
downloadice-c9423fa34639713ca1b248551efca97e7f0eea12.tar.bz2
ice-c9423fa34639713ca1b248551efca97e7f0eea12.tar.xz
ice-c9423fa34639713ca1b248551efca97e7f0eea12.zip
minor cleanups.
Diffstat (limited to 'java/demo/Database/library/BookI.java')
-rw-r--r--java/demo/Database/library/BookI.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/java/demo/Database/library/BookI.java b/java/demo/Database/library/BookI.java
index 5c75953b579..306b04650c0 100644
--- a/java/demo/Database/library/BookI.java
+++ b/java/demo/Database/library/BookI.java
@@ -16,7 +16,7 @@ class BookI extends _BookDisp
public void
ice_ping(Ice.Current current)
{
- RequestContext context = RequestContext.getCurrentContext();
+ SQLRequestContext context = SQLRequestContext.getCurrentContext();
assert context != null;
Integer id = new Integer(current.id.name);
@@ -43,7 +43,7 @@ class BookI extends _BookDisp
public BookDescription
describe(Ice.Current current)
{
- RequestContext context = RequestContext.getCurrentContext();
+ SQLRequestContext context = SQLRequestContext.getCurrentContext();
assert context != null;
Integer id = new Integer(current.id.name);
@@ -71,7 +71,7 @@ class BookI extends _BookDisp
public void
destroy(Ice.Current current)
{
- RequestContext context = RequestContext.getCurrentContext();
+ SQLRequestContext context = SQLRequestContext.getCurrentContext();
assert context != null;
Integer id = new Integer(current.id.name);
@@ -99,7 +99,7 @@ class BookI extends _BookDisp
getRenter(Ice.Current current)
throws BookNotRentedException
{
- RequestContext context = RequestContext.getCurrentContext();
+ SQLRequestContext context = SQLRequestContext.getCurrentContext();
assert context != null;
Integer id = new Integer(current.id.name);
@@ -140,7 +140,7 @@ class BookI extends _BookDisp
rentBook(String name, Ice.Current current)
throws BookRentedException
{
- RequestContext context = RequestContext.getCurrentContext();
+ SQLRequestContext context = SQLRequestContext.getCurrentContext();
assert context != null;
Integer id = new Integer(current.id.name);
@@ -209,7 +209,7 @@ class BookI extends _BookDisp
returnBook(Ice.Current current)
throws BookNotRentedException
{
- RequestContext context = RequestContext.getCurrentContext();
+ SQLRequestContext context = SQLRequestContext.getCurrentContext();
assert context != null;
Integer id = new Integer(current.id.name);
try
@@ -257,7 +257,7 @@ class BookI extends _BookDisp
}
static BookDescription
- extractDescription(RequestContext context, java.sql.ResultSet rs, Ice.ObjectAdapter adapter)
+ extractDescription(SQLRequestContext context, java.sql.ResultSet rs, Ice.ObjectAdapter adapter)
throws java.sql.SQLException
{
Integer id = rs.getInt("id");