public class SQLConnectionAdminOp extends java.lang.Object implements MessageOperation
SQLConnectionsRefreshOp SQLConnectionAdminResult ServerFailureExceptionThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="sqlConnectionAdmin">
<xs:complexType>
<xs:attribute name="dbScope" type="DatabaseScopeType" default="core" />
<xs:attribute name="uri" type="xs:integer" />
<xs:attribute name="operation" type="sqlConnectionOperation" default="reconnect"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="DatabaseScopeType">
<xs:restriction base="xs:string">
<xs:enumeration value="core"/>
<xs:enumeration value="session"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="sqlConnectionOperation">
<xs:restriction base="xs:string">
<xs:enumeration value="reconnect"/>
<xs:enumeration value="disconnect"/>
<xs:enumeration value="status"/>
</xs:restriction>
</xs:simpleType>
You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:
| Edition | Final Target Instances | |||||
| rater | updater | guider | bulkLoader | taxer | dispatcher | |
| charge | No | No | No | No | No | Yes |
This operation is audited by the system as part of the audit domain: ADMINISTRATION. Consult the IT administrator.
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLConnectionAdminOp.DatabaseScope
This
enumeration lists the possible back-end database of SAP CC: Core Database, Session Database. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DISCONNECT
The operation for the disconnection of an SQL connection.
|
static java.lang.String |
OPERATION_NAME
The XML name of this service operation: "sqlConnectionAdmin"
|
static java.lang.String |
RECONNECT
The operation for the reconnection of an SQL connection.
|
static java.lang.String |
STATUS |
| Constructor and Description |
|---|
SQLConnectionAdminOp()
Creates an SQL connection administration operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getAdminOperation()
Retrieves the operation to perform on the selected SQL connection.
|
SQLConnectionAdminOp.DatabaseScope |
getDatabaseScope()
Retrieves the scope of the back-end database.
|
java.lang.String |
getName()
Gets the XML name of the service operation.
|
int |
getUriId()
Retrieves the index of the JDBC URI corresponding to the SQL connection to manage.
|
boolean |
isReconnectOperation()
Retrieves whether the operation to perform on the selected SQL connection is a reconnection operation.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAdminOperation(java.lang.String operation)
Specifies the operation to perform on the selected SQL connection.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDatabaseScope(SQLConnectionAdminOp.DatabaseScope dbScope)
Specifies the scope of the back-end database.
|
void |
setUri(int uri)
Specifies the index of the JDBC URI corresponding to the SQL connection to manage.
|
public static final java.lang.String OPERATION_NAME
public static final java.lang.String RECONNECT
public static final java.lang.String DISCONNECT
public static final java.lang.String STATUS
public SQLConnectionAdminOp()
public java.lang.String getName()
MessageOperationJava object representing an HCI operation into an XML representation that can
be exchanged via the HCI communication interface between your client application and the SAP CC system.
Example
activateAll
ping
getName in interface MessageOperationpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic boolean isReconnectOperation()
true if the operation to perform on the selected SQL connection is a
reconnection operation, false otherwisepublic java.lang.String getAdminOperation()
The possible values are:
RECONNECT: reconnection of the selected SQL connectionDISCONNECT: disconnection of the selected SQL connectionRECONNECT or DISCONNECT)public void setAdminOperation(java.lang.String operation)
The possible values are:
RECONNECT: reconnection of the selected SQL connectionDISCONNECT: disconnection of the selected SQL connectionSTATUS: status of the selected SQL connectionoperation - The operation to perform on the SQL connection
(RECONNECT or DISCONNECT or STATUS)public int getUriId()
public void setUri(int uri)
uri - The index of the JDBC URI corresponding to the SQL connection to manage
(allowed values are numbers from 1 to 12, but the value must not exceed
the number of SQL connections configured in the system)public SQLConnectionAdminOp.DatabaseScope getDatabaseScope()
public void setDatabaseScope(SQLConnectionAdminOp.DatabaseScope dbScope)
dbScope - The scope of the database