@@ -45,7 +45,7 @@ public class QuickStart {
45
45
*/
46
46
public static void main (String args []) throws Exception {
47
47
48
- // Get the PoolDataSource for UCP
48
+ // Get a pooled connection
49
49
PoolDataSource pds = PoolDataSourceFactory .getPoolDataSource ();
50
50
// Set the connection factory
51
51
pds .setConnectionFactoryClassName (CONN_FACTORY_CLASS_NAME );
@@ -87,7 +87,7 @@ public static void doSQLWork(Connection conn) {
87
87
statement .executeUpdate (createSQL );
88
88
System .out .println ("New table 'todoitem' is created" );
89
89
90
- //Insert sample data
90
+ //Sample data for populating the 'todoitem'
91
91
String [] description = { "Task 1" , "Task 2" , "Task 3" , "Task 4" , "Task 5" };
92
92
int [] done = { 0 , 0 , 1 , 0 , 1 };
93
93
@@ -103,7 +103,7 @@ public static void doSQLWork(Connection conn) {
103
103
104
104
System .out .println ("New records are inserted" );
105
105
106
- // Verify the data from the table "todoitem"
106
+ // Query the 'todoitem' table to list tasks and task completion status
107
107
ResultSet resultSet = statement .executeQuery ("SELECT DESCRIPTION, DONE FROM TODOITEM" );
108
108
System .out .println ("\n New table 'todoitem' contains:" );
109
109
System .out .println ("DESCRIPTION" + "\t " + "DONE" );
0 commit comments