org.jbpm.context.exe.converter
Class ShortToLongConverter

java.lang.Object
  extended by org.jbpm.context.exe.converter.ShortToLongConverter
All Implemented Interfaces:
java.io.Serializable, Converter<java.lang.Short,java.lang.Long>

public class ShortToLongConverter
extends java.lang.Object
implements Converter<java.lang.Short,java.lang.Long>

See Also:
Serialized Form

Constructor Summary
ShortToLongConverter()
           
 
Method Summary
 java.lang.Long convert(java.lang.Short o)
          converts a given object to its persistable format.
 java.lang.Short revert(java.lang.Long o)
          reverts a persisted object to its original form.
 boolean supports(java.lang.Object value)
          is true if this converter supports the given type, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortToLongConverter

public ShortToLongConverter()
Method Detail

supports

public boolean supports(java.lang.Object value)
Description copied from interface: Converter
is true if this converter supports the given type, false otherwise.

Specified by:
supports in interface Converter<java.lang.Short,java.lang.Long>

convert

public java.lang.Long convert(java.lang.Short o)
Description copied from interface: Converter
converts a given object to its persistable format.

Specified by:
convert in interface Converter<java.lang.Short,java.lang.Long>

revert

public java.lang.Short revert(java.lang.Long o)
Description copied from interface: Converter
reverts a persisted object to its original form.

Specified by:
revert in interface Converter<java.lang.Short,java.lang.Long>


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