org.modeshape.connector.store.jpa.util
Interface Serializer.LargeValues
- All Known Implementing Classes:
- Serializer.NoLargeValues, SimpleJpaRepository.LargeValueSerializer
- Enclosing class:
- Serializer
public static interface Serializer.LargeValues
Interface that represents the location where "large" objects are stored.
- Author:
- Randall Hauch
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-2010 JBoss, a division of Red Hat. All Rights Reserved.