本文整理汇总了Java中com.orientechnologies.orient.core.record.impl.ODocument.getInternalStatus方法的典型用法代码示例。如果您正苦于以下问题:Java ODocument.getInternalStatus方法的具体用法?Java ODocument.getInternalStatus怎么用?Java ODocument.getInternalStatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.orientechnologies.orient.core.record.impl.ODocument
的用法示例。
在下文中一共展示了ODocument.getInternalStatus方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: remove
import com.orientechnologies.orient.core.record.impl.ODocument; //导入方法依赖的package包/类
public void remove() {
ODocument doc = getRawDocument();
if (doc.getInternalStatus() == ORecordElement.STATUS.NOT_LOADED)
doc.load();
Iterator<Edge> allEdges = edges(Direction.BOTH, "E");
while (allEdges.hasNext())
allEdges.next().remove();
doc.getDatabase().delete(doc.getIdentity());
}
示例2: remove
import com.orientechnologies.orient.core.record.impl.ODocument; //导入方法依赖的package包/类
public void remove() {
ODocument doc = getRawDocument();
if (doc.getInternalStatus() == ORecordElement.STATUS.NOT_LOADED) {
doc.load();
}
removeLink(Direction.IN);
removeLink(Direction.OUT);
doc.getDatabase().delete(doc.getIdentity());
}
示例3: getRawDocument
import com.orientechnologies.orient.core.record.impl.ODocument; //导入方法依赖的package包/类
protected ODocument getRawDocument(ORecord record) {
if (record == null) throw new NoSuchElementException();
if (record instanceof OIdentifiable)
record = record.getRecord();
ODocument currentDocument = (ODocument) record;
if (currentDocument.getInternalStatus() == ODocument.STATUS.NOT_LOADED)
currentDocument.load();
if (ODocumentInternal.getImmutableSchemaClass(currentDocument) == null)
throw new IllegalArgumentException(
"Cannot determine the graph element type because the document class is null. Probably this is a projection, use the EXPAND() function");
return currentDocument;
}