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

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

public class SqlTimestampMarshall
extends Object
implements Marshall<Timestamp>

Converts Timestamp to and from Literal.

Author:
James Leigh

Constructor Summary
SqlTimestampMarshall(ValueFactory vf)
           
 
Method Summary
 Timestamp deserialize(Literal literal)
           
 URI getDatatype()
           
 String getJavaClassName()
           
 Literal serialize(Timestamp 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

SqlTimestampMarshall

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

getJavaClassName

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

getDatatype

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

setDatatype

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

deserialize

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

serialize

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


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