src/org/objectweb/cjdbc/driver/Field.java

説明を見る。
00001 00025 package org.objectweb.cjdbc.driver; 00026 00027 import java.io.Serializable; 00028 00041 public class Field implements Serializable 00042 { 00043 private int scale; 00044 private int precision; 00045 private boolean isSigned; 00046 private boolean isSearchable; 00047 private boolean isDefinitelyWritable; 00048 private boolean isWritable; 00049 private boolean isReadOnly; 00050 private int isNullable; 00051 private boolean isCurrency; 00052 private boolean isCaseSensitive; 00053 private boolean isAutoIncrement; 00054 private String tableName; 00055 private String fieldName; 00056 private int columnDisplaySize; 00057 private int sqlType; 00058 private String typeName; 00059 private String columnClassName; 00060 00071 public Field( 00072 String table, 00073 String name, 00074 int columnDisplaySize, 00075 int sqlType, 00076 String typeName, 00077 String columnClassName) 00078 { 00079 this( 00080 table, 00081 name, 00082 columnDisplaySize, 00083 sqlType, 00084 typeName, 00085 columnClassName, 00086 false, 00087 true, 00088 false, 00089 ResultSetMetaData.columnNullable, 00090 true, 00091 false, 00092 false, 00093 false, 00094 false, 00095 0, 00096 0); 00097 } 00098 00120 public Field( 00121 String table, 00122 String name, 00123 int columnDisplaySize, 00124 int sqlType, 00125 String typeName, 00126 String columnClassName, 00127 boolean isAutoIncrement, 00128 boolean isCaseSensitive, 00129 boolean isCurrency, 00130 int isNullable, 00131 boolean isReadOnly, 00132 boolean isWritable, 00133 boolean isDefinitelyWritable, 00134 boolean isSearchable, 00135 boolean isSigned, 00136 int precision, 00137 int scale) 00138 { 00139 if (table == null) 00140 tableName = null; 00141 else 00142 tableName = new String(table); 00143 fieldName = new String(name); 00144 this.columnDisplaySize = columnDisplaySize; 00145 this.sqlType = sqlType; 00146 this.typeName = typeName; 00147 this.columnClassName = columnClassName; 00148 this.isAutoIncrement = isAutoIncrement; 00149 this.isCaseSensitive = isCaseSensitive; 00150 this.isCurrency = isCurrency; 00151 this.isNullable = isNullable; 00152 this.isReadOnly = isReadOnly; 00153 this.isWritable = isWritable; 00154 this.isDefinitelyWritable = isDefinitelyWritable; 00155 this.isSearchable = isSearchable; 00156 this.isSigned = isSigned; 00157 this.precision = precision; 00158 this.scale = scale; 00159 } 00160 00166 public String getTableName() 00167 { 00168 return tableName; 00169 } 00170 00177 public String getFieldName() 00178 { 00179 return fieldName; 00180 } 00181 00187 public String getFullName() 00188 { 00189 return tableName + "." + fieldName; 00190 } 00191 00198 public void setFieldName(String name) 00199 { 00200 fieldName = name; 00201 } 00202 00209 public String toString() 00210 { 00211 return getFullName(); 00212 } 00213 00220 public int getSqlType() 00221 { 00222 return sqlType; 00223 } 00224 00230 public String getTypeName() 00231 { 00232 return typeName; 00233 } 00234 00238 public String getColumnClassName() 00239 { 00240 return columnClassName; 00241 } 00242 00246 public int getColumnDisplaySize() 00247 { 00248 return columnDisplaySize; 00249 } 00253 public boolean isAutoIncrement() 00254 { 00255 return isAutoIncrement; 00256 } 00257 00261 public boolean isCaseSensitive() 00262 { 00263 return isCaseSensitive; 00264 } 00265 00269 public boolean isCurrency() 00270 { 00271 return isCurrency; 00272 } 00273 00277 public boolean isDefinitelyWritable() 00278 { 00279 return isDefinitelyWritable; 00280 } 00281 00285 public int isNullable() 00286 { 00287 return isNullable; 00288 } 00289 00293 public boolean isReadOnly() 00294 { 00295 return isReadOnly; 00296 } 00297 00301 public boolean isWritable() 00302 { 00303 return isWritable; 00304 } 00305 00309 public boolean isSearchable() 00310 { 00311 return isSearchable; 00312 } 00313 00317 public boolean isSigned() 00318 { 00319 return isSigned; 00320 } 00321 00325 public int getPrecision() 00326 { 00327 return precision; 00328 } 00329 00333 public int getScale() 00334 { 00335 return scale; 00336 } 00337 00338 }

CJDBCversion1.0.4に対してTue Oct 12 15:16:05 2004に生成されました。 doxygen 1.3.8