Java Interface Array Introduction _java

Source: Internet
Author: User

public interface Array

The mapping relationship of SQL type ARRAY in the Java programming language. By default, the array value is a transaction period reference to the SQL Array value. By default, the array object is implemented using SQL LOCATOR (array), which means that the array object contains a logical pointer to the data in the SQL array value, not the data that contains the array value. The array interface provides methods for transferring data from a SQL array value as an array or ResultSet object to the client. If the elements of the SQL ARRAY are a UDT, then you can customize the mappings. To create a custom mapping relationship, programmers must do two things:

Creates a class that implements the SqlData interface for a UDT that will be custom mapped.

Generates an item in a Type mapping table that contains the
Fully qualified SQL type name of UDT
Class object that implements SqlData classes

When you provide a type mapping table with an item of the base type to the GetArray and Getresultset methods, the mapping relationship that the table contains will be used to map the elements of the ARRAY value. If you do not provide a type mapping table (usually this is the case), the Type mapping table for the connection is used by default. If the Type mapping table for the connection or the type mapping table provided for a method does not have an item corresponding to the base type, the elements are mapped according to the standard mapping relationship.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.