Try to use 'componentState' attribute of type Object.
I want to save the state into database. tableState attribute is used for what? which event i can get to get state of table in the form of string?
Yes, there's also tableState attribute and honestly speaking I'm not sure which one to use. You can try both. State should be serializable so you can just map it as type serializable or create your own to-string transformer using java.io.ObjectOutputStream class.