public ORecordLazyList(final ODocument iSourceRecord) { super(iSourceRecord); if (iSourceRecord != null) { this.recordType = ORecordInternal.getRecordType(iSourceRecord); if (!iSourceRecord.isLazyLoad()) // SET AS NON-LAZY LOAD THE COLLECTION TOO autoConvertToRecord = false; } else this.recordType = ODocument.RECORD_TYPE; }
/** * Creates a new object by the record received. */ public ORawBuffer(final ORecord iRecord) { this.buffer = iRecord.toStream(); this.version = iRecord.getVersion(); this.recordType = ORecordInternal.getRecordType(iRecord); }
return ((ODocument) iCurrent.getRecord()).getClassName(); else if (iFieldName.equalsIgnoreCase(ATTRIBUTE_TYPE)) return Orient.instance().getRecordFactoryManager().getRecordTypeName(ORecordInternal.getRecordType(iCurrent.getRecord())); else if (iFieldName.equalsIgnoreCase(ATTRIBUTE_SIZE)) { final byte[] stream = iCurrent.getRecord().toStream();
fieldTypes = loadFieldTypes(fieldTypes, fieldValueAsString); } else if (fieldName.equals(ODocumentHelper.ATTRIBUTE_TYPE)) { if (iRecord == null || ORecordInternal.getRecordType(iRecord) != fieldValueAsString.charAt(0)) {
if (ORecordBytes.RECORD_TYPE == ORecordInternal.getRecordType(record)) { for (Entry<String, Object> projection : iProjections.entrySet()) { if ("rid".equalsIgnoreCase(projection.getKey())) {
"" + (char) ORecordInternal.getRecordType(record)); if (settings.attribSameRow) firstAttribute = false;
if (ORecordInternal.getRecordType(record) != ODocument.RECORD_TYPE && checkSkipBlob())
final ORecordId oldRID = rid.copy(); final OCluster cluster = getClusterById(rid.getClusterId()); final OPhysicalPosition ppos = cluster.allocatePosition(ORecordInternal.getRecordType(rec)); rid.setClusterPosition(ppos.clusterPosition); clientTx.updateIdentityAfterCommit(oldRID, rid); final OPhysicalPosition ppos = cluster.allocatePosition(ORecordInternal.getRecordType(rec)); if (ppos.clusterPosition != rid.getClusterPosition()) { throw new OConcurrentCreateException(rid, new ORecordId(rid.getClusterId(), ppos.clusterPosition));
if (allocated != null) { final OPhysicalPosition ppos; final byte recordType = ORecordInternal.getRecordType(rec); ppos = doCreateRecord(rid, stream, rec.getVersion(), recordType, null, cluster, allocated).getResult(); ORecordInternal.getRecordType(rec), -1, null); ORecordInternal.setVersion(rec, updateRes.getResult()); if (updateRes.getModifiedRecordContent() != null) { rec.getVersion(), ORecordInternal.getRecordType(rec), null, cluster); ORecordInternal.setVersion(rec, updateRes.getResult()); if (updateRes.getModifiedRecordContent() != null) {
OPhysicalPosition physicalPosition = cluster.allocatePosition(ORecordInternal.getRecordType(rec)); assert atomicOperation.getCounter() == 1; rid.setClusterId(cluster.getId()); physicalPosition = cluster.allocatePosition(ORecordInternal.getRecordType(rec)); assert atomicOperation.getCounter() == 1;
return null; if (iRecord == null || ORecordInternal.getRecordType(iRecord) != recordBuffer.recordType)