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

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

Introduction

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

Prototype

ToStringStyle MULTI_LINE_STYLE

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

Click Source Link

Document

The multi line toString style.

Usage

From source file:opendbcopy.plugin.model.exception.MissingAttributeException.java

/**
 * DOCUMENT ME!/* w ww.  j  ava 2  s.co m*/
 *
 * @return DOCUMENT ME!
 */
public String getAvailableAttributes() {
    return ToStringBuilder.reflectionToString(element.getAttributes(), ToStringStyle.MULTI_LINE_STYLE);
}

From source file:opendbcopy.plugin.model.exception.MissingElementException.java

/**
 * DOCUMENT ME!//from ww  w  .j  a va2 s . c o  m
 *
 * @return DOCUMENT ME!
 */
public String getAvailableElements() {
    if (element == null) {
        return ToStringBuilder.reflectionToString(pluginModel, ToStringStyle.MULTI_LINE_STYLE);
    } else {
        return ToStringBuilder.reflectionToString(element, ToStringStyle.MULTI_LINE_STYLE);
    }
}

From source file:opendbcopy.plugin.model.exception.UnsuppertedElementException.java

/**
 * DOCUMENT ME!
 *
 * @return DOCUMENT ME!
 */
public String getAvailableElements() {
    return ToStringBuilder.reflectionToString(element, ToStringStyle.MULTI_LINE_STYLE);
}

From source file:org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.java

/**
 * Create the {@link org.apache.commons.pool.KeyedObjectPool}, pooling
 * the {@link PersistenceBroker} instances - override this method to
 * implement your own pool and {@link org.apache.commons.pool.KeyedPoolableObjectFactory}.
 *///from   w  ww. ja v a  2 s  .co m
private GenericKeyedObjectPool createPool() {
    GenericKeyedObjectPool.Config conf = poolConfig.getKeyedObjectPoolConfig();
    if (log.isDebugEnabled())
        log.debug("PersistenceBroker pool will be setup with the following configuration "
                + ToStringBuilder.reflectionToString(conf, ToStringStyle.MULTI_LINE_STYLE));
    GenericKeyedObjectPool pool = new GenericKeyedObjectPool(null, conf);
    pool.setFactory(new PersistenceBrokerFactoryDefaultImpl.PBKeyedPoolableObjectFactory(this, pool));
    return pool;
}

From source file:org.apache.ojb.broker.metadata.ArgumentDescriptor.java

/**
 * Provide a string representation of this object
 *
 * @return a string representation of this object
 *//* w w w . j a  va 2s .co  m*/
public String toString() {
    ToStringBuilder buf = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    switch (this.fieldSource) {
    case SOURCE_FIELD: {
        buf.append("fieldRefName", this.fieldRefName);
        buf.append("returnedByProcedure", this.returnedByProcedure);
        break;
    }
    case SOURCE_NULL: {
        break;
    }
    case SOURCE_VALUE: {
        buf.append("constantValue", this.constantValue);
        break;
    }
    }
    return buf.toString();
}

From source file:org.apache.ojb.broker.metadata.ClassDescriptor.java

/**
 * Return a string representation of this class.
 *///w  ww . j  a  v a 2 s .  c  o m
public String toString() {
    ToStringBuilder buf = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    return buf.append("classNameOfObject", getClassNameOfObject()).append("tableName", getTableName())
            .append("schema", getSchema()).append("isInterface", isInterface())
            .append("extendClassNames", getExtentClassNames().toString())
            //.append("[fieldDescriptions:")
            .append(getFieldDescriptions())
            //.append("]")
            .toString();
}

From source file:org.apache.ojb.broker.metadata.DeleteProcedureDescriptor.java

/**
 * Provide a string representation of this object
 *
 * @return a string representation of this object
 *//* ww  w . j  a va 2s. c  o  m*/
public String toString() {
    ToStringBuilder buf = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    buf.append("name", this.getName());
    buf.append("includePkFieldsOnly", this.getIncludePkFieldsOnly());
    if (this.hasReturnValue()) {
        buf.append("returnFieldRefName", this.getReturnValueFieldRefName());
    }
    return buf.toString();
}

From source file:org.apache.ojb.broker.metadata.DescriptorRepository.java

/**
 * returns a string representation//  w w  w .j a v  a 2s . c  o  m
 */
public String toString() {
    Iterator it = descriptorTable.entrySet().iterator();
    ToStringBuilder buf = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    String className = "class name: ";
    String tableName = "> table name: ";
    while (it.hasNext()) {
        Map.Entry me = (Map.Entry) it.next();
        ClassDescriptor descriptor = (ClassDescriptor) me.getValue();
        buf.append(className + me.getKey() + " =", tableName + descriptor.getFullTableName());
    }
    return buf.toString();
}

From source file:org.apache.ojb.broker.metadata.InsertProcedureDescriptor.java

/**
 * Provide a string representation of this object
 *
 * @return a string representation of this object
 *//*  w  w  w.ja va2 s.  c  o m*/
public String toString() {
    ToStringBuilder buf = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    buf.append("name", this.getName());
    buf.append("includeAllFields", this.getIncludeAllFields());
    if (this.hasReturnValue()) {
        buf.append("returnFieldRefName", this.getReturnValueFieldRefName());
    }
    return buf.toString();
}

From source file:org.apache.ojb.broker.metadata.JdbcConnectionDescriptor.java

/**
 * Returns a String representation of this class.
 */// w  ww .j a va 2 s .com
public String toString() {
    ToStringBuilder buf = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
    buf.append("jcd-alias", m_jcdAlias).append("default-connection", defaultConnection).append("dbms", m_Dbms)
            .append("jdbc-level", m_JdbcLevel).append("driver", m_Driver).append("protocol", m_Protocol)
            .append("sub-protocol", m_SubProtocol).append("db-alias", m_DbAlias).append("user", m_UserName)
            .append("password", "*****").append("eager-release", m_eagerRelease)
            .append("ConnectionPoolDescriptor", cpd).append("batchMode", m_batchMode)
            .append("useAutoCommit", getUseAutoCommitAsString(useAutoCommit))
            .append("ignoreAutoCommitExceptions", ignoreAutoCommitExceptions)
            .append("sequenceDescriptor", sequenceDescriptor);
    return buf.toString();
}