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
ApiClient apiClient = new ApiClient(); | |
RatesApi api = apiClient.buildClient(RatesApi.class); | |
Rates rates = api.getLatest("USD", Collections.singletonList("AUD")); |
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.keepithttps; | |
import com.sun.nio.file.SensitivityWatchEventModifier; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.stereotype.Service; | |
import java.io.File; |
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
$ORIENTDB-HOME/bin/service/orientdb | |
Usage: ./orientdb [ console | start | stop | restart | condrestart | status | install | remove | dump ] | |
Commands: | |
console Launch in the current console. | |
start Start in the background as a daemon process. | |
stop Stop if running as a daemon or in another console. | |
restart Stop if running and then start. | |
condrestart Restart only if already running. |
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.keepithttps.hibernate.type; | |
import java.io.IOException; | |
import java.io.Serializable; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Types; | |
import java.util.Properties; |
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
final OrientGraph graph = new OrientGraph("remote:localhost/mydb", "admin", "admin"); | |
OrientVertex v1 = graph.addVertex("class:TestVertex"); | |
OrientVertex v2 = graph.addVertex("class:TestVertex"); | |
OrientVertex v3 = graph.addVertex("class:TestVertex"); | |
OrientVertex v4 = graph.addVertex("class:TestVertex"); | |
Map<String, Object> p1 = new HashMap<String, Object>(); | |
p1.put("based_on", "0001"); | |
OrientEdge e1 = v1.addEdge(null, v2, "TestEdge", null, p1); |
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
import java.util.HashMap; | |
import java.util.Map; | |
import com.orientechnologies.orient.core.command.OCommandResultListener; | |
import com.orientechnologies.orient.core.sql.OCommandSQL; | |
import com.orientechnologies.orient.core.sql.query.OSQLSynchQuery; | |
import com.tinkerpop.blueprints.Direction; | |
import com.tinkerpop.blueprints.Edge; | |
import com.tinkerpop.blueprints.Vertex; | |
import com.tinkerpop.blueprints.impls.orient.OrientEdge; |
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
import com.orientechnologies.orient.core.command.OCommandResultListener; | |
import com.orientechnologies.orient.core.sql.query.OSQLAsynchQuery; | |
import com.orientechnologies.orient.core.sql.query.OSQLSynchQuery; | |
import com.tinkerpop.blueprints.Direction; | |
import com.tinkerpop.blueprints.Edge; | |
import com.tinkerpop.blueprints.Vertex; | |
import com.tinkerpop.blueprints.impls.orient.OrientGraph; | |
import com.tinkerpop.blueprints.impls.orient.OrientVertex; | |
public class OrientdbTest { |
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
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx; | |
public class TestCloseConnection { | |
/** | |
* @param args | |
* @throws InterruptedException |