public interface BBjAdminProcedure extends BBjAdminCommitPropertyWriter, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_LOCATION
Optional location of a config.bbx to use.
|
static java.lang.String |
DESCRIPTION
Description of the SPROC.
|
static int |
FILE_FORMAT_ASCII
File format indicating plain text ASCII format for the source code file when calling
writeSourceFile(String, int) . |
static int |
FILE_FORMAT_BBJ
File format indicating BBj program format for the source code file when calling
writeSourceFile(String, int) . |
static java.lang.String |
HAS_RESULT_SET
Boolean indicating if the SPROC returns an SQL result set or not.
|
static java.lang.String |
NAME
Name of the SPROC.
|
static java.lang.String |
PROGRAM_CODE
Program source code for the SPROC.
|
static java.lang.String |
RETURN_TYPE
SQL data type from
Types if the SPROC returns a value as the result. |
static java.lang.String |
RETURN_TYPE_PRECISION
If it returns an SQL type, the precision or length of the return value.
|
static java.lang.String |
RETURN_TYPE_SCALE
If it returns an SQL type, the scale if NUMERIC, or 0 if text.
|
static java.lang.String |
SOURCE_LOCATION
Location of the source code run by the SPROC when executed via an SQL CALL statement.
|
static java.lang.String |
SYSTEM
True if the SPROC is a system SPROC.
|
Modifier and Type | Method and Description |
---|---|
BBjAdminProcedureParameter |
createParameter()
Create a blank parameter.
|
java.lang.String |
generateCodeTemplate(java.lang.String p_stringTemplate)
Returns a source code template with boiler plate code for a working stored procedure.
|
BBjAdminList<BBjAdminProperty> |
getDescriptiveProperties()
Used primarily by GUI applications like the Enterprise Manager to dynamically generate
an admin UI.
|
BBjAdminList<BBjAdminProcedureParameter> |
getParameters()
Get the list of the available parameters on the SPROC.
|
java.lang.String |
getSourceCode()
Gets the source code for the procedure by reloading it from disk.
|
int |
getSourceFileFormat()
Returns the source file's format.
|
void |
setDescriptiveProperties(BBjAdminList<BBjAdminProperty> p_descriptiveProps)
Used primarily by GUI applications like the Enterprise Manager to dynamically generate
an admin UI.
|
void |
setParameters(BBjAdminList<BBjAdminProcedureParameter> p_params)
Set the list of available parameters for the SPROC.
|
void |
writeSourceFile(java.lang.String p_code,
int p_fileFormat)
Writes the specified source code to the SPROC's source code file in the specified file format.
|
getChangedProperties, getClearedProperties, getOriginalProperties
addType, canAddNewProperties, canClear, clear, clearProperties, clearProperty, getReadOnly, hasChanged, isReadOnly, setBoolean, setDouble, setInt, setList, setLong, setProperties, setString, setValue
checkValueEqual, contains, contains, getBoolean, getDouble, getInt, getList, getLong, getProperties, getString, getType, getTypes, getValue
commit, rollback
static final java.lang.String NAME
static final java.lang.String DESCRIPTION
static final java.lang.String SOURCE_LOCATION
static final java.lang.String CONFIG_LOCATION
static final java.lang.String HAS_RESULT_SET
static final java.lang.String RETURN_TYPE
Types
if the SPROC returns a value as the result.static final java.lang.String RETURN_TYPE_PRECISION
static final java.lang.String RETURN_TYPE_SCALE
static final java.lang.String PROGRAM_CODE
static final int FILE_FORMAT_ASCII
writeSourceFile(String, int)
.static final int FILE_FORMAT_BBJ
writeSourceFile(String, int)
.static final java.lang.String SYSTEM
BBjAdminList<BBjAdminProcedureParameter> getParameters() throws BBjAdminException
BBjAdminException
void setParameters(BBjAdminList<BBjAdminProcedureParameter> p_params) throws BBjAdminException
p_params
- List of BBjAdminProcedureParameter objects defining the parameters on the SPROC.BBjAdminException
BBjAdminProcedureParameter createParameter()
java.lang.String getSourceCode() throws BBjAdminException
BBjAdminException
BBjAdminList<BBjAdminProperty> getDescriptiveProperties() throws BBjAdminException
BBjAdminException
void setDescriptiveProperties(BBjAdminList<BBjAdminProperty> p_descriptiveProps) throws BBjAdminException
BBjAdminException
void writeSourceFile(java.lang.String p_code, int p_fileFormat) throws BBjAdminException
p_code
- String containing the source code for the SPROC.p_fileFormat
- One of the available types FILE_FORMAT_ASCII or FILE_FORMAT_BBJ.BBjAdminException
int getSourceFileFormat() throws BBjAdminException
BBjAdminException
java.lang.String generateCodeTemplate(java.lang.String p_stringTemplate) throws BBjAdminException
writeSourceFile(String, int)
to write the template to the SPROC's source file.p_stringTemplate
- String template to use to define the data returned by the SPROC if the SPROC returns
an SQL result set.BBjAdminException