org.jboss.dna.connector.store.jpa.util
Interface Serializer.LargeValues

Enclosing class:
Serializer

public static interface Serializer.LargeValues

Interface that represents the location where "large" objects are stored.

Author:
Randall Hauch

Method Summary
 long getMinimumSize()
          Get the minimum size for large values, specified as number of characters for a String or the number of bytes for a binary value
 Object read(ValueFactories valueFactories, byte[] hash, long length)
           
 void write(byte[] hash, long length, PropertyType type, Object value)
           
 

Method Detail

getMinimumSize

long getMinimumSize()
Get the minimum size for large values, specified as number of characters for a String or the number of bytes for a binary value

Returns:
the size at which a property value is considered to be large

write

void write(byte[] hash,
           long length,
           PropertyType type,
           Object value)
           throws IOException
Throws:
IOException

read

Object read(ValueFactories valueFactories,
            byte[] hash,
            long length)
            throws IOException
Throws:
IOException


Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.