001package com.nimbusds.infinispan.persistence.sql;
002
003
004/**
005 * Retrieved SQL record.
006 */
007public interface RetrievedSQLRecord {
008        
009        
010        /**
011         * Gets a value from the record.
012         *
013         * @param fieldName The field name.
014         *
015         * @return The value of the field contained in the record.
016         */
017        Object get(String fieldName);
018        
019        
020        /**
021         * Gets a converted value from the record.
022         *
023         * @param fieldName The field name.
024         * @param type      The conversion type
025         * @param <U>       The conversion type parameter
026         *
027         * @return The value of the field contained in the record.
028         */
029        <U> U get(String fieldName, Class<? extends U> type);
030        
031        
032        /**
033         * Gets the number of fields in the record.
034         *
035         * @return The number of fields in the record.
036         */
037        int size();
038}