References
References store the relationships between data by including
links or references from one document to another.
Applications can resolve these references to access the
related data. Broadly, these arenormalized data models.
See Normalized Data Models for the strengths and
weaknesses of using references.
Embedded Data
Embedded documents capture relationships between data
by storing related data in a single document structure.
MongoDB documents make it possible to embed document
structures as sub-documents in a field or array within a
document. These denormalized data models allow
applications to retrieve and manipulate related data
in a single database operation.
See Embedded Data Models for the strengths and
weaknesses of embedding sub-documents.
출처: <http://docs.mongodb.org/manual/core/data-modeling-introduction/>
'DB > MongoDB' 카테고리의 다른 글
[mongodb] pymongo 예시 (0) | 2015.03.16 |
---|---|
[mongodb] command 요약 (0) | 2015.03.16 |
[mongodb] mongo 결과 파일 출력 (0) | 2015.03.03 |
[mongodb] 용어&쿼리비교 (0) | 2015.01.07 |
mongodb 설치 (0) | 2015.01.07 |
import java.awt.Dimension;
import java.awt.Point;
import javafx.application.Platform;
import javafx.embed.swing.JFXPanel;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
public class JavaFX {
/* Create a JFrame with a JButton and a JFXPanel containing the WebView. */
private static void initAndShowGUI() {
// This method is invoked on Swing thread
JFrame frame = new JFrame("FX");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null); // do the layout manually
final JButton jButton = new JButton("Button");
final JFXPanel fxPanel = new JFXPanel();
frame.add(jButton);
frame.add(fxPanel);
frame.setVisible(true);
jButton.setSize(new Dimension(200, 27));
fxPanel.setSize(new Dimension(300, 300));
fxPanel.setLocation(new Point(0, 27));
frame.getContentPane().setPreferredSize(new Dimension(300, 327));
frame.pack();
frame.setResizable(false);
Platform.runLater(new Runnable() { // this will run initFX as JavaFX-Thread
@Override
public void run() {
initFX(fxPanel);
}
});
}
/* Creates a WebView and fires up google.com */
private static void initFX(final JFXPanel fxPanel) {
Group group = new Group();
Scene scene = new Scene(group);
fxPanel.setScene(scene);
WebView webView = new WebView();
group.getChildren().add(webView);
webView.setMinSize(300, 300);
webView.setMaxSize(300, 300);
// Obtain the webEngine to navigate
WebEngine webEngine = webView.getEngine();
webEngine.load("http://www.google.com/");
}
/* Start application */
public static void main(final String[] args) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
initAndShowGUI();
}
});
}
}
javafx 란 및 간단 강좌?? : http://btsweet.blogspot.kr/2014/03/javafx.html
javafx doc :
http://www.oracle.com/technetwork/java/javase/documentation/javafx-docs-2159875.html
http://docs.oracle.com/javase/8/javase-clienttechnologies.htm
'학습자료 > Java' 카테고리의 다른 글
[java] 스케줄링 like cron(quartz Scheduler) (1) | 2015.07.22 |
---|---|
[java] jTable 실시간 값 변경 (0) | 2015.01.08 |
[java] timetask (0) | 2015.01.08 |
[java] 파일 실행 (0) | 2015.01.08 |
[java] html 파싱, jsoup 예제 (0) | 2015.01.08 |
$ mongo --quiet {dbname} --eval 'printjson(db.job.find().toArray())' > output.json
$ vi output.json
http://stackoverflow.com/questions/13104800/printing-mongodb-shell-output-to-file
'DB > MongoDB' 카테고리의 다른 글
[mongodb] pymongo 예시 (0) | 2015.03.16 |
---|---|
[mongodb] command 요약 (0) | 2015.03.16 |
[mongodb] 데이터 모델링 (0) | 2015.03.16 |
[mongodb] 용어&쿼리비교 (0) | 2015.01.07 |
mongodb 설치 (0) | 2015.01.07 |