/** * Gets the {@link LookupInfo} instance for call to the {@link #readColumn(LookupInfo, Method, Dispatcher)} method. * The call to those two methods must be in the same thread, and no other metadata object shall be queried between * the two calls (unless {@link LookupInfo#setMetadataType(Class)} is invoked again). * * @param type the interface class. This is mapped to the table name in the database. */ final LookupInfo getLookupInfo(final Class<?> type) { final LookupInfo info = lastUsed.get(); info.setMetadataType(type); return info; }
/** * Gets the {@link LookupInfo} instance for call to the {@link #readColumn(LookupInfo, Method, Dispatcher)} method. * The call to those two methods must be in the same thread, and no other metadata object shall be queried between * the two calls (unless {@link LookupInfo#setMetadataType(Class)} is invoked again). * * @param type the interface class. This is mapped to the table name in the database. */ final LookupInfo getLookupInfo(final Class<?> type) { final LookupInfo info = lastUsed.get(); info.setMetadataType(type); return info; }
info.setMetadataType(type); // Precaution in case method.invoke(cache) fetched other metadata. value = source.readColumn(info, method, this); if (value != null) { boolean hasValue = false; for (final String dep : dependencies.value()) { info.setMetadataType(type); hasValue |= (fetchValue(info, impl.getMethod(dep)) != null);
info.setMetadataType(type); // Precaution in case method.invoke(cache) fetched other metadata. value = source.readColumn(info, method, this); if (value != null) { boolean hasValue = false; for (final String dep : dependencies.value()) { info.setMetadataType(type); hasValue |= (fetchValue(info, impl.getMethod(dep)) != null);
for (final Map.Entry<String,Object> entry : map.entrySet()) { method = subType.getMethod(methods.get(entry.getKey())); info.setMetadataType(subType); final Object p = readColumn(info, method, toSearch); if (p != null) {
for (final Map.Entry<String,Object> entry : map.entrySet()) { method = subType.getMethod(methods.get(entry.getKey())); info.setMetadataType(subType); final Object p = readColumn(info, method, toSearch); if (p != null) {