Example usage for org.apache.commons.lang.builder ToStringStyle SHORT_PREFIX_STYLE

List of usage examples for org.apache.commons.lang.builder ToStringStyle SHORT_PREFIX_STYLE

Introduction

In this page you can find the example usage for org.apache.commons.lang.builder ToStringStyle SHORT_PREFIX_STYLE.

Prototype

ToStringStyle SHORT_PREFIX_STYLE

To view the source code for org.apache.commons.lang.builder ToStringStyle SHORT_PREFIX_STYLE.

Click Source Link

Document

The short prefix toString style.

Usage

From source file:com.shopzilla.api.client.model.Offer.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id).append("mid", mid)
            .append("price", price).append("categoryId", categoryId).append("title", title)
            .append("description", description).append("URL", URL).append("detailURL", detailURL).toString();
}

From source file:com.google.code.or.common.glossary.Pair.java

/**
 * //from  w  w w  .ja  v a2 s  . co m
 */
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("before", before)
            .append("after", after).toString();
}

From source file:com.zju.ccnt.or.common.glossary.Pair.java

/**
 * //w w w . j a  va  2 s  . com
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("before", before)
            .append("after", after).toString();
}

From source file:com.google.code.or.binlog.impl.variable.status.AbstractStatusVariable.java

/**
 * //from   w w  w .  j ava  2 s.  c  om
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).toString();
}

From source file:cyrille.hibernate.temporal.sinistre.DommageTest.java

@Override
protected void setUp() throws Exception {
    super.setUp();
    ToStringBuilder.setDefaultStyle(ToStringStyle.SHORT_PREFIX_STYLE);

    AnnotationConfiguration configuration = new Db2AnnotationConfiguration();
    configuration.configure();/*w  ww. j  av  a 2 s .c o m*/
    configuration.addAnnotatedClass(Sinistre.class).addAnnotatedClass(SinistreVersion.class);
    configuration.addAnnotatedClass(Evenement.class).addAnnotatedClass(EvenementVersion.class);
    configuration.addAnnotatedClass(Dommage.class).addAnnotatedClass(DommageVersion.class);
    configuration.addAnnotatedClass(DommageCorporel.class).addAnnotatedClass(DommageCorporelVersion.class);
    this.sessionFactory = configuration.buildSessionFactory();
}

From source file:com.zju.ccnt.or.common.glossary.Row.java

/**
 * /*from w  w  w.j  av  a2  s . c  om*/
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("database", database)
            .append("table", table).append("columns", columns).toString();
}

From source file:com.google.code.or.binlog.impl.event.BinlogEventV4HeaderImpl.java

/**
 * /*from  w ww .  j a  v  a2  s. co m*/
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("timestamp", timestamp)
            .append("eventType", eventType).append("serverId", serverId).append("eventLength", eventLength)
            .append("nextPosition", nextPosition).append("flags", flags)
            .append("timestampOfReceipt", timestampOfReceipt).toString();
}

From source file:com.zju.ccnt.or.binlog.impl.event.UnKnownEvent.java

/**
 * /* w w w. j  a va 2  s .c  o  m*/
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("Unknown event").toString();
}

From source file:com.shopzilla.api.client.model.Merchant.java

@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id).append("name", name)
            .toString();/*w w w.java2 s  .com*/
}

From source file:com.google.code.or.binlog.impl.variable.status.QFlags2Code.java

/**
 * //w  ww  . j  a  v a 2 s .co m
 */
@Override
public String toString() {
    return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("flags", flags).toString();
}