Class: OCI8::Metadata::TypeMethod
Overview
Metadata for a type method.
This is returned by:
-
OCI8::Metadata::Type#type_methods
-
OCI8::Metadata::Type#map_method
-
OCI8::Metadata::Type#order_method
– How can I know whether FUNCTION or PROCEDURE? ++
Instance Method Summary collapse
-
#arguments ⇒ Object
array of TypeArgument objects.
-
#encapsulation ⇒ Object
encapsulation level of the method.
-
#has_result? ⇒ Boolean
indicates method is has rsult.
-
#inspect ⇒ Object
:nodoc:.
-
#is_constructor? ⇒ Boolean
indicates method is a constructor.
-
#is_destructor? ⇒ Boolean
indicates method is a destructor.
-
#is_final_method? ⇒ Boolean
indicates this is a final method.
-
#is_instantiable_method? ⇒ Boolean
indicates this is an instantiable method.
-
#is_map? ⇒ Boolean
indicates method is a map method.
-
#is_operator? ⇒ Boolean
indicates method is an operator.
-
#is_order? ⇒ Boolean
Indicates method is an order method.
-
#is_overriding_method? ⇒ Boolean
indicates this is an overriding method.
-
#is_rnds? ⇒ Boolean
indicates “Read No Data State”(does not query database tables) is set.
-
#is_rnps? ⇒ Boolean
Indicates “Read No Package State”(does not reference the values of packaged variables) is set.
-
#is_selfish? ⇒ Boolean
indicates method is selfish.
-
#is_wnds? ⇒ Boolean
indicates “Write No Data State”(does not modify tables) is set.
-
#is_wnps? ⇒ Boolean
indicates “Write No Package State”(does not change the values of packaged variables) is set.
-
#name ⇒ Object
Name of method (procedure or function).
Methods inherited from Base
#obj_id, #obj_name, #obj_schema
Instance Method Details
#arguments ⇒ Object
array of TypeArgument objects.
The first element is the return type in case of Function.
1179 1180 1181 |
# File 'lib/oci8/metadata.rb', line 1179 def arguments @arguments ||= list_arguments.to_a end |
#encapsulation ⇒ Object
encapsulation level of the method. Values are :public
or :private
.
1093 1094 1095 1096 1097 1098 |
# File 'lib/oci8/metadata.rb', line 1093 def encapsulation case attr_get_ub4(OCI_ATTR_ENCAPSULATION) when 0; :private when 1; :public end end |
#has_result? ⇒ Boolean
indicates method is has rsult
1107 1108 1109 |
# File 'lib/oci8/metadata.rb', line 1107 def has_result? __boolean(OCI_ATTR_HAS_RESULT) end |
#inspect ⇒ Object
:nodoc:
1183 1184 1185 |
# File 'lib/oci8/metadata.rb', line 1183 def inspect # :nodoc: "#<#{self.class.name}: #{name}>" end |
#is_constructor? ⇒ Boolean
indicates method is a constructor
1112 1113 1114 |
# File 'lib/oci8/metadata.rb', line 1112 def is_constructor? __boolean(OCI_ATTR_IS_CONSTRUCTOR) end |
#is_destructor? ⇒ Boolean
indicates method is a destructor
1117 1118 1119 |
# File 'lib/oci8/metadata.rb', line 1117 def is_destructor? __boolean(OCI_ATTR_IS_DESTRUCTOR) end |
#is_final_method? ⇒ Boolean
indicates this is a final method
1162 1163 1164 |
# File 'lib/oci8/metadata.rb', line 1162 def is_final_method? __boolean(OCI_ATTR_IS_FINAL_METHOD) end |
#is_instantiable_method? ⇒ Boolean
indicates this is an instantiable method
1167 1168 1169 |
# File 'lib/oci8/metadata.rb', line 1167 def is_instantiable_method? __boolean(OCI_ATTR_IS_INSTANTIABLE_METHOD) end |
#is_map? ⇒ Boolean
indicates method is a map method
1132 1133 1134 |
# File 'lib/oci8/metadata.rb', line 1132 def is_map? __boolean(OCI_ATTR_IS_MAP) end |
#is_operator? ⇒ Boolean
indicates method is an operator
1122 1123 1124 |
# File 'lib/oci8/metadata.rb', line 1122 def is_operator? __boolean(OCI_ATTR_IS_OPERATOR) end |
#is_order? ⇒ Boolean
Indicates method is an order method
1137 1138 1139 |
# File 'lib/oci8/metadata.rb', line 1137 def is_order? __boolean(OCI_ATTR_IS_ORDER) end |
#is_overriding_method? ⇒ Boolean
indicates this is an overriding method
1172 1173 1174 |
# File 'lib/oci8/metadata.rb', line 1172 def is_overriding_method? __boolean(OCI_ATTR_IS_OVERRIDING_METHOD) end |
#is_rnds? ⇒ Boolean
indicates “Read No Data State”(does not query database tables) is set.
1142 1143 1144 |
# File 'lib/oci8/metadata.rb', line 1142 def is_rnds? __boolean(OCI_ATTR_IS_RNDS) end |
#is_rnps? ⇒ Boolean
Indicates “Read No Package State”(does not reference the values of packaged variables) is set.
1147 1148 1149 |
# File 'lib/oci8/metadata.rb', line 1147 def is_rnps? __boolean(OCI_ATTR_IS_RNPS) end |
#is_selfish? ⇒ Boolean
indicates method is selfish
1127 1128 1129 |
# File 'lib/oci8/metadata.rb', line 1127 def is_selfish? __boolean(OCI_ATTR_IS_SELFISH) end |
#is_wnds? ⇒ Boolean
indicates “Write No Data State”(does not modify tables) is set.
1152 1153 1154 |
# File 'lib/oci8/metadata.rb', line 1152 def is_wnds? __boolean(OCI_ATTR_IS_WNDS) end |
#is_wnps? ⇒ Boolean
indicates “Write No Package State”(does not change the values of packaged variables) is set.
1157 1158 1159 |
# File 'lib/oci8/metadata.rb', line 1157 def is_wnps? __boolean(OCI_ATTR_IS_WNPS) end |
#name ⇒ Object
Name of method (procedure or function)
1087 1088 1089 |
# File 'lib/oci8/metadata.rb', line 1087 def name attr_get_string(OCI_ATTR_NAME) end |