@Test public void testGetFidReader() throws IOException { FIDReader fidReader; fidReader = getFidReader("GT_TEST_POINT_ROWID_SDE"); assertNotNull(fidReader); assertTrue(fidReader instanceof FIDReader.SdeManagedFidReader); assertEquals(0, fidReader.getColumnIndex()); assertEquals("ROW_ID", fidReader.getFidColumn()); fidReader = getFidReader("GT_TEST_POINT_ROWID_USER"); assertNotNull(fidReader); assertTrue(fidReader instanceof FIDReader.UserManagedFidReader); assertEquals(0, fidReader.getColumnIndex()); assertEquals("ROW_ID", fidReader.getFidColumn()); fidReader = getFidReader("GT_TEST_POINT_ROWID_NONE"); assertNotNull(fidReader); assertTrue(fidReader instanceof FIDReader.ShapeFidReader); assertEquals(-1, fidReader.getColumnIndex()); assertEquals("GEOM.FID", fidReader.getFidColumn().toUpperCase()); }
public static FIDReader getFidReader(final ISession session, final SeTable table, final SeLayer layer, final SeRegistration reg) throws IOException { return session.issue(new Command<FIDReader>() { @Override public FIDReader execute(final ISession session, final SeConnection connection) throws SeException, IOException { return getFidReaderInternal(session, table, layer, reg); } }); }
FIDReader { public static FIDReader getFidReader(final ISession session, final SeTable table, final SeLayer layer, final SeRegistration reg) throws IOException { return session.issue(new Command<FIDReader>() { @Override public FIDReader execute(final ISession session, final SeConnection connection) throws SeException, IOException { return getFidReaderInternal(session, table, layer, reg); } }); } }
FIDReader { public static FIDReader getFidReader(final ISession session, final SeTable table, final SeLayer layer, final SeRegistration reg) throws IOException { return session.issue(new Command<FIDReader>() { @Override public FIDReader execute(final ISession session, final SeConnection connection) throws SeException, IOException { return getFidReaderInternal(session, table, layer, reg); } }); } private  FIDReader(String layerName, String fidColumn); }
FIDReader { public static FIDReader getFidReader(final ISession session, final SeTable table, final SeLayer layer, final SeRegistration reg) throws IOException { return session.issue(new Command<FIDReader>() { @Override public FIDReader execute(final ISession session, final SeConnection connection) throws SeException, IOException { return getFidReaderInternal(session, table, layer, reg); } }); } private  FIDReader(String layerName, String fidColumn); String getFidColumn(); void setColumnIndex(int fidIndex); int getColumnIndex(); long readFid(SdeRow row); String[] getPropertiesToFetch(SimpleFeatureType schema); static FIDReader getFidReader(final ISession session, final SeTable table,
            final SeLayer layer, final SeRegistration reg); }
FIDReader { public static FIDReader getFidReader(final ISession session, final SeTable table, final SeLayer layer, final SeRegistration reg) throws IOException { return session.issue(new Command<FIDReader>() { @Override public FIDReader execute(final ISession session, final SeConnection connection) throws SeException, IOException { return getFidReaderInternal(session, table, layer, reg); } }); } private  FIDReader(String layerName, String fidColumn); String getFidColumn(); void setColumnIndex(int fidIndex); int getColumnIndex(); long readFid(SdeRow row); String[] getPropertiesToFetch(SimpleFeatureType schema); static FIDReader getFidReader(final ISession session, final SeTable table,
            final SeLayer layer, final SeRegistration reg); static final FIDReader NULL_READER; }