Java -Retrieve data on Azure Cosmos DB (SQL API) No.15

In this blog, how to retrieve data on Azure Cosmos DB is shown. Contents ▼1. Retrieve Data on Azure Cosmos DB (SQL API) ▼2. Prerequisites2-1. Free trial Cosmos DB account is available without subscription.2-2. Enabling Maven auto-import in IntelliJ IDEA on Ubuntu2-3. Creating sample data▼3. Java code to retrieve data on Cosmos DB (SQL API)3-1. Creating Java code to find item3-2. The result of executing the query▼4. Reference▼1. Retrieve Data on Azure Cosmos DB (SQL API)  Using steam() and iterableByPage() in CosmosPagedIterable<T> class of com.azure.cosmos.util library, We can retrieve data on Cosmos DB. ▼2. Prerequisites 2-1. Free trial Cosmos DB account is available without subscription. https://azure.microsoft.com/ja-jp/try/cosmosdb/ 2-2. Enabling Maven auto-import in IntelliJ IDEA on … Continue reading “Java -Retrieve data on Azure Cosmos DB (SQL API) No.15”

Java – Download files from Azure Blob Storage No.27

In this blog, How to download files from Azure Blob Storage using Java is shown. Contents ▼1. List file names and download files from Azure Blob Storage▼2. Prerequisites2-1. Installing Java 8 JDK2-2. Free trial Azure account for Azure Blob Storage2-3. Connecting to Azure Blob Storage using Azure Storage Explorer ▼3. List files and download these files from Azure Blob Storage3-1. Starting IntelliJ IDEA and confirming JDK version3-2. Updating pom.xml for operations of Azure Blob Storage3-3. Creating Java Code▼4. Reference▼1. List file names and download files from Azure Blob Storage Using IntelliJ IDEA 2021.1.2 (Community Edition) on Ubuntu , Java application lists files on Azure Blob Storage and downloads these files. … Continue reading “Java – Download files from Azure Blob Storage No.27”

Java – Create Database on Azure Cosmos DB (SQL API) No.14

In this blog, how to create database on Azure Cosmos DB (SQL API) using Java is shown. Contents ▼1. Some kinds of Azure Cosmos DB▼2. Prerequisites2-1. Free trial Cosmos DB account is available without subscription.2-2. Enable Maven auto-import in IntelliJ IDEA on Ubuntu▼3. Creating Database , Container and Data on Cosmos DB (SQL API) の Database, Container by Java3-1. Java Coding3-2. A part of Results3-3. Azure Portal of Cosmos DB shows data▼4. Preference▼1. Some kinds of Azure Cosmos DB Azure Cosmos DB is NoSQL Database. there are some kinds of API below. Choose an API in Azure Cosmos DB ▼2. Prerequisites 2-1. Free trial Cosmos DB account is available without … Continue reading “Java – Create Database on Azure Cosmos DB (SQL API) No.14”

Java – Connection String of Microsoft JDBC Driver for SQL Server No.7

I would like to share the detail of connection string of JDBC Driver for SQL Server in this blog. Contents ▼1. Connection String of Microsoft JDBC Driver for SQL Server ▼2. Example for the connection string of JDBC Driver for SQL Server▼3. Reference▼1. Connection String of Microsoft JDBC Driver for SQL Server Connection String contains login timeout, socket timeout,query timeout, query timeout, authentication way and application name etc. ▼2. Example for the connection string of JDBC Driver for SQL Server We can avoid intermittent connection issue by implementing timeout, retry and interval of retry etc. This is an example for the connection string of Microsoft JDBC Driver for SQL Server. … Continue reading “Java – Connection String of Microsoft JDBC Driver for SQL Server No.7”

Enable auto-import on IntelliJ IDEA No.13

I would like to show how to enable auto-import on IntelliJ IDEA to load libraries automatically. Contents ▼1. Setting to load the relevant libraries automatically1-1. Enable Maven auto-import on IntelliJ IDEA1.2. Check if you could confirm downloaded libraries after this settings▼2. Reference▼1. Setting to load the relevant libraries automatically 1-1. Enable Maven auto-import on IntelliJ IDEA We can find this icon from View -> Tool Windows -> Maven menu as blow. And then, we can choose “Enable auto-reload after any changes” after clicking “Toggle Auto Reload Mode”. 1.2. Check if you could confirm downloaded libraries after this settings After you add the following dependencies in Pom.xml and save pom.xml, you can find … Continue reading “Enable auto-import on IntelliJ IDEA No.13”