Class DBColInfo

  • All Implemented Interfaces:
    AbstractInfo, java.io.Serializable

    public class DBColInfo
    extends java.lang.Object
    implements AbstractInfo, java.io.Serializable
    Database info class for a database column. This object is returned from DBTableInfo.
    Author:
    Tim Dudgeon
    See Also:
    Serialized Form
    • Method Detail

      • getProperty

        public java.lang.String getProperty​(java.lang.String key)
      • updateProperties

        public DBColInfo updateProperties​(java.util.Map<java.lang.String,​java.lang.String> nue)
      • updateProperty

        public DBColInfo updateProperty​(java.lang.String key,
                                        java.lang.String value)
        Update or add a property.
        Parameters:
        key - key of property
        value - value of property
        Returns:
        The new DBColInfo instance with the new property
      • removeProperty

        public DBColInfo removeProperty​(java.lang.String key)
        Remove a property.
        Parameters:
        key - key of removed property
        Returns:
        The new DBColInfo instance with the new property
      • getColumnName

        public java.lang.String getColumnName()
        Getter for property columnName.
        Returns:
        Value of property columnName.
      • getJdbcType

        public int getJdbcType()
        Getter for property jdbcType.
        Returns:
        Value of property jdbcType.
      • getLength

        public int getLength()
        Getter for property length.
        Returns:
        Value of property length.
      • getScale

        public int getScale()
        Getter for property scale.
        Returns:
        Value of property scale.
      • getColumnDefinition

        public java.lang.String getColumnDefinition()
        Get the current column definition for the particular database type. e.g. VARCHAR2(255) or NUMBER(10.1)
        Returns:
        The column definition, or null if the column has not yet been initialized for the database type
      • isRequired

        public boolean isRequired()
        NULL or NOT NULL.
        Returns:
        Value of property required.
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Getter for property defaultValue.
        Returns:
        Value of property defaultValue.
      • isOracleTextIndexPresent

        public boolean isOracleTextIndexPresent()
        Returns:
        true if Oracle Text CONTEXT type index is present.
      • getColumnDefinitionMesageFormat

        public java.lang.String getColumnDefinitionMesageFormat()
      • isPropertyReadOnly

        public boolean isPropertyReadOnly​(java.lang.String propName)
      • setPropertyReadOnly

        public final void setPropertyReadOnly​(java.lang.String propName,
                                              boolean b)
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Removes PropertyChangeListener from the list of listeners.
        Parameters:
        listener - The listener to remove.
      • firePropertyChange

        protected void firePropertyChange​(java.lang.String propertyName,
                                          java.lang.Object oldValue,
                                          java.lang.Object newValue)
        Notifies all registered listeners about the event.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object