org.hibernate.ogm.type
Class TimestampType

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

public class TimestampType
extends AbstractGenericBasicType<Date>

Author:
Emmanuel Bernard
See Also:
Serialized Form

Field Summary
static TimestampType INSTANCE
           
 
Constructor Summary
TimestampType()
           
 
Method Summary
 int getColumnSpan(Mapping mapping)
          How many columns are used to persist this type.
 String getName()
          Returns the abbreviated name of the type.
 
Methods inherited from class org.hibernate.ogm.type.AbstractGenericBasicType
assemble, beforeAssemble, compare, deepCopy, deepCopy, disassemble, fromString, fromStringValue, fromXMLNode, fromXMLString, getGridTypeDescriptor, getHashCode, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, getRegistrationKeys, getReplacement, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isEqual, isModified, isMutable, isSame, 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 TimestampType INSTANCE
Constructor Detail

TimestampType

public TimestampType()
Method Detail

getColumnSpan

public int getColumnSpan(Mapping mapping)
                  throws MappingException
Description copied from interface: GridType
How many columns are used to persist this type. Always the same as sqlTypes(mapping).length

Specified by:
getColumnSpan in interface GridType
Specified by:
getColumnSpan in class AbstractGenericBasicType<Date>
Parameters:
mapping - The mapping object :/
Returns:
The number of columns
Throws:
MappingException - Generally indicates an issue accessing the passed mapping object.

getName

public String getName()
Description copied from interface: GridType
Returns the abbreviated name of the type.

Returns:
String the Hibernate type name


Copyright © 2010-2011 Red Hat Middleware, LLC, Emmanuel Bernard and various contributors. All Rights Reserved