Class: OCI8::Metadata::Sequence

Inherits:
Base
  • Object
show all
Defined in:
lib/oci8/metadata.rb

Overview

Metadata for a sequence.

This is returned by:

  • OCI8#describe_any(name)

  • OCI8#describe_sequence(name)

  • OCI8::Metadata::Schema#all_objects

  • OCI8::Metadata::Schema#objects

Instance Method Summary collapse

Methods inherited from Base

#inspect, #obj_id, #obj_name, #obj_schema

Instance Method Details

#cacheInteger

number of sequence numbers cached; zero if the sequence is not a cached sequence.

Returns:

  • (Integer)


1278
1279
1280
# File 'lib/oci8/metadata.rb', line 1278

def cache
  attr_get_integer(OCI_ATTR_CACHE)
end

#hw_markInteger

high-water mark

Returns:

  • (Integer)


1290
1291
1292
# File 'lib/oci8/metadata.rb', line 1290

def hw_mark
  attr_get_integer(OCI_ATTR_HW_MARK)
end

#incrInteger

increment

Returns:

  • (Integer)


1271
1272
1273
# File 'lib/oci8/metadata.rb', line 1271

def incr
  attr_get_integer(OCI_ATTR_INCR)
end

#maxInteger

maximum value

Returns:

  • (Integer)


1264
1265
1266
# File 'lib/oci8/metadata.rb', line 1264

def max
  attr_get_integer(OCI_ATTR_MAX)
end

#minInteger

minimum value

Returns:

  • (Integer)


1257
1258
1259
# File 'lib/oci8/metadata.rb', line 1257

def min
  attr_get_integer(OCI_ATTR_MIN)
end

#objidObject

object id



1250
1251
1252
# File 'lib/oci8/metadata.rb', line 1250

def objid
  attr_get_ub4(OCI_ATTR_OBJID)
end

#order?Boolean

whether the sequence is ordered

Returns:

  • (Boolean)


1283
1284
1285
# File 'lib/oci8/metadata.rb', line 1283

def order?
  __boolean(OCI_ATTR_ORDER)
end