JAVA 8 / CATATAN</>↗Java 807 Sep 2014
JDK8’s LocateDate class is a class that represent information about date. It doesn’t include information about time of day, and it also doesn’t have information about time-zone. An instance of this class is an immutable object. To create an instance of LocateDate class we can use the of() static method factory. We pass arguments such […]
JAVA 8 / CATATAN</>↗Java 805 Sep 2014
This example show you how to use the new Date and Time API introduced in JDK 8 to get the current date and time. To get today’s date in this new API you can construct an instance of LocalDate, LocalTime or LocalDateTime and call its toString() method. All of these classes are located under the […]
MONGODB / CATATAN</>↗MongoDB04 Sep 2014
In the last MongoDB example, How documents are represented in MongoDB Java Driver?, we’ve seen how MongoDB JSON documents are represented in MongoDB Java driver. Using this knowledge it is time for us to learn how to insert documents into MongoDB collections. We will create a code snippet that will insert documents into the teachers […]
MONGODB / CATATAN</>↗MongoDB30 Agt 2014
MongoDB’s documents are stored inside a collections as a JSON (JavaScript Object Notation) document. It’s a string of key-value pairs data. JSON is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. When we are working in the MongoDB shell we can […]
MONGODB / CATATAN</>↗MongoDB20 Agt 2014
In the previous post you have seen how we installed the MongoDB database server and try to use the MongoDB shell to manipulate collections in the database. You also have been introduced how to obtain and setup the MongoDB Java Driver that we can use to manipulate the MongoDB database from a Java program. Starting […]
MONGODB / CATATAN</>↗MongoDB07 Agt 2014
In the past post Installing and Running MongoDB in Windows 7, you’ve seen how to install and running MongoDB database server. Now we are going to learn how to use the MongoDB Java Driver to access collections from the MongoDB database. To demonstrate this I am going to use Maven and IntelliJ IDEA. You can […]