Kiran,
In web architecture having direct connectivity with database from client side is a dangerous wish, be it Java or any other technology so in Flex having no direct database connectivity was intentional, read my below reply on one of the other
thread
Flex does not have any API to connect directly with database that is justified since Flex essentially runs on client side inside Flash Player plug-in of your browser as compared to JSP that gets executed on the Server side and only result is passed to the client as HTML. So having direct connectivity from client application is not recommended and there is a risk of exposing your database credentials and table structure. However Adobe AIR provides SQL database engine for local database (SQLite) for providing offline/online functionality into Desktop based applications
Flex integrates very closely with Server side technologies such as Java/PHP/.NET etc. you can always have database connectivity logic in middle tier and that is advisable. I have covered the database connectivity part in my book thoroughly.
Thanks,