org.hibernate.ogm.type
Class ByteStringType

java.lang.Object
  extended by org.hibernate.ogm.type.AbstractGenericBasicType<Byte>
      extended by org.hibernate.ogm.type.ByteStringType
All Implemented Interfaces:
Serializable, GridType, org.hibernate.type.StringRepresentableType<Byte>, org.hibernate.type.XmlRepresentableType<Byte>

public class ByteStringType
extends AbstractGenericBasicType<Byte>

For MongoDB persist a Byte as a String. TODO Could be better to persist as an Integer.

Author:
Oliver Carr ocarr@redhat.com
See Also:
Serialized Form

Field Summary
static ByteStringType INSTANCE
           
 
Constructor Summary
ByteStringType()
           
 
Method Summary
 int getColumnSpan(org.hibernate.engine.spi.Mapping mapping)
           
 String getName()
           
 
Methods inherited from class org.hibernate.ogm.type.AbstractGenericBasicType
assemble, beforeAssemble, compare, deepCopy, deepCopy, disassemble, fromString, fromStringValue, fromXMLNode, fromXMLString, getGridTypeDescriptor, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, getRegistrationKeys, getReplacement, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, registerUnderJavaType, replace, replace, resolve, semiResolve, setToXMLNode, toColumnNullness, toLoggableString, toString, toXMLString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ByteStringType INSTANCE
Constructor Detail

ByteStringType

public ByteStringType()
Method Detail

getName

public String getName()

getColumnSpan

public int getColumnSpan(org.hibernate.engine.spi.Mapping mapping)
                  throws org.hibernate.MappingException
Specified by:
getColumnSpan in interface GridType
Specified by:
getColumnSpan in class AbstractGenericBasicType<Byte>
Throws:
org.hibernate.MappingException


Copyright © 2010-2012 Hibernate. All Rights Reserved.