public override string ToString() { // overridden version of toString() method that uses identity hash code // (to prevent hashCode() recursion due to logging!) return(GetType().Name + "@" + CsInteger.ToHexString(CsSystem.IdentityHashCode(this))); // Integer.toHexString(System.identityHashCode(this)); } // ToString()
} // convertColumnType() public static ColumnType valueOf(string fieldName) { try { FieldInfo column_type_field = TypeUtils.getField(typeof(ColumnType), fieldName); if (column_type_field != null) { // columnTypeField.setAccessible(true); object o = new object(); column_type_field.GetValue(o); ColumnType columnType = CsSystem.Cast(o, typeof(ColumnType)); return((ColumnType)columnType); } } catch (Exception e) { logger.error("Failed to resolve JDBC type in ColumnType constants: " + fieldName, e); } return(null); } // valueOf()