Package com.inet.report.database
Class TableSourceInfo
- java.lang.Object
-
- com.inet.report.database.TableSourceInfo
-
public class TableSourceInfo extends java.lang.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 int
TYPE_SPROC
Shows the database object type is: Stored procedurestatic int
TYPE_SYSTEM_TABLE
Shows the database object type is: System Tablestatic int
TYPE_TABLE
Shows the database object type is: Tablestatic int
TYPE_VIEW
Shows the database object type is: View
-
Constructor Summary
Constructors Constructor Description TableSourceInfo(java.lang.String catalog, java.lang.String schema, java.lang.String table, int type)
Create a new instance for a stored procedure.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCatalog()
Get the catalog name or null.java.lang.String
getName()
Get the complete name of this object.int
getProcedureType()
Deprecated.As of i-net Clear Reports 16.2java.lang.String
getSchema()
Get the schema name or null.java.lang.String
getTable()
Get the object name.int
getType()
Get a type of the object (whether the table source is a database table, a stored procedure, etc.)
-
-
-
Field Detail
-
TYPE_TABLE
public static final int TYPE_TABLE
Shows the database object type is: Table- See Also:
- Constant Field Values
-
TYPE_SYSTEM_TABLE
public static final int TYPE_SYSTEM_TABLE
Shows the database object type is: System Table- See Also:
- Constant Field Values
-
TYPE_VIEW
public static final int TYPE_VIEW
Shows the database object type is: View- See Also:
- Constant Field Values
-
TYPE_SPROC
public static final int TYPE_SPROC
Shows the database object type is: Stored procedure- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TableSourceInfo
public TableSourceInfo(@Nullable java.lang.String catalog, @Nullable java.lang.String schema, @Nonnull java.lang.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 nametype
- the type of this object, one of the constant from this class- Throws:
java.lang.IllegalArgumentException
- if table is null- Since:
- 13.0
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the complete name of this object.- Returns:
- the name
- Since:
- 13.0
-
getCatalog
@Nullable public java.lang.String getCatalog()
Get the catalog name or null.- Returns:
- the catalog
- Since:
- 13.0
-
getSchema
@Nullable public java.lang.String getSchema()
Get the schema name or null.- Returns:
- the schema
- Since:
- 13.0
-
getTable
public java.lang.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:
TYPE_TABLE
,TYPE_SYSTEM_TABLE
,TYPE_VIEW
,TYPE_SPROC
-
getProcedureType
@Deprecated public int getProcedureType()
Deprecated.As of i-net Clear Reports 16.2Get a procedure type of the object. Returns ever DatabaseMetaData.procedureResultUnknown.- Returns:
- the procedure type
- Since:
- 13.0
- See Also:
DatabaseMetaData
-
-