app/src/main/java/db/juhaku/juhakudb/core/NameResolver.java
/**
     * Resolves database item name for given type. E.g. by providing class of database entity method
     * will resolve database table name. And by giving {@link Field} of entity the database table's
     * column name will be determined by given field.
     *
     * @param type T type to provide for name resolving.
     * @return String value representing resolved name.
     * @throws NameResolveException if name is not resolvable. Exception should be caught on calling
     * class.
     *
     * @since 1.0.2
     */
Resolves database item name for given type.

@param type T type to provide for name resolving.
@return String value representing resolved name.
@throws NameResolveException if name is not resolvable. Exception should be caught on calling
class.


Resolves database item name for given type . @param type T type to provide for name resolving . @return String value representing resolved name . @throws NameResolveException if name is not resolvable . Exception should be caught on calling class .
public static final <T> String resolveName(T type) throws NameResolveException {
        if (type.getClass().isAssignableFrom(Field.class)) {
            return resolveFieldName((Field) type);
        } else {
            return resolveTableName((Class<?>) type);
        }
    }
public static final < T > String resolveName ( T type ) throws NameResolveException { if ( type . getClass ( ) . isAssignableFrom ( Field . class ) ) { return resolveFieldName ( ( Field ) type ) ; } else { return resolveTableName ( ( Class < ? > ) type ) ; } }
Resolves database item name for given type.
Resolves database item name for given type .