Class AbstractLargeBinaryColumnMapping

  • All Implemented Interfaces:
    ColumnMapping
    Direct Known Subclasses:
    BinaryColumnMapping, BlobColumnMapping, LongVarBinaryColumnMapping, VarBinaryColumnMapping

    public abstract class AbstractLargeBinaryColumnMapping
    extends AbstractColumnMapping
    Mapping of a large binary (e.g BLOB, LONGVARBINARY) column. A large binary column can be treated in two ways in terms of storage and retrieval.
    • Serialise the field into the large binary using ObjectOutputStream, and deserialise it back using ObjectInputStream - i.e Java serialisation
    • Store the field using a byte[] stream, and retrieve it in the same way.
    • Constructor Detail

      • AbstractLargeBinaryColumnMapping

        public AbstractLargeBinaryColumnMapping​(JavaTypeMapping mapping,
                                                RDBMSStoreManager storeMgr,
                                                Column col)
        Constructor.
        Parameters:
        mapping - Java type mapping
        storeMgr - Store Manager
        col - Column
    • Method Detail

      • initialize

        protected void initialize()
        Initialisation method, initialising the type info.
      • getObjectForBytes

        protected Object getObjectForBytes​(byte[] bytes,
                                           int param)