// ----------------------------------------------------------------------
 // toString METHOD
 // ----------------------------------------------------------------------
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append(bookOrderId);
   sb.append("|");
   sb.append(bookId);
   return sb.toString();
 }
示例#2
0
  @Override
  public String toString() {
    StringBuffer sb = new StringBuffer();

    if (this.getId() != null) {
      sb.append(String.format("ID = %d", this.getId()));
    }
    if (StringUtil.isVazia(this.getNome())) {
      if (sb.length() > 0) {
        sb.append(", ");
      }
      sb.append(String.format("nome = '%s'", this.getNome()));
    }
    if (this.getTipo() != null) {
      if (sb.length() > 0) {
        sb.append(", ");
      }
      sb.append(String.format("tipo = '%s'", this.getTipo()));
    }
    try {
      PessoaIdentificacao cpfCnpj = PessoaUtils.recuperarCpfCnpj(this);
      if (cpfCnpj != null) {
        if (sb.length() > 0) {
          sb.append(", ");
        }
        sb.append(String.format("CPF/CNPJ = %s", cpfCnpj.getIdentificacao()));
      }
    } catch (PessoaIdentificacaoNaoEncontradaException e) {
    }
    return sb.toString();
  }
示例#3
0
 /** display semanticReference with attribute inside class */
 public String display() {
   StringBuffer sb = new StringBuffer();
   if (this.getCategoryid() != null) sb.append(this.getCategoryid() + " ");
   if (this.getName() != null) sb.append(this.getName() + " ");
   if (this.getDescription() != null) sb.append(this.getDescription() + " ");
   if (this.getImageurl() != null) sb.append(this.getImageurl() + " ");
   return sb.toString();
 }
 public String getPersonDetailGroup() {
   StringBuffer personDetailGroup = new StringBuffer();
   personDetailGroup.append(getBudgetLineItem().getCostElementBO().getDescription());
   if (getBudgetLineItem().getGroupName() != null) {
     personDetailGroup.append(" (");
     personDetailGroup.append(getBudgetLineItem().getGroupName());
     personDetailGroup.append(")");
   }
   return personDetailGroup.toString();
 }
示例#5
0
  public String displayString() {
    StringBuffer sbuff = new StringBuffer();
    sbuff
        .append("Project ")
        .append(getId())
        .append(": ")
        .append(getName())
        .append(", ")
        .append(getDescription());

    return sbuff.toString();
  }
  @Override
  public String toString() {
    StringBuffer ret = new StringBuffer();
    ret.append(" ProcessRunUserDTO: id: ")
        .append(id)
        .append(" user: "******" created: ")
        .append(created)
        .append(" status: ")
        .append(status);

    return ret.toString();
  }
 /** `Retorna uma string descrevendo o Usuário. */
 @Override
 public String toString() {
   final StringBuffer texto =
       new StringBuffer(
           "Usuário "
               + getNome()
               + "\nLogin: "******"\nSenha: "
               + getSenha()
               + "\nNível de Acesso: "
               + getNivel());
   return texto.toString();
 }
示例#8
0
 @Override
 public String toString() {
   final StringBuffer sb = new StringBuffer("News{");
   sb.append("id=").append(id);
   sb.append(", uri='").append(uri).append('\'');
   sb.append(", title='").append(title).append('\'');
   sb.append(", content='").append(content).append('\'');
   sb.append(", createdAt=").append(createdAt);
   sb.append(", changeAt=").append(changeAt);
   sb.append(", author=").append(author);
   sb.append(", slug='").append(slug).append('\'');
   sb.append(", exerpt='").append(exerpt).append('\'');
   sb.append(", commentable=").append(commentable);
   sb.append(", gallery=").append(gallery);
   sb.append(", tags=").append(tags);
   sb.append('}');
   return sb.toString();
 }
示例#9
0
  private String generateSelectorQuery(String header, List<CorrelationKeySet> subSets) {
    StringBuffer filterQuery = new StringBuffer(header);

    if (subSets.size() == 1) {
      filterQuery.append(" and route._correlationKey = :s0");
    } else if (subSets.size() > 1) {
      filterQuery.append(" and route._correlationKey in(");
      for (int i = 0; i < subSets.size(); i++) {
        if (i > 0) {
          filterQuery.append(", ");
        }
        filterQuery.append(":s").append(i);
      }
      filterQuery.append(")");
    }

    return filterQuery.toString();
  }
 // ----------------------------------------------------------------------
 // toString METHOD
 // ----------------------------------------------------------------------
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append("[");
   sb.append(idMascota);
   sb.append("]:");
   sb.append(nombre);
   sb.append("|");
   sb.append(especie);
   sb.append("|");
   sb.append(raza);
   sb.append("|");
   sb.append(sexo);
   sb.append("|");
   sb.append(inscripcion);
   sb.append("|");
   sb.append(color);
   return sb.toString();
 }
