/** * PUBLIC: * Add the field to the type. */ public void addField(FieldDefinition field) { this.getFields().addElement(field); }
/** * PUBLIC: * Add the field to the type. */ public void addField(FieldDefinition field) { this.getFields().addElement(field); }
/** * PUBLIC: * Add the field to the type. */ public void addField(FieldDefinition field) { this.getFields().addElement(field); }
/** * INTERNAL: * Return the create type statement. */ public Writer buildCreationWriter(AbstractSession session, Writer writer) throws ValidationException { try { writer.write("CREATE TYPE " + getFullName() + " AS OBJECT ("); for (Enumeration fieldsEnum = getFields().elements(); fieldsEnum.hasMoreElements();) { FieldDefinition field = (FieldDefinition)fieldsEnum.nextElement(); field.appendTypeString(writer, session); if (fieldsEnum.hasMoreElements()) { writer.write(", "); } } writer.write(")"); } catch (IOException ioException) { throw ValidationException.fileError(ioException); } return writer; }
/** * INTERNAL: * Return the create type statement. */ public Writer buildCreationWriter(AbstractSession session, Writer writer) throws ValidationException { try { writer.write("CREATE TYPE " + getFullName() + " AS OBJECT ("); for (Enumeration fieldsEnum = getFields().elements(); fieldsEnum.hasMoreElements();) { FieldDefinition field = (FieldDefinition)fieldsEnum.nextElement(); field.appendTypeString(writer, session); if (fieldsEnum.hasMoreElements()) { writer.write(", "); } } writer.write(")"); } catch (IOException ioException) { throw ValidationException.fileError(ioException); } return writer; }
/** * INTERNAL: * Return the create type statement. */ public Writer buildCreationWriter(AbstractSession session, Writer writer) throws ValidationException { try { writer.write("CREATE TYPE " + getFullName() + " AS OBJECT ("); for (Enumeration fieldsEnum = getFields().elements(); fieldsEnum.hasMoreElements();) { FieldDefinition field = (FieldDefinition)fieldsEnum.nextElement(); field.appendTypeString(writer, session); if (fieldsEnum.hasMoreElements()) { writer.write(", "); } } writer.write(")"); } catch (IOException ioException) { throw ValidationException.fileError(ioException); } return writer; }