public E get(final long id) {
        SQLiteDatabase database = openDB();
        try {
            Cursor cursor = database.query(tableName, null, primaryKey.getName() + " = ?", new String[]{Long.toString(id)}, null, null, null);
            if (cursor.getCount() == 0) {
                return null;
            }
            return CursorOperation.tryOnCursor(cursor, new CursorOperation<E>() {
                @Override
                public E execute(final Cursor cursor) {
                    return CombinedCursorImpl.create(context, cursor, entityInfo, entityClass).getCurrent();
                }
            });
        } finally {
            closeDB(database);
        }
    }
public E get(final long id) {
        SQLiteDatabase database = openDB();
        try {
            Cursor cursor = database.query(tableName, null, primaryKey.getName() + " = ?", new String[]{Long.toString(id)}, null, null, null);
            if (cursor.getCount() == 0) {
                return null;
            }
            return CursorOperation.tryOnCursor(cursor, new CursorOperation<E>() {
                @Override
                public E execute(final Cursor cursor) {
                    return CombinedCursorImpl.create(context, cursor, entityInfo, entityClass).getCurrent();
                }
            });
        } finally {
            closeDB(database);
        }
    }
public E get ( final long id ) { SQLiteDatabase database = openDB ( ) ; try { Cursor cursor = database . query ( tableName , null , primaryKey . getName ( ) + " = ?" , new String [ ] { Long . toString ( id ) } , null , null , null ) ; if ( cursor . getCount ( ) == 0 ) { return null ; } return CursorOperation . tryOnCursor ( cursor , new CursorOperation < E > ( ) { @ Override public E execute ( final Cursor cursor ) { return CombinedCursorImpl . create ( context , cursor , entityInfo , entityClass ) . getCurrent ( ) ; } } ) ; } finally { closeDB ( database ) ; } }
Gets a specific {@link Entity} according to the given id

@param id primary key of the {@link Entity}
@return The {@link Entity} to the given id, or null if non was found
Gets a specific { @link Entity } according to the given id