Skip to content

Commit b550a8a

Browse files
Merge branch 'master' of github.com:dolphindb/api-java
2 parents b4f1e14 + f8326f8 commit b550a8a

File tree

3 files changed

+209
-2
lines changed

3 files changed

+209
-2
lines changed

LICENSE.txt

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<<<<<<< HEAD
12
Copyright 2016-2023 DolphinDB, Inc.
23

34

@@ -202,3 +203,209 @@ Copyright 2016-2023 DolphinDB, Inc.
202203
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203204
See the License for the specific language governing permissions and
204205
limitations under the License.
206+
=======
207+
Copyright 2016-2023 DolphinDB, Inc.
208+
209+
210+
Apache License
211+
Version 2.0, January 2004
212+
http://www.apache.org/licenses/
213+
214+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
215+
216+
1. Definitions.
217+
218+
"License" shall mean the terms and conditions for use, reproduction,
219+
and distribution as defined by Sections 1 through 9 of this document.
220+
221+
"Licensor" shall mean the copyright owner or entity authorized by
222+
the copyright owner that is granting the License.
223+
224+
"Legal Entity" shall mean the union of the acting entity and all
225+
other entities that control, are controlled by, or are under common
226+
control with that entity. For the purposes of this definition,
227+
"control" means (i) the power, direct or indirect, to cause the
228+
direction or management of such entity, whether by contract or
229+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
230+
outstanding shares, or (iii) beneficial ownership of such entity.
231+
232+
"You" (or "Your") shall mean an individual or Legal Entity
233+
exercising permissions granted by this License.
234+
235+
"Source" form shall mean the preferred form for making modifications,
236+
including but not limited to software source code, documentation
237+
source, and configuration files.
238+
239+
"Object" form shall mean any form resulting from mechanical
240+
transformation or translation of a Source form, including but
241+
not limited to compiled object code, generated documentation,
242+
and conversions to other media types.
243+
244+
"Work" shall mean the work of authorship, whether in Source or
245+
Object form, made available under the License, as indicated by a
246+
copyright notice that is included in or attached to the work
247+
(an example is provided in the Appendix below).
248+
249+
"Derivative Works" shall mean any work, whether in Source or Object
250+
form, that is based on (or derived from) the Work and for which the
251+
editorial revisions, annotations, elaborations, or other modifications
252+
represent, as a whole, an original work of authorship. For the purposes
253+
of this License, Derivative Works shall not include works that remain
254+
separable from, or merely link (or bind by name) to the interfaces of,
255+
the Work and Derivative Works thereof.
256+
257+
"Contribution" shall mean any work of authorship, including
258+
the original version of the Work and any modifications or additions
259+
to that Work or Derivative Works thereof, that is intentionally
260+
submitted to Licensor for inclusion in the Work by the copyright owner
261+
or by an individual or Legal Entity authorized to submit on behalf of
262+
the copyright owner. For the purposes of this definition, "submitted"
263+
means any form of electronic, verbal, or written communication sent
264+
to the Licensor or its representatives, including but not limited to
265+
communication on electronic mailing lists, source code control systems,
266+
and issue tracking systems that are managed by, or on behalf of, the
267+
Licensor for the purpose of discussing and improving the Work, but
268+
excluding communication that is conspicuously marked or otherwise
269+
designated in writing by the copyright owner as "Not a Contribution."
270+
271+
"Contributor" shall mean Licensor and any individual or Legal Entity
272+
on behalf of whom a Contribution has been received by Licensor and
273+
subsequently incorporated within the Work.
274+
275+
2. Grant of Copyright License. Subject to the terms and conditions of
276+
this License, each Contributor hereby grants to You a perpetual,
277+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
278+
copyright license to reproduce, prepare Derivative Works of,
279+
publicly display, publicly perform, sublicense, and distribute the
280+
Work and such Derivative Works in Source or Object form.
281+
282+
3. Grant of Patent License. Subject to the terms and conditions of
283+
this License, each Contributor hereby grants to You a perpetual,
284+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
285+
(except as stated in this section) patent license to make, have made,
286+
use, offer to sell, sell, import, and otherwise transfer the Work,
287+
where such license applies only to those patent claims licensable
288+
by such Contributor that are necessarily infringed by their
289+
Contribution(s) alone or by combination of their Contribution(s)
290+
with the Work to which such Contribution(s) was submitted. If You
291+
institute patent litigation against any entity (including a
292+
cross-claim or counterclaim in a lawsuit) alleging that the Work
293+
or a Contribution incorporated within the Work constitutes direct
294+
or contributory patent infringement, then any patent licenses
295+
granted to You under this License for that Work shall terminate
296+
as of the date such litigation is filed.
297+
298+
4. Redistribution. You may reproduce and distribute copies of the
299+
Work or Derivative Works thereof in any medium, with or without
300+
modifications, and in Source or Object form, provided that You
301+
meet the following conditions:
302+
303+
(a) You must give any other recipients of the Work or
304+
Derivative Works a copy of this License; and
305+
306+
(b) You must cause any modified files to carry prominent notices
307+
stating that You changed the files; and
308+
309+
(c) You must retain, in the Source form of any Derivative Works
310+
that You distribute, all copyright, patent, trademark, and
311+
attribution notices from the Source form of the Work,
312+
excluding those notices that do not pertain to any part of
313+
the Derivative Works; and
314+
315+
(d) If the Work includes a "NOTICE" text file as part of its
316+
distribution, then any Derivative Works that You distribute must
317+
include a readable copy of the attribution notices contained
318+
within such NOTICE file, excluding those notices that do not
319+
pertain to any part of the Derivative Works, in at least one
320+
of the following places: within a NOTICE text file distributed
321+
as part of the Derivative Works; within the Source form or
322+
documentation, if provided along with the Derivative Works; or,
323+
within a display generated by the Derivative Works, if and
324+
wherever such third-party notices normally appear. The contents
325+
of the NOTICE file are for informational purposes only and
326+
do not modify the License. You may add Your own attribution
327+
notices within Derivative Works that You distribute, alongside
328+
or as an addendum to the NOTICE text from the Work, provided
329+
that such additional attribution notices cannot be construed
330+
as modifying the License.
331+
332+
You may add Your own copyright statement to Your modifications and
333+
may provide additional or different license terms and conditions
334+
for use, reproduction, or distribution of Your modifications, or
335+
for any such Derivative Works as a whole, provided Your use,
336+
reproduction, and distribution of the Work otherwise complies with
337+
the conditions stated in this License.
338+
339+
5. Submission of Contributions. Unless You explicitly state otherwise,
340+
any Contribution intentionally submitted for inclusion in the Work
341+
by You to the Licensor shall be under the terms and conditions of
342+
this License, without any additional terms or conditions.
343+
Notwithstanding the above, nothing herein shall supersede or modify
344+
the terms of any separate license agreement you may have executed
345+
with Licensor regarding such Contributions.
346+
347+
6. Trademarks. This License does not grant permission to use the trade
348+
names, trademarks, service marks, or product names of the Licensor,
349+
except as required for reasonable and customary use in describing the
350+
origin of the Work and reproducing the content of the NOTICE file.
351+
352+
7. Disclaimer of Warranty. Unless required by applicable law or
353+
agreed to in writing, Licensor provides the Work (and each
354+
Contributor provides its Contributions) on an "AS IS" BASIS,
355+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
356+
implied, including, without limitation, any warranties or conditions
357+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
358+
PARTICULAR PURPOSE. You are solely responsible for determining the
359+
appropriateness of using or redistributing the Work and assume any
360+
risks associated with Your exercise of permissions under this License.
361+
362+
8. Limitation of Liability. In no event and under no legal theory,
363+
whether in tort (including negligence), contract, or otherwise,
364+
unless required by applicable law (such as deliberate and grossly
365+
negligent acts) or agreed to in writing, shall any Contributor be
366+
liable to You for damages, including any direct, indirect, special,
367+
incidental, or consequential damages of any character arising as a
368+
result of this License or out of the use or inability to use the
369+
Work (including but not limited to damages for loss of goodwill,
370+
work stoppage, computer failure or malfunction, or any and all
371+
other commercial damages or losses), even if such Contributor
372+
has been advised of the possibility of such damages.
373+
374+
9. Accepting Warranty or Additional Liability. While redistributing
375+
the Work or Derivative Works thereof, You may choose to offer,
376+
and charge a fee for, acceptance of support, warranty, indemnity,
377+
or other liability obligations and/or rights consistent with this
378+
License. However, in accepting such obligations, You may act only
379+
on Your own behalf and on Your sole responsibility, not on behalf
380+
of any other Contributor, and only if You agree to indemnify,
381+
defend, and hold each Contributor harmless for any liability
382+
incurred by, or claims asserted against, such Contributor by reason
383+
of your accepting any such warranty or additional liability.
384+
385+
END OF TERMS AND CONDITIONS
386+
387+
APPENDIX: How to apply the Apache License to your work.
388+
389+
To apply the Apache License to your work, attach the following
390+
boilerplate notice, with the fields enclosed by brackets "[]"
391+
replaced with your own identifying information. (Don't include
392+
the brackets!) The text should be enclosed in the appropriate
393+
comment syntax for the file format. We also recommend that a
394+
file or class name and description of purpose be included on the
395+
same "printed page" as the copyright notice for easier
396+
identification within third-party archives.
397+
398+
Copyright 2016-2023 DolphinDB, Inc.
399+
400+
Licensed under the Apache License, Version 2.0 (the "License");
401+
you may not use this file except in compliance with the License.
402+
You may obtain a copy of the License at
403+
404+
http://www.apache.org/licenses/LICENSE-2.0
405+
406+
Unless required by applicable law or agreed to in writing, software
407+
distributed under the License is distributed on an "AS IS" BASIS,
408+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
409+
See the License for the specific language governing permissions and
410+
limitations under the License.
411+
>>>>>>> e414b779b52a2bbb7991a5d737cc7aad92b3c0f0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ DBConnection conn = new DBConnection(false, false, false, false, false, true, Sq
7171

7272
Note: If the current session is no longer in use, Java API will automatically close the connection after a while. You can close the session by calling `close()` to release the connection. Otherwise, other sessions may be unable to connect to the server due to too many connections.
7373

74-
For a detailed example, you can refer to the [example directory](./example).
74+
<!-- For a detailed example, you can refer to the [example directory](./example). -->
7575

7676
## 2. Establish DolphinDB Connection
7777

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ DBConnection 构造方法新增参数 *sqlStd*,是一个枚举类型,用于
7373
DBConnection conn = new DBConnection(false, false, false, false, false, true, SqlStdEnum.DolphinDB);
7474
```
7575

76-
Java API 的实际用例参见[example目录](./example)
76+
<!--Java API 的实际用例参见[example目录](./example)。-->
7777

7878
## 2. 建立DolphinDB连接
7979

0 commit comments

Comments
 (0)