src/java.sql/share/classes/javax/sql/XAConnectionBuilder.java
changeset 55448 0f141453b9e0
parent 47216 71c04702a3d5
equal deleted inserted replaced
55447:95794e32352e 55448:0f141453b9e0
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2019, 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
    45  *                           .subkey("PITTSBURGH_BRANCH", JDBCType.VARCHAR)
    45  *                           .subkey("PITTSBURGH_BRANCH", JDBCType.VARCHAR)
    46  *                           .build();
    46  *                           .build();
    47  *     XAConnection con = ds.createXAConnectionBuilder()
    47  *     XAConnection con = ds.createXAConnectionBuilder()
    48  *                       .user("rafa")
    48  *                       .user("rafa")
    49  *                       .password("tennis")
    49  *                       .password("tennis")
    50  *                       .setShardingKey(shardingKey)
    50  *                       .shardingKey(shardingKey)
    51  *                       .setSuperShardingKey(superShardingKey)
    51  *                       .superShardingKey(superShardingKey)
    52  *                       .build();
    52  *                       .build();
    53  * }</pre>
    53  * }</pre>
    54  *
    54  *
    55  * @since 9
    55  * @since 9
    56  *
    56  *