]> source.dussan.org Git - jackcess.git/commitdiff
make RowIdImpl serializable; clean up some formatting
authorJames Ahlborn <jtahlborn@yahoo.com>
Tue, 15 Oct 2013 01:16:46 +0000 (01:16 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Tue, 15 Oct 2013 01:16:46 +0000 (01:16 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@831 f203690c-595d-4dc9-a70b-905162fa7fd2

src/main/java/com/healthmarketscience/jackcess/impl/RowIdImpl.java
src/main/java/com/healthmarketscience/jackcess/impl/RowImpl.java

index 7524f1c1fe461bd45783ca3b53100b5e0df3a48b..3648c91e263f47d7ca88f41c497a0ec9177eaab5 100644 (file)
@@ -27,8 +27,10 @@ King of Prussia, PA 19406
 
 package com.healthmarketscience.jackcess.impl;
 
-import org.apache.commons.lang.builder.CompareToBuilder;
+import java.io.Serializable;
+
 import com.healthmarketscience.jackcess.RowId;
+import org.apache.commons.lang.builder.CompareToBuilder;
 
 
 /**
@@ -36,8 +38,10 @@ import com.healthmarketscience.jackcess.RowId;
  *
  * @author James Ahlborn
  */
-public class RowIdImpl implements RowId
+public class RowIdImpl implements RowId, Serializable
 {
+  private static final long serialVersionUID = 20131014L;  
+
   /** special page number which will sort before any other valid page
       number */
   public static final int FIRST_PAGE_NUMBER = -1;
index 31f2c43c38e06ff9fc0952cfc5598f843d22b584..2191bf26d63ba3723162632294dc3b9023a13970 100644 (file)
@@ -37,19 +37,16 @@ public class RowImpl extends LinkedHashMap<String,Object> implements Row
 
   private final RowIdImpl _id;
 
-  public RowImpl(RowIdImpl id) 
-  {
+  public RowImpl(RowIdImpl id) {
     _id = id;
   }
 
-  public RowImpl(RowIdImpl id, int expectedSize) 
-  {
+  public RowImpl(RowIdImpl id, int expectedSize) {
     super(expectedSize);
     _id = id;
   }
 
-  public RowImpl(Row row) 
-  {
+  public RowImpl(Row row) {
     super(row);
     _id = (RowIdImpl)row.getId();
   }