Class PLSQLParameterMetadata


  • public class PLSQLParameterMetadata
    extends ORMetadata
    INTERNAL: Object to hold onto a PLSQL parameter meta-data. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - all metadata mapped from XML should be initialized in the initXMLObject method. - when loading from annotations, the constructor accepts the metadata accessor this metadata was loaded from. Used it to look up any 'companion' annotation needed for processing. - methods should be preserved in alphabetical order.
    Since:
    EclipseLink 2.3
    Author:
    James Sutherland
    • Constructor Detail

      • PLSQLParameterMetadata

        public PLSQLParameterMetadata()
        INTERNAL: Used for XML loading.
      • PLSQLParameterMetadata

        public PLSQLParameterMetadata​(MetadataAnnotation storedProcedureParameter,
                                      MetadataAccessor accessor)
        INTERNAL: Used for annotation loading.
    • Method Detail

      • equals

        public boolean equals​(Object objectToCompare)
        INTERNAL:
        Specified by:
        equals in class ORMetadata
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDatabaseType

        public String getDatabaseType()
        INTERNAL: Used for OX mapping.
      • getDatabaseTypeEnum

        protected DatabaseType getDatabaseTypeEnum​(String type)
        Return the DataType enum constant for the String type name. If type is not a JDBCType, OraclePLSQLType, PLSQLCursor or a ComplexMetadataType, the type will be wrapped in a PLSQLrecord.
        Overrides:
        getDatabaseTypeEnum in class ORMetadata
      • getDirection

        public String getDirection()
        INTERNAL: Used for OX mapping.
      • getLength

        public Integer getLength()
        INTERNAL: Used for OX mapping.
      • getName

        public String getName()
        INTERNAL: Used for OX mapping.
      • getOptional

        public Boolean getOptional()
        INTERNAL: Used for OX mapping.
      • getPrecision

        public Integer getPrecision()
        INTERNAL: Used for OX mapping.
      • getQueryParameter

        public String getQueryParameter()
        INTERNAL: Used for OX mapping.
      • getScale

        public Integer getScale()
        INTERNAL: Used for OX mapping.
      • setDatabaseFieldSettings

        protected void setDatabaseFieldSettings​(DatabaseField field,
                                                MetadataProject project)
        INTERNAL: set the project level settings on the database fields
      • setDatabaseType

        public void setDatabaseType​(String databaseType)
        INTERNAL: Used for OX mapping.
      • setDirection

        public void setDirection​(String direction)
        INTERNAL: Used for OX mapping.
      • setLength

        public void setLength​(Integer length)
        INTERNAL: Used for OX mapping.
      • setName

        public void setName​(String name)
        INTERNAL: Used for OX mapping.
      • setOptional

        public void setOptional​(Boolean optional)
        INTERNAL: Used for OX mapping.
      • setPrecision

        public void setPrecision​(Integer precision)
        INTERNAL: Used for OX mapping.
      • setQueryParameter

        public void setQueryParameter​(String queryParameter)
        INTERNAL: Used for OX mapping.
      • setScale

        public void setScale​(Integer scale)
        INTERNAL: Used for OX mapping.