Examples of deleteRecord()


Examples of com.orientechnologies.orient.core.cache.OLevel1RecordCache.deleteRecord()

      final Iterable<? extends OTransactionRecordEntry> iEntries) throws IOException {
    final OLevel1RecordCache dbCache = (OLevel1RecordCache) iTx.getDatabase().getLevel1Cache();

    for (OTransactionRecordEntry txEntry : iEntries) {
      if (txEntry.status == OTransactionRecordEntry.DELETED)
        dbCache.deleteRecord(txEntry.getRecord().getIdentity());
      else if (txEntry.status == OTransactionRecordEntry.UPDATED || txEntry.status == OTransactionRecordEntry.CREATED)
        dbCache.updateRecord(txEntry.getRecord());
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.cache.OLocalRecordCache.deleteRecord()

    final OLocalRecordCache dbCache = tx.getDatabase().getLocalCache();

    for (ORecordOperation txEntry : entries) {
      if (!updateStrategy)
        // ALWAYS REMOVE THE RECORD FROM CACHE
        dbCache.deleteRecord(txEntry.getRecord().getIdentity());
      else if (txEntry.type == ORecordOperation.DELETED)
        // DELETION
        dbCache.deleteRecord(txEntry.getRecord().getIdentity());
      else if (txEntry.type == ORecordOperation.UPDATED || txEntry.type == ORecordOperation.CREATED)
        // UDPATE OR CREATE
View Full Code Here

Examples of com.orientechnologies.orient.core.cache.OLocalRecordCache.deleteRecord()

      if (!updateStrategy)
        // ALWAYS REMOVE THE RECORD FROM CACHE
        dbCache.deleteRecord(txEntry.getRecord().getIdentity());
      else if (txEntry.type == ORecordOperation.DELETED)
        // DELETION
        dbCache.deleteRecord(txEntry.getRecord().getIdentity());
      else if (txEntry.type == ORecordOperation.UPDATED || txEntry.type == ORecordOperation.CREATED)
        // UDPATE OR CREATE
        dbCache.updateRecord(txEntry.getRecord());
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.OCluster.deleteRecord()

              OLogManager.instance().error(this, "Error on creating record in cluster: " + cluster, throwable);

              try {
                if (ppos.clusterPosition != null && ppos.clusterPosition.compareTo(OClusterPosition.INVALID_POSITION) != 0)
                  cluster.deleteRecord(ppos.clusterPosition);
              } catch (IOException e) {
                OLogManager.instance().error(this, "Error on removing record in cluster: " + cluster, e);
              }

              return null;
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.OCluster.deleteRecord()

            lock.releaseSharedLock();
          }
        } catch (IOException ioe) {
          try {
            if (ppos.clusterPosition != null && ppos.clusterPosition.compareTo(OClusterPosition.INVALID_POSITION) != 0)
              cluster.deleteRecord(ppos.clusterPosition);
          } catch (IOException e) {
            OLogManager.instance().error(this, "Error on removing record in cluster: " + cluster, e);
          }

          OLogManager.instance().error(this, "Error on creating record in cluster: " + cluster, ioe);
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.OCluster.deleteRecord()

            try {
              final ORecordSerializationContext context = ORecordSerializationContext.getContext();
              if (context != null)
                context.executeOperations(this);

              cluster.deleteRecord(ppos.clusterPosition);
              atomicOperationsManager.endAtomicOperation(false);
            } catch (Throwable e) {
              atomicOperationsManager.endAtomicOperation(true);
              OLogManager.instance().error(this, "Error on deleting record " + rid + "( cluster: " + cluster + ")", e);
              return new OStorageOperationResult<Boolean>(false);
View Full Code Here

Examples of javax.microedition.rms.RecordStore.deleteRecord()

        {
            RecordStore rs = null;
            try
            {
                rs = RecordStore.openRecordStore( RS_NAME, true );
                rs.deleteRecord( recordId.intValue() );
            }
            catch( RecordStoreException e )
            {
                log.error( e );
            }
View Full Code Here

Examples of javax.microedition.rms.RecordStore.deleteRecord()

            rs_availableAfterSet1000 = rs1.getSizeAvailable();
            rs1.setRecord( 1, new byte[ 10000 ], 0, 10000 );
            rs_availableAfterIncreasedSet = rs1.getSizeAvailable();
            rs1.setRecord( 1, new byte[ 1000 ], 0, 1000 );
            rs_availableAfterReducedSet = rs1.getSizeAvailable();
            rs1.deleteRecord( 1 );
            rs_availableAfterDeleteRecord = rs1.getSizeAvailable();
            rs1.closeRecordStore();

            RecordStore.deleteRecordStore( RSNAME1 );
View Full Code Here

Examples of javax.microedition.rms.RecordStore.deleteRecord()

            RecordFilter filtro=new RmsFiltro(nombre);
            RecordEnumeration re=rs.enumerateRecords(filtro,null,false);
            while(re.hasNextElement())
            {
                int el=re.nextRecordId();
                rs.deleteRecord(el);
            }
            rs.closeRecordStore();
        }
        catch (Exception e)
        {
View Full Code Here

Examples of javax.microedition.rms.RecordStore.deleteRecord()

            RecordFilter filtro=new AlmacenMicropocha.RmsFiltro(nombre);
            RecordEnumeration re=rs.enumerateRecords(filtro,null,false);
            while(re.hasNextElement())
            {
                int el=re.nextRecordId();
                rs.deleteRecord(el);
            }
            rs.closeRecordStore();
        }
        catch (Exception e)
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.