org.hibernate.spatial
Class GeometrySqlTypeDescriptor

java.lang.Object
  extended by org.hibernate.spatial.GeometrySqlTypeDescriptor
All Implemented Interfaces:
java.io.Serializable, org.hibernate.type.descriptor.sql.SqlTypeDescriptor

public class GeometrySqlTypeDescriptor
extends java.lang.Object
implements org.hibernate.type.descriptor.sql.SqlTypeDescriptor

A generic SqlTypeDescriptor, intended to be remapped by the spatial dialect.

See Also:
Serialized Form

Field Summary
static GeometrySqlTypeDescriptor INSTANCE
           
 
Constructor Summary
GeometrySqlTypeDescriptor()
           
 
Method Summary
 boolean canBeRemapped()
          Is this descriptor available for remapping?
<X> org.hibernate.type.descriptor.ValueBinder<X>
getBinder(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
           
<X> org.hibernate.type.descriptor.ValueExtractor<X>
getExtractor(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
           
 int getSqlType()
          Return the JDBC type-code for the column mapped by this type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final GeometrySqlTypeDescriptor INSTANCE
Constructor Detail

GeometrySqlTypeDescriptor

public GeometrySqlTypeDescriptor()
Method Detail

getSqlType

public int getSqlType()
Description copied from interface: org.hibernate.type.descriptor.sql.SqlTypeDescriptor
Return the JDBC type-code for the column mapped by this type.

Specified by:
getSqlType in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor
Returns:
typeCode The JDBC type-code

canBeRemapped

public boolean canBeRemapped()
Description copied from interface: org.hibernate.type.descriptor.sql.SqlTypeDescriptor
Is this descriptor available for remapping?

Specified by:
canBeRemapped in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor
Returns:
true indicates this descriptor can be remapped; otherwise, false
See Also:
WrapperOptions.remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor), Dialect.remapSqlTypeDescriptor(org.hibernate.type.descriptor.sql.SqlTypeDescriptor)

getBinder

public <X> org.hibernate.type.descriptor.ValueBinder<X> getBinder(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
Specified by:
getBinder in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor

getExtractor

public <X> org.hibernate.type.descriptor.ValueExtractor<X> getExtractor(org.hibernate.type.descriptor.java.JavaTypeDescriptor<X> javaTypeDescriptor)
Specified by:
getExtractor in interface org.hibernate.type.descriptor.sql.SqlTypeDescriptor