storm-apt/api/src/main/java/com/turbomanage/storm/SQLiteDao.java
public T asObject(Cursor c) {
		try {
			if (c.getCount() == 1) {
				c.moveToFirst();
				return th.newInstance(c);
			} else if (c.getCount() > 1) {
				throw new TooManyResultsException("Cursor returned " + c.getCount() + " rows");
			}
			return null;
		} finally {
			c.close();
		}
	}
public T asObject(Cursor c) {
		try {
			if (c.getCount() == 1) {
				c.moveToFirst();
				return th.newInstance(c);
			} else if (c.getCount() > 1) {
				throw new TooManyResultsException("Cursor returned " + c.getCount() + " rows");
			}
			return null;
		} finally {
			c.close();
		}
	}
public T asObject ( Cursor c ) { try { if ( c . getCount ( ) == 1 ) { c . moveToFirst ( ) ; return th . newInstance ( c ) ; } else if ( c . getCount ( ) > 1 ) { throw new TooManyResultsException ( "Cursor returned " + c . getCount ( ) + " rows" ) ; } return null ; } finally { c . close ( ) ; } }
Converts a {@link Cursor} to an object. If there is more than one
row in the Cursor, throws {@link TooManyResultsException}.

@param c Cursor
@return An entity
Converts a { @link Cursor } to an object . If there is more than one row in the Cursor throws { @link TooManyResultsException } .