Package com.impetus.kundera.property.accessor

Examples of com.impetus.kundera.property.accessor.ObjectAccessor


    @Test
    public void test()
    {
        Map<String, byte[]> byteCollection = new HashMap<String, byte[]>();
       
        ObjectAccessor accessor = new ObjectAccessor();
        accessor.toBytes(10);
       
        byteCollection.put("key1", accessor.toBytes(10));
        byteCollection.put("key2", accessor.toBytes(11));
        CollectionEntity entity = new CollectionEntity();
        entity.setId("entityId1");
        entity.setDataMap(byteCollection);
        em.persist(entity); // persist entity.
       
View Full Code Here


    @Test
    public void test()
    {
        Map<String, byte[]> byteCollection = new HashMap<String, byte[]>();
       
        ObjectAccessor accessor = new ObjectAccessor();
        accessor.toBytes(10);
       
        byteCollection.put("key1", accessor.toBytes(10));
        byteCollection.put("key2", accessor.toBytes(11));
        EntityWithCollection entity = new EntityWithCollection();
        entity.setId("entityId1");
        entity.setDataMap(byteCollection);
        em.persist(entity); // persist entity.
       
View Full Code Here

        {
            rowKey = KunderaCoreUtils.prepareCompositeKey(entityMetadata, key);
        }
        else
        {
            ObjectAccessor accessor = new ObjectAccessor();

            rowKey = accessor.toString(key);
        }

        String hashKey = getHashKey(entityMetadata.getTableName(), rowKey);

        try
View Full Code Here

        {
            rowKey = KunderaCoreUtils.prepareCompositeKey(entityMetadata, id);
        }
        else
        {
            ObjectAccessor accessor = new ObjectAccessor();
            rowKey = accessor.toString(id);
            // rowKey = /*PropertyAccessorHelper.getString(entity, (Field)
            // entityMetadata.getIdAttribute().getJavaMember())*/ ;
        }

        String hashKey = getHashKey(entityMetadata.getTableName(), rowKey);
View Full Code Here

TOP

Related Classes of com.impetus.kundera.property.accessor.ObjectAccessor

Copyright © 2018 www.massapicom. 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.