private void checkTypeConfiguration(@Nullable String cacheName,TypeKind kind,String typeName,JdbcTypeField[] flds) throws CacheException {
  try {
    if (kind == TypeKind.BUILT_IN) {
      if (flds.length != 1)       throw new CacheException("More than one field for built in type " + "[cache=" + U.maskName(cacheName) + ", type="+ typeName+ " ]");
      JdbcTypeField field=flds[0];
      if (field.getDatabaseFieldName() == null)       throw new CacheException("Missing database name in mapping description [cache=" + U.maskName(cacheName) + ", type="+ typeName+ " ]");
      field.setJavaFieldType(Class.forName(typeName));
    }
 else     for (    JdbcTypeField field : flds) {
      if (field.getDatabaseFieldName() == null)       throw new CacheException("Missing database name in mapping description " + "[cache=" + U.maskName(cacheName) + ", type="+ typeName+ " ]");
      if (field.getJavaFieldName() == null)       throw new CacheException("Missing field name in mapping description " + "[cache=" + U.maskName(cacheName) + ", type="+ typeName+ " ]");
      if (field.getJavaFieldType() == null)       throw new CacheException("Missing field type in mapping description " + "[cache=" + U.maskName(cacheName) + ", type="+ typeName+ " ]");
    }
  }
 catch (  ClassNotFoundException e) {
    throw new CacheException("Failed to find class: " + typeName,e);
  }
}

private void checkTypeConfiguration ( @ Nullable String cacheName , TypeKind kind , String typeName , JdbcTypeField [ ] flds ) throws CacheException { try { if ( kind == TypeKind . BUILT_IN ) { if ( flds . length != 1 ) throw new CacheException ( "More than one field for built in type " + "[cache=" + U . maskName ( cacheName ) + ", type=" + typeName + " ]" ) ; JdbcTypeField field = flds [ 0 ] ; if ( field . getDatabaseFieldName ( ) == null ) throw new CacheException ( "Missing database name in mapping description [cache=" + U . maskName ( cacheName ) + ", type=" + typeName + " ]" ) ; field . setJavaFieldType ( Class . forName ( typeName ) ) ; } else for ( JdbcTypeField field : flds ) { if ( field . getDatabaseFieldName ( ) == null ) throw new CacheException ( "Missing database name in mapping description " + "[cache=" + U . maskName ( cacheName ) + ", type=" + typeName + " ]" ) ; if ( field . getJavaFieldName ( ) == null ) throw new CacheException ( "Missing field name in mapping description " + "[cache=" + U . maskName ( cacheName ) + ", type=" + typeName + " ]" ) ; if ( field . getJavaFieldType ( ) == null ) throw new CacheException ( "Missing field type in mapping description " + "[cache=" + U . maskName ( cacheName ) + ", type=" + typeName + " ]" ) ; } } catch ( ClassNotFoundException e ) { throw new CacheException ( "Failed to find class: " + typeName , e ) ; } }
checks if type configured properly .
