/** * <p>Initialize filler for given object class.</p> * @param pClass object class * @throws Exception - an exception **/ public final synchronized void init(final Class<T> pClass) throws Exception { this.objectClass = pClass; this.fieldsNames = new HashSet<String>(); Field[] fields = getUtlReflection().retrieveFields(this.objectClass); for (Field field : fields) { this.fieldsNames.add(field.getName()); } }
/** * <p>Initialize converter for given object class.</p> * @param pClass object class * @throws Exception - an exception **/ public final synchronized void init(final Class<T> pClass) throws Exception { this.objectClass = pClass; this.fieldsNames = new HashSet<String>(); Field[] fields = getUtlReflection().retrieveFields(this.objectClass); for (Field field : fields) { this.fieldsNames.add(field.getName()); } }
/** * <p>Get thing for given class and thing name.</p> * @param pClass a Class * @param pFieldName Thing Name * @return a thing **/ @Override public final Field getFor(final Class<?> pClass, final String pFieldName) { Map<String, Field> fldMap = this.rapiFieldsMap.get(pClass); if (fldMap == null) { // There is no way to get from Map partially initialized bean // in this double-checked locking implementation // cause putting to the Map fully initialized bean synchronized (this.rapiFieldsMap) { fldMap = this.rapiFieldsMap.get(pClass); if (fldMap == null) { fldMap = new HashMap<String, Field>(); Field[] fields = getUtlReflection().retrieveFields(pClass); for (Field field : fields) { fldMap.put(field.getName(), field); } this.rapiFieldsMap.put(pClass, fldMap); } } } return fldMap.get(pFieldName); }
/** * <p>Initialize filler for given object class.</p> * @param pClass object class * @throws Exception - an exception **/ public final synchronized void init(final Class<T> pClass) throws Exception { this.objectClass = pClass; this.fieldsNames.clear(); this.gettersMap.clear(); this.settersMap.clear(); Field[] fields = getUtlReflection().retrieveFields(this.objectClass); for (Field field : fields) { Method getter = getUtlReflection() .retrieveGetterForField(pClass, field.getName()); Method setter = getUtlReflection() .retrieveSetterForField(pClass, field.getName()); this.gettersMap.put(field.getName(), getter); this.settersMap.put(field.getName(), setter); this.fieldsNames.add(field.getName()); } }
Field[] fields = getUtlReflection().retrieveFields(pClazz); for (Field field : fields) { if (this.mngSettings.getFieldsSettings()
+ "/" + subFolder + FOLDER_CLASS_TO_FS + "/" + clazz.getSimpleName() + ".xml"); Field[] fields = getUtlReflection().retrieveFields(clazz); if (propsClassToSetting != null && this.isShowDebugMessages) {
Field[] fields = getUtlReflection().retrieveFields(clazz); for (Field field : fields) { FieldSql fieldSql = tableSql.getFieldsMap().get(field.getName());