RegisterSign In

API Documentation: Interface ODBObject

Package: com.mckoi.odb
implements com.mckoi.odb.ODBReferenced

An object within the Mckoi Object Database API. An ODBObject contains field values based on the object's class specification (ODBClass). An object's field value is accessed via a call to 'getxxx'. If the field of an object is mutable, it may be changed via a call to a 'setxxx' method.

Methods Summary

int size()
String getString(int i)
String getString(String field_name)
ODBObject getObject(int i)
ODBObject getObject(String field_name)
ODBList getList(int i)
ODBList getList(String field_name)
ODBData getData(int i)
ODBData getData(String field_name)
void setString(int i, String str)
void setString(String field_name, String str)
void setObject(int i, ODBObject obj)
void setObject(String field_name, ODBObject obj)

Method Details

int size()

The number of fields stored in this object. This number matches with the object's class (eg. 'getODBClass().getFieldCount()')

String getString(int i)

Returns the string at field position 'i' in this object.

String getString(String field_name)

Returns the string with the given field name in this object.

ODBObject getObject(int i)

Returns the ODBObject at field position 'i' in this object.

ODBObject getObject(String field_name)

Returns the ODBObject with the given field name in this object.

ODBList getList(int i)

Returns the ODBList at field position 'i' in this object.

ODBList getList(String field_name)

Returns the ODBList with the given field name in this object.

ODBData getData(int i)

Returns the ODBData at field position 'i' in this object.

ODBData getData(String field_name)

Returns the ODBData with the given field name in this object.

void setString(int i, String str)

Sets the string at field position 'i' in this object.

void setString(String field_name, String str)

Sets the value of the given field name in this object to the given string.

void setObject(int i, ODBObject obj)

Sets the object at field position 'i' in this object.

void setObject(String field_name, ODBObject obj)

Sets the value of the given field name in this object to the given ODBObject.

The text on this page is licensed under the Creative Commons Attribution 3.0 License. Java is a registered trademark of Oracle and/or its affiliates.
Mckoi is Copyright © 2000 - 2020 Diehl and Associates, Inc. All rights reserved.