mongoDB 몽고디비
·
Java/Database
몽고디비 사용법 자바 8 기준 몽고디비 4.4 다운로드 한 뒤 몽고디비 드라이버 4.2를 다운로드 받음 (library) 프로젝트 오른쪽 클릭 - properties - java build path - library 탭 - add External Jars - 몽고디비 드라이버 추가 database가 collection들을 포함하고 collection들은 document들을 포함한다. database - collection1 - document 1,2,3,4 .... - collection2 - document 1,2,3,4,5,6... - collection3 - document 1,2,3,4,5,6... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2..
Redis example2
·
Java/Database
공 굴리기 프로젝트에 Redis로 데이터 저장. controller Package ButtonActionListener.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 package ball.controller; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class ButtonActionListener implements ActionListener{ private Core core; public ButtonActionListener(Core core) { this.core = co..
Redis example)
·
Java/Database
DB는 보통 데이터베이스 관리 시스템(DBMS)에 의해 제어된다. 데이터 베이스는 관리가 목적이다. 데이터베이스 내 데이터는 일반적으로 표 안에 행과 열로 모델링 된다. 이는 프로세싱과 데이터 쿼리 작업을 더 효율적으로 실행하기 위함이다. 이로써 데이터는 쉽게 액세스, 관리, 수정, 업데이트, 제어, 체계화 될 수있다. 대부분 데이터 베이스는 SQL(Structured Query Language)를 쓴다. 스키마 - 데이터의 구조적인 특성, 인스턴스에 의해 규정된다. 1. 레디스 윈도우 버전을 다운받는다. 2. 위와 같이 나오면 정상이라고 합니다. 3. Jedis library를 다운 받는다. 4. Project 오른쪽 클릭 - properties - Java build Path - library tab..