@Test public void testGetSuperclass() throws Exception { assertEquals(Location.class, Postgres.getSuperclass(Location.class, Coordinate.class)); assertEquals(Location.class, Postgres.getSuperclass(Coordinate.class, Location.class)); assertEquals(Location.class, Postgres.getSuperclass(Location.class, Location.class)); assertEquals(Location.class, Postgres.getSuperclass(Location.class, null)); assertEquals(Location.class, Postgres.getSuperclass(null, Location.class)); assertEquals(null, Postgres.getSuperclass(null, null)); }
public static Class<? extends Entity> getSuperclass( Class<? extends Entity> c1, Class<? extends Entity> c2) { if (c1 == null) { return c2; } if (c2 == null) { return c1; } if (c2.isAssignableFrom(c1)) { return c2; } return c1; }
Postgres extends BaleenConsumer { public static Class<? extends Entity> getSuperclass( Class<? extends Entity> c1, Class<? extends Entity> c2) { if (c1 == null) { return c2; } if (c2 == null) { return c1; } if (c2.isAssignableFrom(c1)) { return c2; } return c1; } }
Postgres extends BaleenConsumer { public static Class<? extends Entity> getSuperclass( Class<? extends Entity> c1, Class<? extends Entity> c2) { if (c1 == null) { return c2; } if (c2 == null) { return c1; } if (c2.isAssignableFrom(c1)) { return c2; } return c1; }  }
Postgres extends BaleenConsumer { public static Class<? extends Entity> getSuperclass( Class<? extends Entity> c1, Class<? extends Entity> c2) { if (c1 == null) { return c2; } if (c2 == null) { return c1; } if (c2.isAssignableFrom(c1)) { return c2; } return c1; }  @Override void doInitialize(UimaContext aContext); static String addCrsToGeoJSON(String geoJson); static Class<? extends Entity> getSuperclass(
      Class<? extends Entity> c1, Class<? extends Entity> c2); String getTableName(String table); }
Postgres extends BaleenConsumer { public static Class<? extends Entity> getSuperclass( Class<? extends Entity> c1, Class<? extends Entity> c2) { if (c1 == null) { return c2; } if (c2 == null) { return c1; } if (c2.isAssignableFrom(c1)) { return c2; } return c1; }  @Override void doInitialize(UimaContext aContext); static String addCrsToGeoJSON(String geoJson); static Class<? extends Entity> getSuperclass(
      Class<? extends Entity> c1, Class<? extends Entity> c2); String getTableName(String table); static final String KEY_POSTGRES; static final String PARAM_SCHEMA; static final String PARAM_PREFIX; static final String PARAM_CONTENT_HASH_AS_ID; }