Interface DFNewTypeWellKnownOptions.DBColumnInfo

  • All Superinterfaces:
    DFNewTypeOptions
    Enclosing interface:
    DFNewTypeWellKnownOptions

    public static interface DFNewTypeWellKnownOptions.DBColumnInfo
    extends DFNewTypeOptions
    This is just column info helper object which is used in new field options. It is extending DFNewTypeOptions just because of sharing methods for valid/error message and property changes.

    It is not supposed this class is used directly as options.

    • Field Detail

      • PROP_NATIVE_TYPE_DEFINITION

        static final java.lang.String PROP_NATIVE_TYPE_DEFINITION
        See Also:
        Constant Field Values
    • Method Detail

      • getColumnName

        java.lang.String getColumnName()
      • setColumnName

        void setColumnName​(java.lang.String columnName)
      • getNativeTypeDefinition

        com.im.commons.db.ddl.DBDatabaseInfo.NativeType getNativeTypeDefinition()
      • setNativeTypeDefinition

        void setNativeTypeDefinition​(com.im.commons.db.ddl.DBDatabaseInfo.NativeType nativeTypeDef)
      • createNativeTypeDefinition

        com.im.commons.db.ddl.DBDatabaseInfo.NativeType createNativeTypeDefinition​(int jdbcType,
                                                                                   java.lang.String columnType,
                                                                                   int length,
                                                                                   int scale)
        Create a NativeType definition based on these attributes. It is assumed that the caller knows the column definition they want and it is correct for the underlying database. e.g. VARCHAR2(140), NUMBER(15.2)
        Parameters:
        columnType - The type of column e.g "NUMBER"
        length - The length of the column (can be zero if column type does not have a length attribute.
        scale - The scale (precession) of the column (can be zero if column type does not have a scale attribute.
        Returns:
        The created NativeType.
        Throws:
        java.lang.IllegalArgumentException - if the attributes are inappropriate for the database
      • getAllNativeTypeDefinitions

        com.im.commons.db.ddl.DBDatabaseInfo.NativeType[] getAllNativeTypeDefinitions()