public static String resolveFullyQualifiedColumnName ( SQLiteDatabaseSchema schema , SQLiteModelMethod method , String className , String columnName ) { Finder < SQLProperty > currentEntity = method . getEntity ( ) ; if ( StringUtils . hasText ( className ) ) { currentEntity = schema . getEntityBySimpleName ( className ) ; AssertKripton . assertTrueOrUnknownClassInJQLException ( currentEntity != null , method , className ) ; } SQLProperty currentProperty = currentEntity . findPropertyByName ( columnName ) ; AssertKripton . assertTrueOrUnknownPropertyInJQLException ( currentProperty != null , method , columnName ) ; return ( StringUtils . hasText ( className ) ? currentEntity . getTableName ( ) + "." : "" ) + currentProperty . columnName ; }
given a fully qualified property name it will be transformed in associated column name . If class or property does not exist an exception will be thrown