replaced the order of @param.
fixed @var type to be string.
mostly @param type fixes.
add a method to retrieve table name (for Dao etc.).