Class TableSourceInfo

java.lang.Object
com.inet.report.database.TableSourceInfo

public class TableSourceInfo extends Object
This class holds information which can be used to create a TableSource.
Since:
13.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Shows the database object type is: Stored procedure
    static final int
    Shows the database object type is: System Table
    static final int
    Shows the database object type is: Table
    static final int
    Shows the database object type is: View
  • Constructor Summary

    Constructors
    Constructor
    Description
    TableSourceInfo(@Nullable String catalog, @Nullable String schema, @Nonnull String table, int type)
    Create a new instance for a stored procedure.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
    Get the catalog name or null.
    Get the complete name of this object.
    int
    Deprecated.
    As of i-net Clear Reports 16.2
    @Nullable String
    Get the schema name or null.
    Get the object name.
    int
    Get a type of the object (whether the table source is a database table, a stored procedure, etc.)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TYPE_TABLE

      public static final int TYPE_TABLE
      Shows the database object type is: Table
      See Also:
    • TYPE_SYSTEM_TABLE

      public static final int TYPE_SYSTEM_TABLE
      Shows the database object type is: System Table
      See Also:
    • TYPE_VIEW

      public static final int TYPE_VIEW
      Shows the database object type is: View
      See Also:
    • TYPE_SPROC

      public static final int TYPE_SPROC
      Shows the database object type is: Stored procedure
      See Also:
  • Constructor Details

    • TableSourceInfo

      public TableSourceInfo(@Nullable @Nullable String catalog, @Nullable @Nullable String schema, @Nonnull @Nonnull String table, int type)
      Create a new instance for a stored procedure.
      Parameters:
      catalog - a catalog name if this is a database object. Can be null.
      schema - a schema/owner name if this is a database object. Can be null.
      table - the object name
      type - the type of this object, one of the constant from this class
      Throws:
      IllegalArgumentException - if table is null
      Since:
      13.0
  • Method Details

    • getName

      public String getName()
      Get the complete name of this object.
      Returns:
      the name
      Since:
      13.0
    • getCatalog

      @Nullable public @Nullable String getCatalog()
      Get the catalog name or null.
      Returns:
      the catalog
      Since:
      13.0
    • getSchema

      @Nullable public @Nullable String getSchema()
      Get the schema name or null.
      Returns:
      the schema
      Since:
      13.0
    • getTable

      public String getTable()
      Get the object name. This is the short name.
      Returns:
      the name
      Since:
      13.0
    • getType

      public int getType()
      Get a type of the object (whether the table source is a database table, a stored procedure, etc.)
      Returns:
      the type
      Since:
      13.0
      See Also:
    • getProcedureType

      @Deprecated public int getProcedureType()
      Deprecated.
      As of i-net Clear Reports 16.2
      Get a procedure type of the object. Returns ever DatabaseMetaData.procedureResultUnknown.
      Returns:
      the procedure type
      Since:
      13.0
      See Also: