Class ObjectStorageAdapter

  • All Implemented Interfaces:

    public class ObjectStorageAdapter
    extends java.lang.Object
    implements ObjectStorage
    Convenience adapter implementation for saving and restoring Strings and Java primitives or arrays of Strings and primitives for a row of a data table. The order in which the puts are done must the same order in which the gets are done.
    • Constructor Summary

      Constructor Description
      ObjectStorageAdapter​(DataTable table, int row)
      Constructor for ObjectStorageAdapter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getBoolean()
      Gets the boolean value.
      byte getByte()
      Gets the byte value.
      byte[] getBytes()
      Gets the byte array.
      double getDouble()
      Gets the double value.
      double[] getDoubles()
      Gets the double array.
      float getFloat()
      Gets the float value.
      float[] getFloats()
      Gets the float array.
      int getInt()
      Gets the int value.
      int[] getInts()
      Gets the int array.
      long getLong()
      Gets the long value.
      long[] getLongs()
      Gets the long array.
      short getShort()
      Gets the short value.
      short[] getShorts()
      Gets the short array.
      java.lang.String getString()
      Gets the String value.
      java.lang.String[] getStrings()
      Gets the array of Strings
      void putBoolean​(boolean value)
      Store a boolean value.
      void putByte​(byte value)
      Store a byte value.
      void putBytes​(byte[] value)
      Store a byte array.
      void putDouble​(double value)
      Store a double value.
      void putDoubles​(double[] value)
      Store a double array value.
      void putFloat​(float value)
      Store a float value.
      void putFloats​(float[] value)
      Store a float array.
      void putInt​(int value)
      Store an integer value.
      void putInts​(int[] value)
      Store an integer array.
      void putLong​(long value)
      Store a long value.
      void putLongs​(long[] value)
      Store a long array.
      void putShort​(short value)
      Store a short value.
      void putShorts​(short[] value)
      Store a short array.
      void putString​(java.lang.String value)
      Store a String value.
      void putStrings​(java.lang.String[] value)
      Store a String[] value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait