/[classpath]/classpath/java/sql/Array.java
ViewVC logotype

Diff of /classpath/java/sql/Array.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7.2.1 by gnu_andrew, Tue Aug 2 20:12:26 2005 UTC revision 1.7.2.2 by tromey, Sun Nov 27 15:24:16 2005 UTC
# Line 50  public interface Array Line 50  public interface Array
50     * Returns the name of the SQL type of the elements in this     * Returns the name of the SQL type of the elements in this
51     * array.  This name is database specific.     * array.  This name is database specific.
52     *     *
53     * @param The name of the SQL type of the elements in this array.     * @return The name of the SQL type of the elements in this array.
54     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
55     */     */
56    String getBaseTypeName() throws SQLException;    String getBaseTypeName() throws SQLException;
# Line 84  public interface Array Line 84  public interface Array
84     * @return The contents of the array as an array of Java objects.     * @return The contents of the array as an array of Java objects.
85     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
86     */     */
87    Object getArray(Map map) throws SQLException;    Object getArray(Map<String, Class<?>> map) throws SQLException;
88    
89    /**    /**
90     * Returns a portion of this array starting at <code>index</code>     * Returns a portion of this array starting at <code>index</code>
# Line 94  public interface Array Line 94  public interface Array
94     * The object returned will be an array of Java objects of     * The object returned will be an array of Java objects of
95     * the appropriate types.     * the appropriate types.
96     *     *
97     * @param offset The offset into this array to start returning elements from.     * @param index The offset into this array to start returning elements from.
98     * @param count The requested number of elements to return.     * @param count The requested number of elements to return.
99     * @return The requested portion of the array.     * @return The requested portion of the array.
100     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
# Line 110  public interface Array Line 110  public interface Array
110     * <code>Map</code> will be used for overriding selected SQL type to     * <code>Map</code> will be used for overriding selected SQL type to
111     * Java class mappings.     * Java class mappings.
112     *     *
113     * @param offset The offset into this array to start returning elements from.     * @param index The offset into this array to start returning elements from.
114     * @param count The requested number of elements to return.     * @param count The requested number of elements to return.
115     * @param map A mapping of SQL types to Java classes.     * @param map A mapping of SQL types to Java classes.
116     * @return The requested portion of the array.     * @return The requested portion of the array.
117     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
118     */     */
119    Object getArray(long index, int count, Map map) throws SQLException;    Object getArray(long index, int count, Map<String, Class<?>> map)
120        throws SQLException;
121    
122    /**    /**
123     * Returns the elements in the array as a <code>ResultSet</code>.     * Returns the elements in the array as a <code>ResultSet</code>.
# Line 143  public interface Array Line 144  public interface Array
144     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
145     * @see ResultSet     * @see ResultSet
146     */     */
147    ResultSet getResultSet(Map map) throws SQLException;    ResultSet getResultSet(Map<String, Class<?>> map) throws SQLException;
148    
149    /**    /**
150     * This method returns a portion of the array as a <code>ResultSet</code>.     * This method returns a portion of the array as a <code>ResultSet</code>.
# Line 154  public interface Array Line 155  public interface Array
155     * the index into the array of that row's contents.  The second will be     * the index into the array of that row's contents.  The second will be
156     * the actual value of that array element.     * the actual value of that array element.
157     *     *
158     * @param offset The index into the array to start returning elements from.     * @param index The index into the array to start returning elements from.
159     * @param length The requested number of elements to return.     * @param count The requested number of elements to return.
160     * @return The requested elements of this array as a <code>ResultSet</code>.     * @return The requested elements of this array as a <code>ResultSet</code>.
161     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
162     * @see ResultSet     * @see ResultSet
# Line 173  public interface Array Line 174  public interface Array
174     * will be used to override selected default mappings of SQL types to     * will be used to override selected default mappings of SQL types to
175     * Java classes.</p>     * Java classes.</p>
176     *     *
177     * @param offset The index into the array to start returning elements from.     * @param index The index into the array to start returning elements from.
178     * @param length The requested number of elements to return.     * @param count The requested number of elements to return.
179     * @param map A mapping of SQL types to Java classes.     * @param map A mapping of SQL types to Java classes.
180     * @return The requested elements of this array as a <code>ResultSet</code>.     * @return The requested elements of this array as a <code>ResultSet</code>.
181     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.

Legend:
Removed from v.1.7.2.1  
changed lines
  Added in v.1.7.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26