Examples of TypeKey


Examples of com.avaje.tests.compositekeys.db.TypeKey

    subType.setKey(subTypeKey);
    subType.setDescription("ANY SUBTYPE");
    getServer().save(subType);

        Type type = new Type();
        TypeKey typeKey = new TypeKey();
        typeKey.setCustomer(1);
        typeKey.setType(10);
        type.setKey(typeKey);
        type.setDescription("Type Old-Item - Customer 1");
    type.setSubType(subType);
        getServer().save(type);

        type = new Type();
        typeKey = new TypeKey();
        typeKey.setCustomer(2);
        typeKey.setType(10);
        type.setKey(typeKey);
        type.setDescription("Type Old-Item - Customer 2");
    type.setSubType(subType);
        getServer().save(type);
View Full Code Here

Examples of com.facebook.presto.hive.shaded.org.codehaus.jackson.map.ser.impl.SerializerCache.TypeKey

        int size = findSize(serializers.size());
        _size = size;
        int hashMask = (size-1);
        Bucket[] buckets = new Bucket[size];
        for (Map.Entry<TypeKey,JsonSerializer<Object>> entry : serializers.entrySet()) {
            TypeKey key = entry.getKey();
            int index = key.hashCode() & hashMask;
            buckets[index] = new Bucket(buckets[index], key, entry.getValue());
        }
        _buckets = buckets;
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.ser.SerializerCache.TypeKey

    }

    public JsonSerializer<Object> typedValueSerializer(JavaType type)
    {
        if (_cacheKey == null) {
            _cacheKey = new TypeKey(type, true);
        } else {
            _cacheKey.resetTyped(type);
        }
        return _map.find(_cacheKey);
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.ser.SerializerCache.TypeKey

    }

    public JsonSerializer<Object> typedValueSerializer(Class<?> cls)
    {
        if (_cacheKey == null) {
            _cacheKey = new TypeKey(cls, true);
        } else {
            _cacheKey.resetTyped(cls);
        }
        return _map.find(_cacheKey);
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.ser.SerializerCache.TypeKey

    }

    public JsonSerializer<Object> untypedValueSerializer(JavaType type)
    {
        if (_cacheKey == null) {
            _cacheKey = new TypeKey(type, false);
        } else {
            _cacheKey.resetUntyped(type);
        }
        return _map.find(_cacheKey);
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.ser.SerializerCache.TypeKey

    }

    public JsonSerializer<Object> untypedValueSerializer(Class<?> cls)
    {
        if (_cacheKey == null) {
            _cacheKey = new TypeKey(cls, false);
        } else {
            _cacheKey.resetUntyped(cls);
        }
        return _map.find(_cacheKey);
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.ser.SerializerCache.TypeKey

        int size = findSize(serializers.size());
        _size = size;
        int hashMask = (size-1);
        Bucket[] buckets = new Bucket[size];
        for (Map.Entry<TypeKey,JsonSerializer<Object>> entry : serializers.entrySet()) {
            TypeKey key = entry.getKey();
            int index = key.hashCode() & hashMask;
            buckets[index] = new Bucket(buckets[index], key, entry.getValue());
        }
        _buckets = buckets;
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.ser.SerializerCache.TypeKey

        return new ReadOnlyClassToSerializerMap(new JsonSerializerMap(src));
    }

    public JsonSerializer<Object> typedValueSerializer(JavaType type) {
        if (_cacheKey == null) {
            _cacheKey = new TypeKey(type, true);
        } else {
            _cacheKey.resetTyped(type);
        }
        return _map.find(_cacheKey);
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.ser.SerializerCache.TypeKey

        return _map.find(_cacheKey);
    }

    public JsonSerializer<Object> typedValueSerializer(Class<?> cls) {
        if (_cacheKey == null) {
            _cacheKey = new TypeKey(cls, true);
        } else {
            _cacheKey.resetTyped(cls);
        }
        return _map.find(_cacheKey);
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jackson.databind.ser.SerializerCache.TypeKey

        return _map.find(_cacheKey);
    }

    public JsonSerializer<Object> untypedValueSerializer(JavaType type) {
        if (_cacheKey == null) {
            _cacheKey = new TypeKey(type, false);
        } else {
            _cacheKey.resetUntyped(type);
        }
        return _map.find(_cacheKey);
    }
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.