001 package railo.runtime.orm.hibernate; 002 003 004 public class ColumnInfo { 005 006 private String name; 007 private int type; 008 private String typeName; 009 private int size; 010 private boolean nullable; 011 012 public ColumnInfo(String name, int type, String typeName, int size,boolean nullable) { 013 014 015 this.name = name; 016 this.type = type; 017 this.typeName = typeName; 018 this.size = size; 019 this.nullable = nullable; 020 } 021 022 /** 023 * @return the name 024 */ 025 public String getName() { 026 return name; 027 } 028 /** 029 * @param name the name to set 030 */ 031 public void setName(String name) { 032 this.name = name; 033 } 034 /** 035 * @return the type 036 */ 037 public int getType() { 038 return type; 039 } 040 /** 041 * @param type the type to set 042 */ 043 public void setType(int type) { 044 this.type = type; 045 } 046 /** 047 * @return the typeName 048 */ 049 public String getTypeName() { 050 return typeName; 051 } 052 /** 053 * @param typeName the typeName to set 054 */ 055 public void setTypeName(String typeName) { 056 this.typeName = typeName; 057 } 058 /** 059 * @return the size 060 */ 061 public int getSize() { 062 return size; 063 } 064 /** 065 * @param size the size to set 066 */ 067 public void setSize(int size) { 068 this.size = size; 069 } 070 /** 071 * @return the nullable 072 */ 073 public boolean isNullable() { 074 return nullable; 075 } 076 /** 077 * @param nullable the nullable to set 078 */ 079 public void setNullable(boolean nullable) { 080 this.nullable = nullable; 081 } 082 083 @Override 084 public String toString() { 085 return "name:"+name+";type:"+type+";typeName:"+typeName+";size:"+size+";nullable:"+nullable+";"; 086 } 087 }