org.openrdf.repository.object.managers.converters
Class SqlDateMarshall

java.lang.Object
  extended by org.openrdf.repository.object.managers.converters.SqlDateMarshall
All Implemented Interfaces:
Marshall<Date>

public class SqlDateMarshall
extends Object
implements Marshall<Date>

Converts Date to and from Literal.

Author:
James Leigh

Constructor Summary
SqlDateMarshall(ValueFactory vf)
           
 
Method Summary
 Date deserialize(Literal literal)
           
 URI getDatatype()
           
 String getJavaClassName()
           
 Literal serialize(Date object)
           
 void setDatatype(URI datatype)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlDateMarshall

public SqlDateMarshall(ValueFactory vf)
                throws DatatypeConfigurationException
Throws:
DatatypeConfigurationException
Method Detail

getJavaClassName

public String getJavaClassName()
Specified by:
getJavaClassName in interface Marshall<Date>

getDatatype

public URI getDatatype()
Specified by:
getDatatype in interface Marshall<Date>

setDatatype

public void setDatatype(URI datatype)
Specified by:
setDatatype in interface Marshall<Date>

deserialize

public Date deserialize(Literal literal)
Specified by:
deserialize in interface Marshall<Date>

serialize

public Literal serialize(Date object)
Specified by:
serialize in interface Marshall<Date>


Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.