Examples of newRecord()


Examples of com.hazelcast.cache.impl.record.CacheRecordFactory.newRecord()

        service.toObject(cacheRecordData);
    }

    private CacheRecord createRecord(InMemoryFormat format) {
        CacheRecordFactory factory = new CacheRecordFactory(format, service);
        return factory.newRecord(randomString());
    }



}
View Full Code Here

Examples of org.cipango.dns.Type.newRecord()

    {
      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.cipango.dns.Type.newRecord()

    {
      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.setName(name);
      record.setDnsClass(clazz);
      record.setTtl(BufferUtil.getInt(buffer));
      int dataLength = BufferUtil.get16(buffer);
      record.doDecode(buffer, getMessage().getCompression(), dataLength);
View Full Code Here

Examples of org.jooq.DSLContext.newRecord()

            author.store();
            Tools.print(author);


            Tools.title("Creating a new active record");
            author = dsl.newRecord(AUTHOR);
            author.setId(3);
            author.setFirstName("Alfred");
            author.setLastName("Hitchcock");
            author.store();
            Tools.print(author);
View Full Code Here

Examples of org.jooq.DSLContext.newRecord()

            author.store();
            Tools.print(author);


            Tools.title("Refreshing an active record");
            author = dsl.newRecord(AUTHOR);
            author.setId(3);
            author.refresh();
            Tools.print(author);

View Full Code Here

Examples of org.jooq.DSLContext.newRecord()

        Field<Long> index = fieldByName(Long.class, "INDEX");
        Field<T> value = (Field<T>) fieldByName(type.getComponentType(), "VALUE");
        Result<Record2<Long, T>> result = create.newResult(index, value);

        for (int i = 0; i < a.length; i++) {
            Record2<Long, T> record = create.newRecord(index, value);
           
            record.setValue(index, i + 1L);
            record.setValue(value, a[i]);
           
            result.add(record);
View Full Code Here

Examples of org.jooq.impl.Factory.newRecord()

        Timestamp ts1 = Timestamp.valueOf("1981-07-10 12:01:15");

        Factory create = create(new Settings()
            .withStatementType(StatementType.STATIC_STATEMENT));

        DATE date = create.newRecord(TDates());
        date.setValue(TDates_ID(), 1);
        assertEquals(1, date.store());

        date.setValue(TDates_ID(), 2);
        date.setValue(TDates_D(), d1);
View Full Code Here

Examples of org.jooq.impl.Factory.newRecord()

    public void testAttachable() throws Exception {
        jOOQAbstractTest.reset = false;

        Factory create = create();

        S store = create.newRecord(TBookStore());
        assertNotNull(store);

        store.setValue(TBookStore_NAME(), "Barnes and Noble");
        assertEquals(1, store.store());
View Full Code Here

Examples of org.jooq.impl.Factory.newRecord()

        assertNotNull(store);

        store.setValue(TBookStore_NAME(), "Barnes and Noble");
        assertEquals(1, store.store());

        store = create.newRecord(TBookStore());
        store.setValue(TBookStore_NAME(), "Barnes and Noble");
        store.attach(null);

        try {
            store.store();
View Full Code Here

Examples of org.lilyproject.repository.api.LTable.newRecord()

            repository.getTableManager().createTable("table1");
            repository.getTableManager().createTable("table2");

            for (String tableName : new String[] {"record", "table1", "table2"}) {
                LTable table = repository.getTable(tableName);
                Record record = table.newRecord();
                record.setRecordType(typeName);
                record.setField(field1, "foobar");
                record = table.create(record);
                assertEquals("foo", record.getField(field2));
                assertEquals("foo", table.read(record.getId()).getField(field2));
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.