@Test public void testAliasing() { final EasyCursor cursor = TestObjectCursorBuilder.getCursor("int"); final int intIndex = cursor.getColumnIndex("int"); final int idIndex = cursor.getColumnIndex("_id"); assertEquals(intIndex, idIndex); }
@Override public int getColumnIndex(final String columnName) { final String column = applyAlias(columnName); return mFieldAccessor.getFieldIndexByName(column); }
EasyObjectCursor extends AbstractCursor implements EasyCursor { @Override public int getColumnIndex(final String columnName) { final String column = applyAlias(columnName); return mFieldAccessor.getFieldIndexByName(column); } }
EasyObjectCursor extends AbstractCursor implements EasyCursor { @Override public int getColumnIndex(final String columnName) { final String column = applyAlias(columnName); return mFieldAccessor.getFieldIndexByName(column); } EasyObjectCursor(final Class<T> clazz, final List<T> objectList, final String _idAlias);  EasyObjectCursor(final Class<T> clazz, final List<T> objectList, final String _idAlias, final EasyQueryModel model);  EasyObjectCursor(final Class<T> clazz,
                            final T[] objectArray,
                            final String _idAlias);  EasyObjectCursor(final Class<T> clazz,
                            final T[] objectArray,
                            final String _idAlias,
                            final EasyQueryModel model); }
EasyObjectCursor extends AbstractCursor implements EasyCursor { @Override public int getColumnIndex(final String columnName) { final String column = applyAlias(columnName); return mFieldAccessor.getFieldIndexByName(column); } EasyObjectCursor(final Class<T> clazz, final List<T> objectList, final String _idAlias);  EasyObjectCursor(final Class<T> clazz, final List<T> objectList, final String _idAlias, final EasyQueryModel model);  EasyObjectCursor(final Class<T> clazz,
                            final T[] objectArray,
                            final String _idAlias);  EasyObjectCursor(final Class<T> clazz,
                            final T[] objectArray,
                            final String _idAlias,
                            final EasyQueryModel model); @Override byte[] getBlob(final String fieldName); @Override boolean getBoolean(final String fieldName); @Override int getColumnIndex(final String columnName); @Override int getColumnIndexOrThrow(final String columnName); @Override String getColumnName(final int columnIndex); @Override String[] getColumnNames(); @Override int getCount(); @Override double getDouble(final int column); @Override double getDouble(final String fieldName); @Override float getFloat(final int column); @Override float getFloat(final String fieldName); @Override int getInt(final int column); @Override int getInt(final String fieldName); T getItem(final int position); @Override long getLong(final int column); @Override long getLong(final String fieldName); Object getObject(final int column); Object getObject(final String fieldName); @Override EasyQueryModel getQueryModel(); @Override short getShort(final int column); short getShort(final String fieldName); @Override String getString(final int column); @Override String getString(final String fieldName); boolean isDebugEnabled(); void setDebugEnabled(final boolean enabled); @Override boolean isNull(final int column); @Override boolean isNull(final String fieldName); @Override boolean optBoolean(final String fieldName); @Override boolean optBoolean(final String fieldName, final boolean fallback); @Override Boolean optBooleanAsWrapperType(final String fieldName); @Override double optDouble(final String fieldName); @Override double optDouble(final String fieldName, final double fallback); @Override Double optDoubleAsWrapperType(final String fieldName); @Override float optFloat(final String fieldName); @Override float optFloat(final String fieldName, final float fallback); @Override Float optFloatAsWrapperType(final String fieldName); @Override int optInt(final String fieldName); @Override int optInt(final String fieldName, final int fallback); @Override Integer optIntAsWrapperType(final String fieldName); @Override long optLong(final String fieldName); @Override long optLong(final String fieldName, final long fallback); @Override Long optLongAsWrapperType(final String fieldName); short optShort(final String fieldName); short optShort(final String fieldName, final short fallback); Short optShortAsWrapperType(final String fieldName); @Override String optString(final String fieldName); @Override String optString(final String fieldName, final String fallback); }
EasyObjectCursor extends AbstractCursor implements EasyCursor { @Override public int getColumnIndex(final String columnName) { final String column = applyAlias(columnName); return mFieldAccessor.getFieldIndexByName(column); } EasyObjectCursor(final Class<T> clazz, final List<T> objectList, final String _idAlias);  EasyObjectCursor(final Class<T> clazz, final List<T> objectList, final String _idAlias, final EasyQueryModel model);  EasyObjectCursor(final Class<T> clazz,
                            final T[] objectArray,
                            final String _idAlias);  EasyObjectCursor(final Class<T> clazz,
                            final T[] objectArray,
                            final String _idAlias,
                            final EasyQueryModel model); @Override byte[] getBlob(final String fieldName); @Override boolean getBoolean(final String fieldName); @Override int getColumnIndex(final String columnName); @Override int getColumnIndexOrThrow(final String columnName); @Override String getColumnName(final int columnIndex); @Override String[] getColumnNames(); @Override int getCount(); @Override double getDouble(final int column); @Override double getDouble(final String fieldName); @Override float getFloat(final int column); @Override float getFloat(final String fieldName); @Override int getInt(final int column); @Override int getInt(final String fieldName); T getItem(final int position); @Override long getLong(final int column); @Override long getLong(final String fieldName); Object getObject(final int column); Object getObject(final String fieldName); @Override EasyQueryModel getQueryModel(); @Override short getShort(final int column); short getShort(final String fieldName); @Override String getString(final int column); @Override String getString(final String fieldName); boolean isDebugEnabled(); void setDebugEnabled(final boolean enabled); @Override boolean isNull(final int column); @Override boolean isNull(final String fieldName); @Override boolean optBoolean(final String fieldName); @Override boolean optBoolean(final String fieldName, final boolean fallback); @Override Boolean optBooleanAsWrapperType(final String fieldName); @Override double optDouble(final String fieldName); @Override double optDouble(final String fieldName, final double fallback); @Override Double optDoubleAsWrapperType(final String fieldName); @Override float optFloat(final String fieldName); @Override float optFloat(final String fieldName, final float fallback); @Override Float optFloatAsWrapperType(final String fieldName); @Override int optInt(final String fieldName); @Override int optInt(final String fieldName, final int fallback); @Override Integer optIntAsWrapperType(final String fieldName); @Override long optLong(final String fieldName); @Override long optLong(final String fieldName, final long fallback); @Override Long optLongAsWrapperType(final String fieldName); short optShort(final String fieldName); short optShort(final String fieldName, final short fallback); Short optShortAsWrapperType(final String fieldName); @Override String optString(final String fieldName); @Override String optString(final String fieldName, final String fallback); static final String DEFAULT_STRING; static final boolean DEFAULT_BOOLEAN; static final double DEFAULT_DOUBLE; static final float DEFAULT_FLOAT; static final int DEFAULT_INT; static final long DEFAULT_LONG; static final short DEFAULT_SHORT; }