Categories
android java sqlite

Column type NONE in sqlite

I have sqlite database that I using it with Android platform.

I have created the table in run-time. My SQL was:

CREATE TABLE funcs ( id INTEGER PRIMARY KEY AUTOINCREMENT, func_name TEXT, param NONE)

Each row in this table present function call in my program. And the parameter change it type for each row.

And also, I have been created class that preset one row of the table

class FunctionDB
{
private ContentValues mContentValues;
public FunctionDB(Cursor cursor)
{
DatabaseUtils.cursorRowToContentValues(cursor, this.mContentValues);
}
public int getID()
{
return this.mContentValues.getAsInteger("id");
}
public String getName()
{
return this.mContentValues.getAsString("func_name");
}
public ??? getParam()
{
return this.mContentValues.getAs???("param");
}
}

I want that this class be general function type.
Thats means, that I want by checking the name of the function, determine what is the type of the param column.

How can I receive the generic type of the param column in my code?