by using metadata we can get All of the above code example
Example: Method used for getting metadata of a database in jdbc
To get the metadata from your source, call "getMetaData()" method using the Connection object.
To get the metadata from your source, call "getMetaData()" method using the Connection object.