Examples of Record


Examples of org.apache.jute.Record

            + crc.getValue());
      }
      InputArchive iab = BinaryInputArchive
          .getArchive(new ByteArrayInputStream(bytes));
      TxnHeader hdr = new TxnHeader();
      Record txn = SerializeUtils.deserializeTxn(iab, hdr);
      if (bw != null)
      {
        bw.write(formatTransaction(hdr, txn));
        bw.newLine();
      } else
View Full Code Here

Examples of org.apache.jute_voltpatches.Record

     */
    public void prepRequest(Request request, long txnId) {
        // LOG.info("Prep>>> cxid = " + request.cxid + " type = " +
        // request.type + " id = 0x" + Long.toHexString(request.sessionId));
        TxnHeader txnHeader = null;
        Record txn = null;
        try {
            switch (request.type) {
            case OpCode.create:
                txnHeader = new TxnHeader(request.sessionId, request.cxid,
                        txnId, getTime(), OpCode.create);
View Full Code Here

Examples of org.apache.poi.hslf.record.Record

    //  first PersistPrtHolder, if there is one
   
    CurrentUserAtom cua = hss.getCurrentUserAtom();
    if(cua.getCurrentEditOffset() != 0) {
      // Grab the details of the UserEditAtom there
      Record r = Record.buildRecordAtOffset(
          hss.getUnderlyingBytes(),
          (int)cua.getCurrentEditOffset()
      );
      if(! (r instanceof UserEditAtom)) { return null; }
      UserEditAtom uea = (UserEditAtom)r;
     
      // Now get the PersistPtrHolder
      Record r2 = Record.buildRecordAtOffset(
          hss.getUnderlyingBytes(),
          uea.getPersistPointersOffset()
      );
      if(! (r2 instanceof PersistPtrHolder)) { return null; }
      PersistPtrHolder pph = (PersistPtrHolder)r2;
     
      // Now get the last record
      int[] slideIds = pph.getKnownSlideIDs();
      int maxSlideId = -1;
      for(int i=0; i<slideIds.length; i++) {
        if(slideIds[i] > maxSlideId) { maxSlideId = slideIds[i]; }
      }
      if(maxSlideId == -1) { return null; }
     
      int offset = (
          (Integer)pph.getSlideLocationsLookup().get(
              new Integer(maxSlideId)
          ) ).intValue();
      Record r3 = Record.buildRecordAtOffset(
          hss.getUnderlyingBytes(),
          offset
      );
     
      // If we have a DocumentEncryptionAtom, it'll be this one
View Full Code Here

Examples of org.apache.poi.hssf.record.Record

    private static int determineType(CellValueRecordInterface cval) {
        if (cval instanceof FormulaRecordAggregate) {
            return HSSFCell.CELL_TYPE_FORMULA;
        }
        // all others are plain BIFF records
        Record record = ( Record ) cval;
        switch (record.getSid()) {

            case NumberRecord.sid :   return HSSFCell.CELL_TYPE_NUMERIC;
            case BlankRecord.sid :    return HSSFCell.CELL_TYPE_BLANK;
            case LabelSSTRecord.sid : return HSSFCell.CELL_TYPE_STRING;
            case BoolErrRecord.sid :
View Full Code Here

Examples of org.apache.qpid.server.store.Transaction.Record

    protected abstract void closeMessageStore() throws Exception;
    protected abstract void closeConfigStore() throws Exception;

    public void testRecordXid() throws Exception
    {
        Record enqueueRecord = getTestRecord(1);
        Record dequeueRecord = getTestRecord(2);
        Record[] enqueues = { enqueueRecord };
        Record[] dequeues = { dequeueRecord };
        byte[] globalId = new byte[] { 1 };
        byte[] branchId = new byte[] { 2 };
View Full Code Here

Examples of org.apache.tuscany.sca.itest.Record

        list = null;
    }
   
    private void fillList(int param, String cid) {
        for (int i = 0; i < param; i++) {
            Record record = new Record();
            record.id = "id_" + i;
            record.conversationId = cid;
            list.add(record);
        }
    }
View Full Code Here

Examples of org.apache.webbeans.telephone.entity.Record

    private @PersistenceContext(name="pu") EntityManager entityManager;

    @Override
    public Record addRecord(String name, String surname, String telephone, boolean business)
    {
        Record record = new Record();
        record.setName(name);
        record.setSurname(surname);
        record.setNumber(telephone);
        record.setBusiness(business);
       
        entityManager.persist(record);
       
        return record;
    }
View Full Code Here

Examples of org.apache.xindice.core.data.Record

         HashMap meta = new HashMap(2);
         meta.put(Record.CREATED, new Long(sph.getCreated()));
         meta.put(Record.MODIFIED, new Long(sph.getModified()));

         return new Record(key, v, meta);
      }
      catch ( BTreeNotFoundException e ) {
      }
      catch ( BTreeException e ) {
         throw e;
View Full Code Here

Examples of org.cipango.dns.record.Record

    {
      Name name = getMessage().getCompression().decodeName(buffer);
      Type type = Type.getType(BufferUtil.get16(buffer));
      DnsClass clazz = DnsClass.getClass(BufferUtil.get16(buffer));
     
      Record record = type.newRecord();
      record.setDnsClass(clazz);
      record.setName(name);
      _records.add(record);
    }
  }
View Full Code Here

Examples of org.company.recordshop.domain.Record

    Assert.notNull(source, "argument [source] may not be null");
    Assert.isNull(source.getId(),
        "Can not translate a dto with existing id to a new domain object. Dto: "
            + source);
    Record target = new Record(source.getAsin(), source.getPrice(),
        typeTranslator.fromDto(source.getType())

    );
    return fromDto(source, target, translated);
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.