Note: When createArrayOf
is used to create an array object that maps to a primitive data type, then it is implementation-defined whether the Array
object is an array of that primitive data type or an array of Object
.
Note: The JDBC driver is responsible for mapping the elements Object
array to the default JDBC SQL type defined in java.sql.Types for the given class of Object
. The default mapping is specified in Appendix B of the JDBC specification. If the resulting JDBC type is not the appropriate type for the given typeName then it is implementation defined whether an SQLException
is thrown or the driver supports the resulting conversion.
@param typeName the SQL name of the type the elements of the array map to. The typeName is adatabase-specific name which may be the name of a built-in type, a user-defined type or a standard SQL type supported by this database. This is the value returned by Array.getBaseTypeName
@param elements the elements that populate the returned object
@return an Array object whose elements map to the specified SQL type
@throws SQLException if a database error occurs, the JDBC type is notappropriate for the typeName and the conversion is not supported, the typeName is null or this method is called on a closed connection
@throws SQLFeatureNotSupportedException if the JDBC driver does not support this data type
@since 1.6
|
|
|
|