@Override public Object convert(Object destination, Object source, Class destClass, Class sourceClass) { LOGGER.debug("Mappen van {}", ReflectionToStringBuilder.toString(source)); if (source == null) { return null; } if (source instanceof String) { LocalDate dest = null; String datum = (String) source; dest = new LocalDate(datum); LOGGER.debug("naar {}", ReflectionToStringBuilder.toString(dest)); return dest; } else if (source instanceof LocalDate) { String dest = null; // check to see if the object already exists if (destination == null) { dest = ((LocalDate) source).toString("yyyy-MM-dd"); } return dest; } else { throw new MappingException( "Converter " + this.getClass().getSimpleName() + " used incorrectly. Arguments passed in were: " + destination + " and " + source); } }
@Override public String toString() { ReflectionToStringBuilder builder = new ReflectionToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); builder.setExcludeFieldNames("project", "files"); return builder.build(); }
public boolean compare(DoubleYoVariable variable01, DoubleYoVariable variable11) { return ReflectionToStringBuilder.toString( variable01, StandardToStringStyle.NO_CLASS_NAME_STYLE) .equals( ReflectionToStringBuilder.toString( variable11, StandardToStringStyle.NO_CLASS_NAME_STYLE)); }
@Override public String toString() { final ReflectionToStringBuilder reflectionToStringBuilder = new ReflectionToStringBuilder(this); reflectionToStringBuilder.setExcludeFieldNames( new String[] {"programa", "proyectos", "nivel", "estructuras", "estructuraPadre"}); return reflectionToStringBuilder.toString(); }
public String doCreate() { logger.debug("#. doCreate .s"); logger.debug("---" + ReflectionToStringBuilder.toString(user)); userDao.insert(user); user = new User(); return "input"; }
public String toString() { try { return org.apache.commons.lang3.builder.ReflectionToStringBuilder.toString(this); } catch (Exception e) { return ""; } }
/** * Queries for <tt>CapitalMarketsOrder</tt> with the provided <tt>scope</tt> in the background. * * <p>Note: the scopes were defined from the Designer. * * <p>The {@link import com.anypresence.sdk.callbacks.APCallback} callback allows you to run code * in the main UI thread. * * <p>Example: * * <pre>{@code * Map<String,String> params = new HashMap<String,String>(); * params.put("name", "test"); * CapitalMarketsOrder.queryInBackground("all", params, 0, 25, new APCallback<List<CapitalMarketsOrder>>() { * * public void finished(List<CapitalMarketsOrder> objects, Throwable ex) { * if (ex == null) { * Log.i(TAG, "Objects fetched!"); * } else { * Log.e(TAG, "Unable to fetch objects!", ex); * } * } * }); * }</pre> * * @see import com.anypresence.sdk.callbacks.APCallback * @param scope the scope to perform the query. * @param params a map of parameters. * @param offset offset for the query, or <tt>null</tt> for no offset. * @param limit max results to return back, <tt>null</tt> for no limit. * @param futureCallback the callback that handles the result of the request. */ public static List<CapitalMarketsOrder> queryInBackground( final String scope, Map<String, String> params, Integer offset, Integer limit, IAPFutureCallback<List<CapitalMarketsOrder>> futureCallback) { RemoteRequest.RemoteRequestBuilder remoteRequestBuilder = RemoteRailsConfig.getRouterAdapterByClassOrUseDefaultAdapter(CapitalMarketsOrder.class) .createRemoteRequestBuilder(scope, RequestMethod.GET, CapitalMarketsOrder.class); remoteRequestBuilder.query(scope); if (params != null) { remoteRequestBuilder.addToParameters(params); remoteRequestBuilder.context(params); } if (offset != null) { remoteRequestBuilder.addToParameters("offset", offset.toString()); } if (limit != null) { remoteRequestBuilder.addToParameters("limit", limit.toString()); } RemoteRequest remoteRequest = remoteRequestBuilder.createRemoteRequest(); if (DEBUG_MODE) { System.out.println(ReflectionToStringBuilder.reflectionToString(remoteRequest)); } return com.anypresence.sdk.APObject.queryInBackground( remoteRequest, CapitalMarketsOrder.class, futureCallback); }
public String input() { logger.debug("#. input .s"); logger.debug("---" + ReflectionToStringBuilder.toString(user)); getContext(); logger.debug("dao = " + userDao); userDao.findAll(); return "index"; }
public void opslaan(HypotheekPakket hypotheekPakket) { getTransaction(); LOGGER.info( "Opslaan {}", ReflectionToStringBuilder.toString(hypotheekPakket, ToStringStyle.SHORT_PREFIX_STYLE)); if (hypotheekPakket.getId() == null) { getSession().save(hypotheekPakket); } else { getSession().merge(hypotheekPakket); } getTransaction().commit(); }
/** * {@inheritDoc} * * @see edu.hm.basic.object.AbstractBasicObject#toString() */ @Override public String toString() { ReflectionToStringBuilder rsb = new ReflectionToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); rsb.setAppendStatics(false); rsb.setAppendTransients(true); rsb.setUpToClass(TwitterMessage.class); rsb.setExcludeFieldNames(getExclusionList()); return rsb.toString(); }
@Override public Contact save(Contact contact) { Contact result = new Contact(); BeanUtils.copyProperties(contact, result); LOGGER.debug("save {}", ReflectionToStringBuilder.toString(result)); try (DBFacade facade = this.dbFacadeFactory.create()) { // 判別是否有UID了 if (result.getId() == null) { facade.insert(result); } else { facade.update(result); } } return result; }
@Override public String toString() { final ReflectionToStringBuilder reflectionToStringBuilder = new ReflectionToStringBuilder(this); reflectionToStringBuilder.setExcludeFieldNames(new String[] {"proyecto"}); return reflectionToStringBuilder.toString(); }
public String toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE); }
@Override public String toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.SIMPLE_STYLE); }
@Override public String toString() { return ReflectionToStringBuilder.toStringExclude( this, "lhs", "rhs", "STATE_LHS", "STATE_RHS", "MAPPING_ARROW"); }
@Override public void dumpInfos() { logger.info(ReflectionToStringBuilder.toString(cluster.getMetadata())); }
@Override public String toString() { ReflectionToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE); return ReflectionToStringBuilder.toString(this); }
public String toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.NO_CLASS_NAME_STYLE); }
@Override public String toString() { return ReflectionToStringBuilder.toStringExclude(this, "listNews"); }
public boolean compare(YoVariableRegistry root0, YoVariableRegistry root1) { return ReflectionToStringBuilder.toString(root0, StandardToStringStyle.NO_CLASS_NAME_STYLE) .equals( ReflectionToStringBuilder.toString(root1, StandardToStringStyle.NO_CLASS_NAME_STYLE)); }
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
@Override public String toString() { // TODO Auto-generated method stub return ReflectionToStringBuilder.toString(this); }
public String toString() { return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE); }
/** * <b><em>Default {@code toString} method rendering all entity's properties.</em><br> * See {@link #toStringExcludedFields()} to exclude specific properties.</b> {@inheritDoc} * * @see #toStringExcludedFields() */ @Override public final String toString() { return ReflectionToStringBuilder.toStringExclude(this, toStringExcludedFields()); }