equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
92 { |
92 { |
93 |
93 |
94 try { |
94 try { |
95 |
95 |
96 // get the type name |
96 // get the type name |
97 SQLTypeName = new String(in.getSQLTypeName()); |
97 SQLTypeName = in.getSQLTypeName(); |
98 System.out.println("SQLTypeName: " + SQLTypeName); |
98 System.out.println("SQLTypeName: " + SQLTypeName); |
99 |
99 |
100 // get the attributes of the struct |
100 // get the attributes of the struct |
101 attribs = in.getAttributes(map); |
101 attribs = in.getAttributes(map); |
102 |
102 |
135 { |
135 { |
136 |
136 |
137 try { |
137 try { |
138 |
138 |
139 //set the type name |
139 //set the type name |
140 SQLTypeName = new String(in.getSQLTypeName()); |
140 SQLTypeName = in.getSQLTypeName(); |
141 |
141 |
142 Vector tmp = new Vector(); |
142 Vector tmp = new Vector(); |
143 in.writeSQL(new SQLOutputImpl(tmp, map)); |
143 in.writeSQL(new SQLOutputImpl(tmp, map)); |
144 attribs = tmp.toArray(); |
144 attribs = tmp.toArray(); |
145 |
145 |
245 } |
245 } |
246 return; |
246 return; |
247 } |
247 } |
248 |
248 |
249 /** |
249 /** |
250 * The identifier that assists in the serialization of this |
250 * The identifier that assists in the serialization of this |
251 * <code>SerialStruct</code> object. |
251 * <code>SerialStruct</code> object. |
252 */ |
252 */ |
253 static final long serialVersionUID = -8322445504027483372L; |
253 static final long serialVersionUID = -8322445504027483372L; |
254 } |
254 } |