com.ibm.websphere.sdo.mediator.jdbc.metadata

Interface Column



  • public interface Column
    A Column object describes a column in the database and how it maps to a DataObject Property
    • Method Detail

      • getPropertyName

        java.lang.String getPropertyName()
        Returns the value of the Property Name attribute. This value will be used to identify this Column in a DataObject. If the value is not specified, it defaults to the value of getName().
        Returns:
        the property name
      • setPropertyName

        void setPropertyName(java.lang.String value)
        Sets the value of the 'Property Name' attribute.
        Parameters:
        value - the new value of the 'Property Name' attribute.
        See Also:
        getPropertyName()
      • getName

        java.lang.String getName()
        Returns the value of the Name attribute. This must be the same as the name of the database column.
        Returns:
        the name
      • setName

        void setName(java.lang.String value)
        Sets the value of the 'Name' attribute.
        Parameters:
        value - the new value of the 'Name' attribute.
        See Also:
        getName()
      • getType

        int getType()
        Returns the type of this Column object. This defines how the database column will be accessed through JDBC. This may or may not be the same as the database column type. For example, given a column defined in the database as an INTEGER, you may want to access the value in a DataGraph as a boolean value. In this case, you would define the type as Column.BOOLEAN, and the JDBC data mediator service would access the data using ResultSet.getBoolean(). In cases like this, clients should consult the documentation for the JDBC driver being used to determine that the mapping that takes place is what is desired.
        Returns:
        the type
      • setType

        void setType(int value)
        Sets the value of the 'Type' attribute.
        Parameters:
        value - the new value of the 'Type' attribute.
        See Also:
        getType()
      • isNullable

        boolean isNullable()
        Returns the value of the Nullable attribute. If Nullable is false, a primitive type will be used to represent this Column in the DataGraph.
        Returns:
        the value of the Nullable attribute
      • setNullable

        void setNullable(boolean value)
        Sets the value of the 'Nullable' attribute.
        Parameters:
        value - the new value of the 'Nullable' attribute.
        See Also:
        isNullable()
      • getTable

        Table getTable()
        Return the 'Table' object that contains this Column.
        Returns:
        the containing table
      • setTable

        void setTable(Table value)
        Sets the value of the 'Table' container reference.
        Parameters:
        value - the new value of the 'Table' container reference.
        See Also:
        getTable()
IBM WebSphere Application ServerTM
Release 8.5