Class VarrayDefinition

    • Field Detail

      • typeSize

        protected int typeSize
      • size

        protected int size
      • type

        protected java.lang.Class type
      • typeName

        protected java.lang.String typeName
    • Constructor Detail

      • VarrayDefinition

        public VarrayDefinition()
    • Method Detail

      • appendTypeString

        public void appendTypeString​(java.io.Writer writer,
                                     org.eclipse.persistence.internal.sessions.AbstractSession session)
                              throws ValidationException
        INTERNAL: Append the type.
        Parameters:
        writer - Target writer where to write type string.
        session - Current session context.
        Throws:
        ValidationException - When invalid or inconsistent data were found.
      • buildCreationWriter

        public java.io.Writer buildCreationWriter​(org.eclipse.persistence.internal.sessions.AbstractSession session,
                                                  java.io.Writer writer)
                                           throws ValidationException
        INTERNAL: Return the DDL to create the VARRAY.
        Specified by:
        buildCreationWriter in class DatabaseObjectDefinition
        Parameters:
        writer - Target writer.
        session - Current session context.
        Returns:
        Target writer with CREATE TYPE ... AS VARRAY (...) OF ... already written to it.
        Throws:
        ValidationException - When invalid or inconsistent data were found.
      • getSize

        public int getSize()
        PUBLIC: Return the maximum size of the array.
      • getType

        public java.lang.Class getType()
        PUBLIC: Return the type of the field. This should be set to a java class, such as String.class, Integer.class or Date.class.
      • getTypeName

        public java.lang.String getTypeName()
        PUBLIC: Return the type of the field. This is the exact DB type name, which can be used instead of the Java class.
      • getTypeSize

        public int getTypeSize()
        PUBLIC: Return the size of the element field, this is only required for some field types.
      • setSize

        public void setSize​(int size)
        PUBLIC: Set the maximum size of the array.
      • setType

        public void setType​(java.lang.Class type)
        PUBLIC: Set the type of the field. This should be set to a java class, such as String.class, Integer.class or Date.class.
      • setTypeName

        public void setTypeName​(java.lang.String typeName)
        PUBLIC: Set the type of the field. This is the exact DB type name, which can be used instead of the Java class.
      • setTypeSize

        public void setTypeSize​(int typeSize)
        PUBLIC: Set the size of the element field, this is only required for some field types.