public final class PlsqlBaseMethodCommand extends PlsqlCommand
For calling standard IFS base methods NEW
, MODIFY
and REMOVE
for a logical unit (LU).
This class automatically handles OBJID
and OBJVERSION
fields.
They are kept in the data record used in this class' constructor. So they must
be included in a SELECT
query to retrieve data.
Must be associated with a Server
object
before it's executed. Unless it's run in a PlsqlCommandCollection
.
In that case, the collection's Server
object is used.
bindVariables, commandText, srv
Constructor and Description |
---|
PlsqlBaseMethodCommand(Server srv,
PlsqlBaseMethodType baseMethodType,
java.lang.String packageName,
Record record,
PlsqlBaseMethodAction action)
Creates a new instace of this class.
|
PlsqlBaseMethodCommand(Server srv,
PlsqlBaseMethodType baseMethodType,
java.lang.String packageName,
java.lang.String methodName,
Record record,
PlsqlBaseMethodAction action)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
processCommandRecord(Record cmd)
Parses a [Command] Record from the PL/SQL Gateway into this command.
|
createCommandRecord, execute, getBindVariables, getCommandText, getServer, setCommandText, setServer, toString
public PlsqlBaseMethodCommand(Server srv, PlsqlBaseMethodType baseMethodType, java.lang.String packageName, Record record, PlsqlBaseMethodAction action)
baseMethodType
.srv
- the Server
object to use, unless run in a
PlsqlCommandCollection
.baseMethodType
- the type of base method to execute.packageName
- the name of the PL/SQL package for which to execute
the method.record
- a Record
with the data for the method.action
- the action to execute.PlsqlBaseMethodCommand(ifs.fnd.ap.Server,ifs.fnd.ap.PlsqlBaseMethodType,java.lang.String,java.lang.String,ifs.fnd.ap.Record,ifs.fnd.ap.PlsqlBaseMethodAction)
public PlsqlBaseMethodCommand(Server srv, PlsqlBaseMethodType baseMethodType, java.lang.String packageName, java.lang.String methodName, Record record, PlsqlBaseMethodAction action)
New__ method, but is called
something else, like Create_Customer
. Then Create_Customer
is used as methodName
.
- Parameters:
srv
- the Server
object to use, unless run in a
PlsqlCommandCollection
.
baseMethodType
- the type of base method to execute.
packageName
- the name of the PL/SQL package for which to execute
the method.
methodName
- the name of the method to execute. If null
then method name is used from baseMethodType
.
record
- a Record
with the data for the method.
action
- the action to execute.
- See Also:
PlsqlBaseMethodType.NEW
-
Method Detail
-
processCommandRecord
protected void processCommandRecord(Record cmd)
throws APException
Parses a [Command] Record from the PL/SQL Gateway into this command.
- Overrides:
processCommandRecord
in class PlsqlCommand
- Throws:
APException