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

#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)


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

def cache
  attr_get_integer(OCI_ATTR_CACHE)
end

#hw_markInteger

high-water mark

Returns:

  • (Integer)


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

def hw_mark
  attr_get_integer(OCI_ATTR_HW_MARK)
end

#incrInteger

increment

Returns:

  • (Integer)


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

def incr
  attr_get_integer(OCI_ATTR_INCR)
end

#maxInteger

maximum value

Returns:

  • (Integer)


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

def max
  attr_get_integer(OCI_ATTR_MAX)
end

#minInteger

minimum value

Returns:

  • (Integer)


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

def min
  attr_get_integer(OCI_ATTR_MIN)
end

#objidObject

object id



1242
1243
1244
# File 'lib/oci8/metadata.rb', line 1242

def objid
  attr_get_ub4(OCI_ATTR_OBJID)
end

#order?Boolean

whether the sequence is ordered

Returns:

  • (Boolean)


1275
1276
1277
# File 'lib/oci8/metadata.rb', line 1275

def order?
  __boolean(OCI_ATTR_ORDER)
end