1 25 26 package org.objectweb.jorm.mapper.rdb.lib; 27 28 33 public class RdbColumnInfo implements Comparable { 34 35 private String name; 37 private String alias; 39 private String className; 41 42 public RdbColumnInfo(String name, String alias, String className){ 43 this.name = name; 44 this.alias = alias; 45 this.className = className; 46 } 47 48 public void setAlias(String alias) { 49 this.alias = alias; 50 } 51 public void setClassName(String className) { 52 this.className = className; 53 } 54 public void setName(String name) { 55 this.name = name; 56 } 57 58 public String getAlias() { 59 return alias; 60 } 61 public String getClassName() { 62 return className; 63 } 64 public String getName() { 65 return name; 66 } 67 68 public int compareTo(Object o) { 69 if (o instanceof RdbColumnInfo) { 70 RdbColumnInfo c = (RdbColumnInfo) o; 71 return this.alias.compareTo(c.getAlias()); 72 } 73 return -1; 74 } 75 } 76 | Popular Tags |