public long getLong ( int columnIndex ) { Object fieldValue = data [ columnIndex ] ; if ( fieldValue == null ) { return 0 ; } if ( fieldValue instanceof Number ) { return ( ( Number ) fieldValue ) . longValue ( ) ; } throw new DBFException ( "Unsupported type for Number at column:" + columnIndex + " " + fieldValue . getClass ( ) . getCanonicalName ( ) ) ; }
Reads the data as long