This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import com.fasterxml.jackson.core.type.TypeReference; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import java.io.IOException; | |
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.infrastructure; | |
import org.h2.tools.Server; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
public class DBLauncher |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.async; | |
import java.util.concurrent.CompletableFuture; | |
public class Main | |
{ | |
public static void main(String[] args) | |
{ | |
// TODO: 7/10/21 Create a simple Task | |
// TODO: 7/10/21 Add sleep to thread, for the asynchronous task to be executed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pluralsight.jdbc.course.m6c1; | |
import java.io.FileInputStream; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.Reader; | |
import java.sql.*; | |
public class SavesAndReadBlobsAndClobs | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pluralsight.jdbc.course.m6c2; | |
import java.sql.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Procedures | |
{ | |
private static final String URL | |
= "jdbc:mysql://localhost:3306/classicmodels?user=root&password=my-secret-pw"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pluralsight.jdbc.course.m6c2; | |
import java.sql.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Procedures | |
{ | |
private static final String URL | |
= "jdbc:mysql://localhost:3306/classicmodels?user=root&password=my-secret-pw"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pluralsight.jdbc.course.m7c2; | |
import java.sql.*; | |
public class OrderComponent | |
{ | |
public static void main(String[] args) throws SQLException | |
{ | |
int customer = 112; | |
LineItem lineItem = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pluralsight.jdbc.course.m7c3; | |
import javax.sql.rowset.CachedRowSet; | |
import javax.sql.rowset.RowSetFactory; | |
import javax.sql.rowset.RowSetProvider; | |
import java.io.*; | |
import java.sql.SQLException; | |
public class RowSet | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handlers=java.util.logging.ConsoleHandler, java.util.logging.FileHandler | |
# To also add the FileHandler, use the following line instead. | |
# handler=java.util.logging.FileHandler, java.util.logging.ConsoleHandler | |
# level of all loggers and handlers | |
.level=INFO | |
# FileHandler specific props | |
java.util.logging.FileHandler.pattern = src/main/java/logs/main%u.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'application' | |
} | |
group 'com.shop.items' | |
version '1.0-SNAPSHOT' | |
repositories { | |
mavenCentral() | |
} |