Class: OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemStandard
- Inherits:
-
Object
- Object
- OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemStandard
- Defined in:
- lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb
Overview
A statement execution response for Standard type requests.
Constant Summary collapse
- STATEMENT_TYPE_ENUM =
[ STATEMENT_TYPE_QUERY = 'QUERY'.freeze, STATEMENT_TYPE_DML = 'DML'.freeze, STATEMENT_TYPE_DDL = 'DDL'.freeze, STATEMENT_TYPE_PLSQL = 'PLSQL'.freeze, STATEMENT_TYPE_SQLPLUS = 'SQLPLUS'.freeze, STATEMENT_TYPE_IGNORE = 'IGNORE'.freeze, STATEMENT_TYPE_TRANSACTION_CONTROL = 'TRANSACTION_CONTROL'.freeze, STATEMENT_TYPE_SESSION_CONTROL = 'SESSION_CONTROL'.freeze, STATEMENT_TYPE_SYSTEM_CONTROL = 'SYSTEM_CONTROL'.freeze, STATEMENT_TYPE_JDBC = 'JDBC'.freeze, STATEMENT_TYPE_OTHER = 'OTHER'.freeze, STATEMENT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#binds ⇒ Array<OCI::DatabaseToolsRuntime::Models::ExecuteSqlBind>
Array of objects specifying the bind information.
-
#dbms_output ⇒ String
Output from DBMS_OUTPUT package.
- #error ⇒ OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemError
- #properties ⇒ OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemProperties
-
#responses ⇒ Array<String>
Responses generated when executing the statements.
- #result_set ⇒ OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemResultSet
- #result_set_object ⇒ OCI::DatabaseToolsRuntime::Models::ExecuteSqlOutputDispositionDetails
-
#results ⇒ Array<Integer>
Results generated when executing the statements.
-
#statement_id ⇒ Integer
The sequence number of the statement.
- #statement_pos ⇒ OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemStatementPos
-
#statement_text ⇒ String
Text of statements executed.
-
#statement_type ⇒ String
The Statement type.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ExecuteSqlResponseItemStandard
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ ExecuteSqlResponseItemStandard
Initializes the object
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 128 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.statement_id = attributes[:'statementId'] if attributes[:'statementId'] raise 'You cannot provide both :statementId and :statement_id' if attributes.key?(:'statementId') && attributes.key?(:'statement_id') self.statement_id = attributes[:'statement_id'] if attributes[:'statement_id'] self.statement_type = attributes[:'statementType'] if attributes[:'statementType'] raise 'You cannot provide both :statementType and :statement_type' if attributes.key?(:'statementType') && attributes.key?(:'statement_type') self.statement_type = attributes[:'statement_type'] if attributes[:'statement_type'] self.statement_pos = attributes[:'statementPos'] if attributes[:'statementPos'] raise 'You cannot provide both :statementPos and :statement_pos' if attributes.key?(:'statementPos') && attributes.key?(:'statement_pos') self.statement_pos = attributes[:'statement_pos'] if attributes[:'statement_pos'] self.statement_text = attributes[:'statementText'] if attributes[:'statementText'] raise 'You cannot provide both :statementText and :statement_text' if attributes.key?(:'statementText') && attributes.key?(:'statement_text') self.statement_text = attributes[:'statement_text'] if attributes[:'statement_text'] self.error = attributes[:'error'] if attributes[:'error'] self.dbms_output = attributes[:'dbmsOutput'] if attributes[:'dbmsOutput'] raise 'You cannot provide both :dbmsOutput and :dbms_output' if attributes.key?(:'dbmsOutput') && attributes.key?(:'dbms_output') self.dbms_output = attributes[:'dbms_output'] if attributes[:'dbms_output'] self.properties = attributes[:'properties'] if attributes[:'properties'] self.responses = attributes[:'responses'] if attributes[:'responses'] self.results = attributes[:'results'] if attributes[:'results'] self.result_set_object = attributes[:'resultSetObject'] if attributes[:'resultSetObject'] raise 'You cannot provide both :resultSetObject and :result_set_object' if attributes.key?(:'resultSetObject') && attributes.key?(:'result_set_object') self.result_set_object = attributes[:'result_set_object'] if attributes[:'result_set_object'] self.result_set = attributes[:'resultSet'] if attributes[:'resultSet'] raise 'You cannot provide both :resultSet and :result_set' if attributes.key?(:'resultSet') && attributes.key?(:'result_set') self.result_set = attributes[:'result_set'] if attributes[:'result_set'] self.binds = attributes[:'binds'] if attributes[:'binds'] end |
Instance Attribute Details
#binds ⇒ Array<OCI::DatabaseToolsRuntime::Models::ExecuteSqlBind>
Array of objects specifying the bind information.
68 69 70 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 68 def binds @binds end |
#dbms_output ⇒ String
Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON).
47 48 49 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 47 def dbms_output @dbms_output end |
#error ⇒ OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemError
43 44 45 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 43 def error @error end |
#properties ⇒ OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemProperties
50 51 52 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 50 def properties @properties end |
#responses ⇒ Array<String>
Responses generated when executing the statements.
54 55 56 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 54 def responses @responses end |
#result_set ⇒ OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemResultSet
64 65 66 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 64 def result_set @result_set end |
#result_set_object ⇒ OCI::DatabaseToolsRuntime::Models::ExecuteSqlOutputDispositionDetails
61 62 63 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 61 def result_set_object @result_set_object end |
#results ⇒ Array<Integer>
Results generated when executing the statements.
58 59 60 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 58 def results @results end |
#statement_id ⇒ Integer
The sequence number of the statement. Sequence number of the first statement is 1.
29 30 31 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 29 def statement_id @statement_id end |
#statement_pos ⇒ OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemStatementPos
36 37 38 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 36 def statement_pos @statement_pos end |
#statement_text ⇒ String
Text of statements executed.
40 41 42 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 40 def statement_text @statement_text end |
#statement_type ⇒ String
The Statement type.
33 34 35 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 33 def statement_type @statement_type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 71 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'statement_id': :'statementId', 'statement_type': :'statementType', 'statement_pos': :'statementPos', 'statement_text': :'statementText', 'error': :'error', 'dbms_output': :'dbmsOutput', 'properties': :'properties', 'responses': :'responses', 'results': :'results', 'result_set_object': :'resultSetObject', 'result_set': :'resultSet', 'binds': :'binds' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 91 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'statement_id': :'Integer', 'statement_type': :'String', 'statement_pos': :'OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemStatementPos', 'statement_text': :'String', 'error': :'OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemError', 'dbms_output': :'String', 'properties': :'OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemProperties', 'responses': :'Array<String>', 'results': :'Array<Integer>', 'result_set_object': :'OCI::DatabaseToolsRuntime::Models::ExecuteSqlOutputDispositionDetails', 'result_set': :'OCI::DatabaseToolsRuntime::Models::ExecuteSqlResponseItemResultSet', 'binds': :'Array<OCI::DatabaseToolsRuntime::Models::ExecuteSqlBind>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 207 def ==(other) return true if equal?(other) self.class == other.class && statement_id == other.statement_id && statement_type == other.statement_type && statement_pos == other.statement_pos && statement_text == other.statement_text && error == other.error && dbms_output == other.dbms_output && properties == other.properties && responses == other.responses && results == other.results && result_set_object == other.result_set_object && result_set == other.result_set && binds == other.binds end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 248 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
228 229 230 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 228 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
237 238 239 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 237 def hash [statement_id, statement_type, statement_pos, statement_text, error, dbms_output, properties, responses, results, result_set_object, result_set, binds].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
281 282 283 284 285 286 287 288 289 290 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 281 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
275 276 277 |
# File 'lib/oci/database_tools_runtime/models/execute_sql_response_item_standard.rb', line 275 def to_s to_hash.to_s end |