com.jpattern.orm.persistor.type.jdbc
Class BytesNullWrapper

java.lang.Object
  extended by com.jpattern.orm.persistor.type.jdbc.BytesNullWrapper
All Implemented Interfaces:
TypeWrapper<byte[],byte[]>

public class BytesNullWrapper
extends Object
implements TypeWrapper<byte[],byte[]>


Constructor Summary
BytesNullWrapper()
           
 
Method Summary
 byte[] clone(byte[] source)
          Return a new instance equivalent to the source
 Class<byte[]> jdbcType()
           
 Class<byte[]> propertyType()
           
 byte[] unWrap(byte[] value)
           
 byte[] wrap(byte[] value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytesNullWrapper

public BytesNullWrapper()
Method Detail

jdbcType

public Class<byte[]> jdbcType()
Specified by:
jdbcType in interface TypeWrapper<byte[],byte[]>

propertyType

public Class<byte[]> propertyType()
Specified by:
propertyType in interface TypeWrapper<byte[],byte[]>

wrap

public byte[] wrap(byte[] value)
Specified by:
wrap in interface TypeWrapper<byte[],byte[]>

unWrap

public byte[] unWrap(byte[] value)
Specified by:
unWrap in interface TypeWrapper<byte[],byte[]>

clone

public byte[] clone(byte[] source)
Description copied from interface: TypeWrapper
Return a new instance equivalent to the source

Specified by:
clone in interface TypeWrapper<byte[],byte[]>
Returns:


Copyright © 2013. All Rights Reserved.