| |
|
| java.lang.Object org.continuent.sequoia.common.protocol.SQLDataSerialization
SQLDataSerialization | final public class SQLDataSerialization (Code) | | This class defines Serializers for SQL Data: per type serialization +
deserialization methods and information wrapped in one object. Serializers
are implemented as singletons for efficiency.
author: Marc Herbert author: Gilles Rayrat version: 1.0 |
Inner Class :abstract public static class Serializer | |
Method Summary | |
public static Serializer | getSerializer(Object sqlObjOrTypeTag) Returns the de/serializer appropriate for the given TypeTag, or for the
type of the given SQL object if argument is not a TypeTag (TypeTag already
knows how to serialize itself).
Parameters: sqlObjOrTypeTag - a typetag or a sample SQL object of the type ofinterest appropriate serialization + deserialization methods. | public static Serializer | getSerializer(TypeTag t) |
getSerializer | public static Serializer getSerializer(Object sqlObjOrTypeTag) throws NotImplementedException, IllegalArgumentException(Code) | | Returns the de/serializer appropriate for the given TypeTag, or for the
type of the given SQL object if argument is not a TypeTag (TypeTag already
knows how to serialize itself).
Parameters: sqlObjOrTypeTag - a typetag or a sample SQL object of the type ofinterest appropriate serialization + deserialization methods. Returns theUNKNOWN_TYPE serializer on "null" arg. throws: NotImplementedException - if we don't know how to serialize objectssuch as the given one. Set with a default message but caller hasgenerally more useful information and should catch and replace(not even chain) this NotImplementedException by a better one. throws: IllegalArgumentException - if we gave a wrong TypeTag |
|
|
|