Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 23539 Details for
Bug 100797
editor general failure
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Compile this code
X.java (text/plain), 1.00 KB, created by
Olivier Thomann
on 2005-06-20 09:20:07 EDT
(
hide
)
Description:
Compile this code
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-06-20 09:20:07 EDT
Size:
1.00 KB
patch
obsolete
>public class X { > public static void notif(DomWrapper xml, int notifType) throws DatabaseErrorException > CallableStatement st = null; > ResultSet rs = null; > Connection con = null; > int tempInt = -1; > String tempStr = null; > int index = 0; > String prefix = "notif: type(" + notifType +")"; > try { > con = DataSourceManager.getConnection(); > String sql = null; > > st =con.prepareCall(sql); > > tempInt = xml.getAttAsInt(FulfillmentParser.SHIPMENT_ID); > st.setInt(++index, tempInt) ; > > > st.registerOutParameter(++index, Types.VARCHAR); > st.execute(); > String status = st.getString(index); > if ( !OK.equals(status) ) > throw new DatabaseErrorException(prefix + " Fail to insert record to db " + status ,status); > > } catch (SQLException e) { > Debugger.error(prefix + " Fail insert record to db xml = " + xml, e); > throw new DatabaseErrorException(prefix " Fail to insert record to db " + e.getMessage()); > } > finally > { > close(con, st); > } > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 100797
: 23539 |
23611