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 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 String catalog, @Nullable String schema, @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 String getCatalog()
      Get the catalog name or null.
      Returns:
      the catalog
      Since:
      13.0
    • getSchema

      @Nullable public 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: