Examples of fromString()


Examples of com.impetus.kundera.property.accessor.ByteAccessor.fromString()

        private static Object decompose(Object value, Class clazz)
        {
            IntegerAccessor accessor = new IntegerAccessor();
            int thriftColumnValue = accessor.fromBytes(byte.class, (byte[]) value);
            ByteAccessor byteAccessor = new ByteAccessor();
            return byteAccessor.fromString(clazz, String.valueOf(thriftColumnValue));
        }

        /**
         * @param value
         * @param clazz
View Full Code Here

Examples of com.impetus.kundera.property.accessor.CharAccessor.fromString()

         * @return
         */
        private static Object decompose(Object value, Class clazz)
        {
            CharAccessor accessor = new CharAccessor();
            return accessor.fromString(clazz, new String((byte[]) value));
        }

        /**
         * @param value
         * @param clazz
View Full Code Here

Examples of com.impetus.kundera.property.accessor.EnumAccessor.fromString()

                        }
                    }
                    break;
                case ENUM:
                    EnumAccessor accessor = new EnumAccessor();
                    value = accessor.fromString(javaType, value.toString());
                    PropertyAccessorHelper.set(entityObject, (Field) column.getJavaMember(), value);
                    break;
                case PRIMITIVE:
                    value = MongoDBUtils.populateValue(value, value.getClass());
                    value = MongoDBUtils.getTranslatedObject(value, value.getClass(), javaType);
View Full Code Here

Examples of com.impetus.kundera.property.accessor.LongAccessor.fromString()

    private CounterColumn prepareCounterColumn(String value, byte[] name)
    {
        CounterColumn counterColumn = new CounterColumn();
        counterColumn.setName(name);
        LongAccessor accessor = new LongAccessor();
        counterColumn.setValue(accessor.fromString(LongAccessor.class, value));
        return counterColumn;
    }

    /**
     *
 
View Full Code Here

Examples of com.impetus.kundera.property.accessor.ShortAccessor.fromString()

        private static Object decompose(Object value, Class clazz)
        {
            IntegerAccessor accessor = new IntegerAccessor();
            int thriftColumnValue = accessor.fromBytes(short.class, (byte[]) value);
            ShortAccessor shortAccessor = new ShortAccessor();
            return shortAccessor.fromString(clazz, String.valueOf(thriftColumnValue));
        }

        /**
         * @param value
         * @param clazz
View Full Code Here

Examples of com.microsoft.windowsazure.services.servicebus.implementation.BrokerPropertiesMapper.fromString()

    public void jsonStringMapsToBrokerPropertiesObject() {
        // Arrange
        BrokerPropertiesMapper mapper = new BrokerPropertiesMapper();

        // Act
        BrokerProperties properties = mapper
                .fromString("{\"DeliveryCount\":5,\"MessageId\":\"something\"}");

        // Assert
        assertNotNull(properties);
        assertEquals(new Integer(5), properties.getDeliveryCount());
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORecordId.fromString()

    final ORecordId rid = new ORecordId();
    final ODocument doc = new ODocument(database, rid);
    for (String recId : recordToDelete) {
      doc.reset();
      rid.fromString(recId);
      doc.delete();
    }
    listener.onMessage("OK (" + recordToDelete.size() + " records)");
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORecordId.fromString()

  private void searchInRecords() {
    ORecordId rid = new ORecordId();
    ORecordInternal<?> record;
    for (String rec : compiledFilter.getTargetRecords()) {
      rid.fromString(rec);
      record = database.load(rid);
      foreach(record);
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORecordId.fromString()

  private void searchInRecords() {
    ORecordId rid = new ORecordId();
    ORecordInternal<?> record;
    for (String rec : compiledFilter.getTargetRecords()) {
      rid.fromString(rec);
      record = database.load(rid);
      foreach(record);
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORecordId.fromString()

      scanEntireClusters(clusterIds);
    } else if (compiledFilter.getTargetRecords() != null) {
      ORecordId rid = new ORecordId();
      ORecordInternal<?> record;
      for (String rec : compiledFilter.getTargetRecords()) {
        rid.fromString(rec);
        record = database.load(rid);
        foreach(record);
      }
    } else
      throw new OQueryParsingException("No source found in query: specify class, clusters or single records");
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.