Class BatchSQLOperationModel
java.lang.Object
org.eclipse.persistence.tools.dbws.OperationModel
org.eclipse.persistence.tools.dbws.BatchSQLOperationModel
Model class for a batch SQL operation, i.e. two or more SQL statements
that are to be executed against the database in order. The main
responsibilities of this model will be to hold the List of SQL
statements and build the BatchQueryOperation instance that will
be responsible for executing the SQL statements.
-
Field Summary
Fields inherited from class org.eclipse.persistence.tools.dbws.OperationModel
attachmentType, binaryAttachment, isCollection, isSimpleXMLFormat, name, returnType, simpleXMLFormatTag, xmlTag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBatchSql
(String sql) Convenience method for adding a single SQL statement to the list of statements to be executed.void
buildOperation
(DBWSBuilder builder) Build the BatchQueryOperation instance that will be responsible for executing the SQL statements.Get the list of SQL statements to be executed.boolean
Indicates that this is a batch SQL operation.void
setBatchSql
(List<String> sql) Set the list of SQL statements to be executed.Methods inherited from class org.eclipse.persistence.tools.dbws.OperationModel
getAttachmentType, getBinaryAttachment, getIsSimpleXMLFormat, getName, getReturnType, getSimpleXMLFormatTag, getXmlTag, hasBuildSql, isCollection, isProcedureOperation, isSimpleXMLFormat, isSQLOperation, isTableOperation, setAttachmentType, setBinaryAttachment, setIsCollection, setIsSimpleXMLFormat, setName, setReturnType, setSimpleXMLFormatTag, setXmlTag
-
Field Details
-
batchSql
-
-
Constructor Details
-
BatchSQLOperationModel
public BatchSQLOperationModel()The default constructor.
-
-
Method Details
-
getBatchSql
Get the list of SQL statements to be executed.- Returns:
- List of SQL statements to be executed
-
setBatchSql
Set the list of SQL statements to be executed.- Parameters:
sql
- List of SQL statements to be executed
-
addBatchSql
Convenience method for adding a single SQL statement to the list of statements to be executed. Note that the list will be created if necessary.- Parameters:
sql
- SQL statement to be added to the list of statements to be executed
-
isBatchSQLOperation
public boolean isBatchSQLOperation()Indicates that this is a batch SQL operation.- Overrides:
isBatchSQLOperation
in classOperationModel
-
buildOperation
Build the BatchQueryOperation instance that will be responsible for executing the SQL statements.- Overrides:
buildOperation
in classOperationModel
-