質問編集履歴

2

ソースコードを記入しました。

2019/12/10 01:22

投稿

yutapatio
yutapatio

スコア15

test CHANGED
File without changes
test CHANGED
@@ -28,9 +28,109 @@
28
28
 
29
29
  ```Java
30
30
 
31
- Constants.java
31
+ /*
32
32
 
33
+ * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
34
+
35
+ * SPDX-License-Identifier: MIT-0
36
+
37
+ *
38
+
39
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this
40
+
41
+ * software and associated documentation files (the "Software"), to deal in the Software
42
+
43
+ * without restriction, including without limitation the rights to use, copy, modify,
44
+
33
- https://github.com/aws-samples/amazon-qldb-dmv-sample-java
45
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
46
+
47
+ * permit persons to whom the Software is furnished to do so.
48
+
49
+ *
50
+
51
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
52
+
53
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
54
+
55
+ * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
56
+
57
+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
58
+
59
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
60
+
61
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
62
+
63
+ */
64
+
65
+
66
+
67
+ package software.amazon.qldb.tutorial;
68
+
69
+
70
+
71
+ import com.amazon.ion.system.IonSystemBuilder;
72
+
73
+ import com.fasterxml.jackson.databind.SerializationFeature;
74
+
75
+ import com.fasterxml.jackson.dataformat.ion.IonObjectMapper;
76
+
77
+ import com.fasterxml.jackson.dataformat.ion.ionvalue.IonValueMapper;
78
+
79
+
80
+
81
+ /**
82
+
83
+ * Constant values used throughout this tutorial.
84
+
85
+ */
86
+
87
+ public final class Constants {
88
+
89
+ public static final int RETRY_LIMIT = 4;
90
+
91
+ public static final String LEDGER_NAME = "vehicle-registration";
92
+
93
+ public static final String VEHICLE_REGISTRATION_TABLE_NAME = "VehicleRegistration";
94
+
95
+ public static final String VEHICLE_TABLE_NAME = "Vehicle";
96
+
97
+ public static final String PERSON_TABLE_NAME = "Person";
98
+
99
+ public static final String DRIVERS_LICENSE_TABLE_NAME = "DriversLicense";
100
+
101
+ public static final String VIN_INDEX_NAME = "VIN";
102
+
103
+ public static final String PERSON_GOV_ID_INDEX_NAME = "GovId";
104
+
105
+ public static final String VEHICLE_REGISTRATION_LICENSE_PLATE_NUMBER_INDEX_NAME = "LicensePlateNumber";
106
+
107
+ public static final String DRIVER_LICENSE_NUMBER_INDEX_NAME = "LicenseNumber";
108
+
109
+ public static final String DRIVER_LICENSE_PERSONID_INDEX_NAME = "PersonId";
110
+
111
+ public static final String JOURNAL_EXPORT_S3_BUCKET_NAME_PREFIX = "qldb-tutorial-journal-export";
112
+
113
+ public static final String USER_TABLES = "information_schema.user_tables";
114
+
115
+ public static final String LEDGER_NAME_WITH_TAGS = "tags";
116
+
117
+ public static final IonObjectMapper MAPPER = new IonValueMapper(IonSystemBuilder.standard().build());
118
+
119
+
120
+
121
+ private Constants() { }
122
+
123
+
124
+
125
+ static {
126
+
127
+ MAPPER.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
128
+
129
+ }
130
+
131
+ }
132
+
133
+
34
134
 
35
135
  ```
36
136
 

1

エラーの追記

2019/12/10 01:22

投稿

yutapatio
yutapatio

スコア15

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  ```
18
18
 
19
- Constants.javaのみ実行メニューにプログラムとして実行が出ません。他のサンプルコードはすべてプログラムとして実行可能です。
19
+ Constants.javaのみ実行メニューにプログラムとして実行が出ません。他のサンプルコードはすべてプログラムとして実行可能です。EclipseでConstants.javaを右クリックして出てくるメニューに「実行」までは表示されるのですが、「Javaプログラムとして実行」が表示されません。
20
20
 
21
21
  ```
22
22