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_link, #obj_name, #obj_schema

Instance Method Details

#cacheInteger

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

Returns:

  • (Integer)


1310
1311
1312
# File 'lib/oci8/metadata.rb', line 1310

def cache
  attr_get_integer(OCI_ATTR_CACHE)
end

#hw_markInteger

high-water mark

Returns:

  • (Integer)


1322
1323
1324
# File 'lib/oci8/metadata.rb', line 1322

def hw_mark
  attr_get_integer(OCI_ATTR_HW_MARK)
end

#incrInteger

increment

Returns:

  • (Integer)


1303
1304
1305
# File 'lib/oci8/metadata.rb', line 1303

def incr
  attr_get_integer(OCI_ATTR_INCR)
end

#maxInteger

maximum value

Returns:

  • (Integer)


1296
1297
1298
# File 'lib/oci8/metadata.rb', line 1296

def max
  attr_get_integer(OCI_ATTR_MAX)
end

#minInteger

minimum value

Returns:

  • (Integer)


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

def min
  attr_get_integer(OCI_ATTR_MIN)
end

#objidObject

object id



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

def objid
  attr_get_ub4(OCI_ATTR_OBJID)
end

#order?Boolean

whether the sequence is ordered

Returns:

  • (Boolean)


1315
1316
1317
# File 'lib/oci8/metadata.rb', line 1315

def order?
  __boolean(OCI_ATTR_ORDER)
end