示例#11
0
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append("StudentCredit--> id: %d Student id: %d  IsActive: %x IsConsumed: %x");
   sb.append(" creditNote: %s creditDate: %s consumeNote: %s consumeDate: %s credit: %f");
   return String.format(
       sb.toString(),
       id.intValue(),
       msdStudentId,
       isActive,
       isConsumed,
       creditNote,
       null != creditDate ? new SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format(creditDate) : "n/a",
       consumeNote,
       null != consumedDate
           ? new SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format(consumedDate)
           : "n/a",
       credit.floatValue());
 }
示例#12
0
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append("StudentFee--> id: %d Student id: %d Object Name: %s Object Id: %d");
   sb.append(
       " IsActive: %x IsPaid: %x IsWaiver: %x PayTime: %s PayType: %s PayNot: %s FeeNot: %s");
   return String.format(
       sb.toString(),
       id.intValue(),
       msdStudentId,
       msdStudentFeeObjectName,
       msdStudentFeeObjectId,
       isActive,
       isPaid,
       isWaiver,
       null != payTime ? new SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format(payTime) : "n/a",
       payType,
       payNote,
       feeNote);
 }
示例#13
0
 // ----------------------------------------------------------------------
 // toString METHOD
 // ----------------------------------------------------------------------
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append("[");
   sb.append(id);
   sb.append("]:");
   sb.append(nom);
   sb.append("|");
   sb.append(prenom);
   sb.append("|");
   sb.append(estadulte);
   sb.append("|");
   sb.append(invitevin);
   sb.append("|");
   sb.append(invitesoir);
   sb.append("|");
   sb.append(vientvin);
   sb.append("|");
   sb.append(vientsoir);
   sb.append("|");
   sb.append(mail);
   return sb.toString();
 }
示例#14
0
 @Override
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append("id [").append(id);
   sb.append("]; parent [").append(parent == null ? "" : parent.getId());
   sb.append("]; summary [").append(summary);
   sb.append("]; detail [").append(detail);
   sb.append("]; loggedBy [").append(loggedBy);
   sb.append("]; status [").append(status);
   sb.append("]; assignedTo [").append(assignedTo);
   sb.append("]; timeStamp [").append(timeStamp);
   sb.append("]; severity [").append(severity);
   sb.append("]; priority [").append(priority);
   sb.append("]; cusInt01 [").append(cusInt01);
   sb.append("]; cusInt02 [").append(cusInt02);
   sb.append("]; cusInt03 [").append(cusInt03);
   sb.append("]; cusInt04 [").append(cusInt04);
   sb.append("]; cusInt05 [").append(cusInt05);
   sb.append("]; cusInt06 [").append(cusInt06);
   sb.append("]; cusInt07 [").append(cusInt07);
   sb.append("]; cusInt08 [").append(cusInt08);
   sb.append("]; cusInt09 [").append(cusInt09);
   sb.append("]; cusInt10 [").append(cusInt10);
   sb.append("]; cusDbl01 [").append(cusDbl01);
   sb.append("]; cusDbl02 [").append(cusDbl02);
   sb.append("]; cusDbl03 [").append(cusDbl03);
   sb.append("]; cusStr01 [").append(cusStr01);
   sb.append("]; cusStr02 [").append(cusStr02);
   sb.append("]; cusStr03 [").append(cusStr03);
   sb.append("]; cusStr04 [").append(cusStr04);
   sb.append("]; cusStr05 [").append(cusStr05);
   sb.append("]; cusTim01 [").append(cusTim01);
   sb.append("]; cusTim02 [").append(cusTim02);
   sb.append("]; cusTim03 [").append(cusTim03);
   sb.append("]");
   return sb.toString();
 }
示例#15
0
 public String getKeyValues() {
   StringBuffer sb = new StringBuffer();
   sb.append(sysUserId);
   return sb.toString();
 }