public class DBUtil extends Object
| Constructor and Description |
|---|
DBUtil() |
| Modifier and Type | Method and Description |
|---|---|
static com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx |
createDB(String type,
String name) |
static Map<String,Object> |
documentToModel(com.orientechnologies.orient.core.record.impl.ODocument doc) |
static DocumentIterator |
fetchDocuments(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db,
String query,
Object... args) |
static List<com.orientechnologies.orient.core.record.impl.ODocument> |
query(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db,
String query,
Object... args) |
static String[] |
toStringArray(Object entry)
Converts a DB list into a String array
|
static void |
update(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db,
String query,
Object... args) |
static void |
updateSchema(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db) |
public static com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx createDB(String type, String name)
public static void updateSchema(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db)
public static Map<String,Object> documentToModel(com.orientechnologies.orient.core.record.impl.ODocument doc)
public static List<com.orientechnologies.orient.core.record.impl.ODocument> query(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db, String query, Object... args)
public static void update(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db,
String query,
Object... args)
public static DocumentIterator fetchDocuments(com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx db, String query, Object... args)
Copyright © 2014. All Rights Reserved.