/** * INTERNAL: * Append the type. */ public void appendTypeString(Writer writer, AbstractSession session) throws ValidationException { try { FieldTypeDefinition fieldType; if (getType() == null) { throw ValidationException.oracleObjectTypeIsNotDefined(getTypeName()); } else if (getTypeName() == "") { throw ValidationException.oracleObjectTypeNameIsNotDefined(getType()); } else { fieldType = new FieldTypeDefinition(getTypeName()); } writer.write(fieldType.getName()); if (!isNullAllowed) { writer.write(" NOT NULL"); } } catch (IOException ioException) { throw ValidationException.fileError(ioException); } }
/** * INTERNAL: * Append the type. */ public void appendTypeString(Writer writer, AbstractSession session) throws ValidationException { try { FieldTypeDefinition fieldType; if (getType() == null) { throw ValidationException.oracleObjectTypeIsNotDefined(getTypeName()); } else if (getTypeName() == "") { throw ValidationException.oracleObjectTypeNameIsNotDefined(getType()); } else { fieldType = new FieldTypeDefinition(getTypeName()); } writer.write(fieldType.getName()); if (!isNullAllowed) { writer.write(" NOT NULL"); } } catch (IOException ioException) { throw ValidationException.fileError(ioException); } }
/** * INTERNAL: * Append the type. */ public void appendTypeString(Writer writer, AbstractSession session) throws ValidationException { try { FieldTypeDefinition fieldType; if (getType() == null) { throw ValidationException.oracleObjectTypeIsNotDefined(getTypeName()); } else if (getTypeName() == "") { throw ValidationException.oracleObjectTypeNameIsNotDefined(getType()); } else { fieldType = new FieldTypeDefinition(getTypeName()); } writer.write(fieldType.getName()); if (!isNullAllowed) { writer.write(" NOT NULL"); } } catch (IOException ioException) { throw ValidationException.fileError(ioException); } }