what is a metadata code example

Example 1: metadata

a set of data that describes and gives information about other data.

Example 2: metadata

Example: Me
Metadata: -Race: Human
	      -Gender: Male
          -Age: X

Example 3: metadata

Metadata: data about data. 3 types:
- Database Metadata
DatabaseMetaData dbMetaData = connection.getMetaData();
- Resultset Metadata
ResultSetMetaData rsMetaData = resultSet.getMetaData();

Example 4: meta data

It is used for to get column information not the actual data of column

Common methods are getColumnCount and getColumnLabel


//ResultSetMetaData itself does not contains any row data
        ResultSetMetaData rsmd = rs.getMetaData();
        
        
        // Metadata -- data about the data
        // ResultSetMetaData -- data about the ResultSet object that 
        contain our resulting rows and columns
        // for example column names, column counts .. and more

Tags:

Misc Example