com.scooterframework.web.util
Class O

java.lang.Object
  extended by com.scooterframework.web.util.O

public class O
extends java.lang.Object

O(ObjectHelper) class has helper methods for objects including ActiveRecord related instances.


Constructor Summary
O()
           
 
Method Summary
static java.util.List<ActiveRecord> allAssociatedRecordsOf(ActiveRecord record, java.lang.String associatedModel)
          Gets all the associated records of an ActiveRecord instance.
static java.util.List<ActiveRecord> allAssociatedRecordsOf(ActiveRecord record, java.lang.String associatedModel, boolean refresh)
          Gets all the associated records of an ActiveRecord instance.
static java.util.List<ActiveRecord> allAssociatedRecordsOf(java.lang.String keyDotModel)
          Gets all the associated records of an ActiveRecord instance represented by a key.
static java.util.List<ActiveRecord> allAssociatedRecordsOf(java.lang.String keyDotModel, boolean refresh)
          Gets all the associated records of an ActiveRecord instance represented by a key.
static java.util.List<ActiveRecord> allAssociatedRecordsOf(java.lang.String key, java.lang.String associatedModel)
          Gets all the associated records of an ActiveRecord instance represented by a key.
static java.util.List<ActiveRecord> allAssociatedRecordsOf(java.lang.String key, java.lang.String associatedModel, boolean refresh)
          Gets all the associated records of an ActiveRecord instance represented by a key.
static ActiveRecord associatedRecordOf(ActiveRecord record, java.lang.String associatedModel)
          Gets the associated record of an ActiveRecord instance.
static ActiveRecord associatedRecordOf(ActiveRecord record, java.lang.String associatedModel, boolean refresh)
          Gets the associated record of an ActiveRecord instance.
static ActiveRecord associatedRecordOf(java.lang.String keyDotModel)
          Gets the associated record of an ActiveRecord instance represented by a key.
static ActiveRecord associatedRecordOf(java.lang.String keyDotModel, boolean refresh)
          Gets the associated record of an ActiveRecord instance represented by a key.
static ActiveRecord associatedRecordOf(java.lang.String key, java.lang.String associatedModel)
          Gets the associated record of an ActiveRecord instance represented by a key.
static ActiveRecord associatedRecordOf(java.lang.String key, java.lang.String associatedModel, boolean refresh)
          Gets the associated record of an ActiveRecord instance represented by a key.
static java.util.Iterator<java.lang.String> columnNames(ActiveRecord record)
           Returns an iterator of column names of the record.
static java.util.Iterator<java.lang.String> columnNames(java.util.Collection<?> records)
           Returns an iterator of column names of the record in the records collection.
static java.util.Iterator<java.lang.String> columnNames(RESTified record)
           Returns an iterator of column names.
static java.util.Iterator<java.lang.String> columnNames(RowData rd)
           Returns an iterator of column names.
static java.util.Iterator<java.lang.String> columnNames(RowInfo rowInfo)
           Returns an iterator of column names.
static java.util.Iterator<java.lang.String> columnNames(java.lang.String model)
           Returns an iterator of column names of the model.
static java.util.Iterator<java.lang.String> columnNames(TableData td)
           Returns an iterator of column names.
static java.util.Iterator<ColumnInfo> columns(ActiveRecord record)
           Returns an iterator of ColumnInfo instances of the record.
static java.util.Iterator<ColumnInfo> columns(java.util.Collection<?> records)
           Returns an iterator of ColumnInfo instances of the records collection.
static java.util.Iterator<ColumnInfo> columns(RESTified record)
           Returns an iterator of ColumnInfo instances of the record.
static java.util.Iterator<ColumnInfo> columns(RowData rd)
           Returns an iterator of ColumnInfo instances of the record.
static java.util.Iterator<ColumnInfo> columns(RowInfo rowInfo)
           Returns an iterator of ColumnInfo instances.
static java.util.Iterator<ColumnInfo> columns(java.lang.String model)
           Returns an iterator of ColumnInfo instances of the model.
static int count(java.util.Collection<?> items)
          Counts total number of items in a collection.
static
<K,V> int
count(java.util.Map<K,V> items)
          Counts total number of items in a map.
static int count(java.lang.Object[] items)
          Counts total number of items in an array.
static
<K,V> int
count(java.lang.String key)
           Returns an iterator of a collection represented by a key.
static java.lang.String encodedRestfulIdOf(RESTified record)
          Returns url-encoded restful id of a record.
static java.util.List<Message> getErrorMessages(ActiveRecord record)
          Returns all error messages associated with a record instance.
static java.util.List<Message> getErrorMessages(java.lang.String model)
          Returns all error messages associated with a model instance.
static java.lang.Object getObjectForKey(java.lang.String key)
          Gets data represented by the key from the first scope it is found.
static java.lang.Object getProperty(java.lang.Object object, java.lang.String property)
          Gets property value from the object.
static ReferenceData getReferenceDataByTypeAndKey(java.lang.String type, java.lang.String keyData)
          Gets ReferenceData by type and key
static ReferenceData getReferenceDataByTypeAndValue(java.lang.String type, java.lang.Object valueData)
          Gets ReferenceData by type and value
static java.util.List<ReferenceData> getReferenceDataList(java.lang.String type)
          Gets a list of ReferenceData instances for a certain type.
static RowInfo getRowInfo(java.lang.String model)
           Returns a RowInfo instance of the model.
static ActiveRecord homeInstance(java.lang.String model)
          Returns home instance of the model.
static java.lang.String hp(java.lang.Object object, java.lang.String property)
          Returns html-escaped text of an object's property.
static java.lang.String hv(java.lang.String keyProperty)
          Returns html-escaped text of an object's property.
static java.util.Iterator<?> iteratorOf(java.util.Collection<?> items)
           Returns an iterator of a collection.
static
<K,V> java.util.Iterator<K>
iteratorOf(java.util.Map<K,V> map)
           Returns an iterator of a map.
static java.util.Iterator<?> iteratorOf(java.lang.String key)
           Returns an iterator of a collection represented by a key.
static java.lang.String property(java.lang.Object object, java.lang.String property)
          Returns text of an object's property.
static java.lang.String property(java.lang.Object object, java.lang.String property, int type, java.lang.String pattern, java.util.Locale locale)
          Returns text of an object's property.
static java.lang.String property(java.lang.Object object, java.lang.String property, java.lang.String pattern)
          Returns text of an object's property.
static java.lang.String property(java.lang.Object object, java.lang.String property, java.lang.String pattern, java.util.Locale locale)
          Returns text of an object's property.
static java.lang.String restfulIdOf(RESTified record)
          Returns restful id of the record.
static RowInfo rowInfoOf(ActiveRecord record)
          Returns RowInfo attribute of the record.
static RowInfo rowInfoOf(RowData record)
          Returns RowInfo attribute of the record.
static RowInfo rowInfoOf(TableData tableData)
          Returns RowInfo attribute of the TableData instance.
static RowInfo rowInfoOf(TableInfo tableInfo)
          Returns RowInfo attribute of the TableInfo instance.
static java.lang.String value(java.lang.String keyProperty)
          Returns text of a key.property value.
static java.lang.String value(java.lang.String keyProperty, java.lang.String pattern)
          Returns text of a key.property value.
static java.lang.String value(java.lang.String keyProperty, java.lang.String pattern, java.util.Locale locale)
          Returns text of a key.property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

O

public O()
Method Detail

getObjectForKey

public static java.lang.Object getObjectForKey(java.lang.String key)
Gets data represented by the key from the first scope it is found. Note: The result of this method is sensitive to the case of key string.

Parameters:
key -
Returns:
Object

getProperty

public static java.lang.Object getProperty(java.lang.Object object,
                                           java.lang.String property)
Gets property value from the object. The object can be of type ActiveRecord, RowData, Properties, Map, or simply a java bean (POJO).

If the object is an ActiveRecord instance, and the property string consists of dots, this method will treat the dotted string as a path in association.

 Examples:
     //post belongsTo user
     getProperty(post, "user.first_name") 
     => returns first name of the post author
     
     //lineitem belongsTo order belongsTo customer
     getProperty(lineitem, "order.customer.first_name") 
     => returns first name of the customer who ordered the line item
 

It is not recommended to use dotted property string unless you are sure the object is in a belongs-to or has-one relation chain among all elements of the dotted property string.

Parameters:
object -
property -
Returns:
Object

allAssociatedRecordsOf

public static java.util.List<ActiveRecord> allAssociatedRecordsOf(java.lang.String keyDotModel)
Gets all the associated records of an ActiveRecord instance represented by a key.

See description of allAssociatedRecordsOf(com.scooterframework.orm.activerecord.ActiveRecord, java.lang.String) method for more details and examples.

Parameters:
keyDotModel - type of associated model.
Returns:
list of associated records.

allAssociatedRecordsOf

public static java.util.List<ActiveRecord> allAssociatedRecordsOf(java.lang.String keyDotModel,
                                                                  boolean refresh)
Gets all the associated records of an ActiveRecord instance represented by a key.

See description of allAssociatedRecordsOf(com.scooterframework.orm.activerecord.ActiveRecord, java.lang.String) method for more details and examples.

Parameters:
keyDotModel - type of associated model.
refresh - true if reload database data
Returns:
list of associated records.

allAssociatedRecordsOf

public static java.util.List<ActiveRecord> allAssociatedRecordsOf(java.lang.String key,
                                                                  java.lang.String associatedModel)
Gets all the associated records of an ActiveRecord instance represented by a key.

See description of allAssociatedRecordsOf(com.scooterframework.orm.activerecord.ActiveRecord, java.lang.String) method for more details and examples.

Parameters:
key - the key representing the ActiveRecord instance.
associatedModel - type of associated model.
Returns:
list of associated records.

allAssociatedRecordsOf

public static java.util.List<ActiveRecord> allAssociatedRecordsOf(java.lang.String key,
                                                                  java.lang.String associatedModel,
                                                                  boolean refresh)
Gets all the associated records of an ActiveRecord instance represented by a key.

See description of allAssociatedRecordsOf(com.scooterframework.orm.activerecord.ActiveRecord, java.lang.String) method for more details and examples.

Parameters:
key - the key representing the ActiveRecord instance.
associatedModel - type of associated model.
refresh - true if reload database data
Returns:
list of associated records.

allAssociatedRecordsOf

public static java.util.List<ActiveRecord> allAssociatedRecordsOf(ActiveRecord record,
                                                                  java.lang.String associatedModel)
Gets all the associated records of an ActiveRecord instance.

If the associatedModel string consists of dots, this method will treat the dotted string as a path in associaiton.

 Examples:
     //customer hasMany orders
     allAssociatedRecordsOf(customer, "order") 
     => returns a list of orders of the customer
     
     //customer hasMany orders hasMany lineitems
     allAssociatedRecordsOf(customer, "order.lineitem") 
     => returns a list of lineitems for all orders of the customer
 

It is not recommended to use dotted allAssociatedRecordsOf string unless you are sure the object is in a hasMany or hasManyThrough relation chain among all elements of the dotted string.

Parameters:
record - an ActiveRecord instance.
associatedModel - type of associated model.
Returns:
list of associated records.

allAssociatedRecordsOf

public static java.util.List<ActiveRecord> allAssociatedRecordsOf(ActiveRecord record,
                                                                  java.lang.String associatedModel,
                                                                  boolean refresh)
Gets all the associated records of an ActiveRecord instance.

See description of allAssociatedRecordsOf(com.scooterframework.orm.activerecord.ActiveRecord, java.lang.String) method for more details and examples.

Parameters:
record - an ActiveRecord instance.
associatedModel - type of associated model.
refresh - true if reload database data
Returns:
list of associated records.

associatedRecordOf

public static ActiveRecord associatedRecordOf(java.lang.String keyDotModel)
Gets the associated record of an ActiveRecord instance represented by a key.

See description of associatedRecordOf(com.scooterframework.orm.activerecord.ActiveRecord, java.lang.String) method for more details and examples.

Parameters:
keyDotModel - type of associated model.
Returns:
the associated record

associatedRecordOf

public static ActiveRecord associatedRecordOf(java.lang.String keyDotModel,
                                              boolean refresh)
Gets the associated record of an ActiveRecord instance represented by a key.

See description of associatedRecordOf(com.scooterframework.orm.activerecord.ActiveRecord, java.lang.String) method for more details and examples.

Parameters:
keyDotModel - type of associated model.
refresh - true if reload database data
Returns:
the associated record

associatedRecordOf

public static ActiveRecord associatedRecordOf(java.lang.String key,
                                              java.lang.String associatedModel)
Gets the associated record of an ActiveRecord instance represented by a key.

See description of associatedRecordOf(com.scooterframework.orm.activerecord.ActiveRecord, java.lang.String) method for more details and examples.

Parameters:
key - the key representing the ActiveRecord instance.
associatedModel - type of associated model.
Returns:
the associated record

associatedRecordOf

public static ActiveRecord associatedRecordOf(java.lang.String key,
                                              java.lang.String associatedModel,
                                              boolean refresh)
Gets the associated record of an ActiveRecord instance represented by a key.

See description of associatedRecordOf(com.scooterframework.orm.activerecord.ActiveRecord, java.lang.String) method for more details and examples.

Parameters:
key - the key representing the ActiveRecord instance.
associatedModel - type of associated model.
refresh - true if reload database data
Returns:
the associated record

associatedRecordOf

public static ActiveRecord associatedRecordOf(ActiveRecord record,
                                              java.lang.String associatedModel)
Gets the associated record of an ActiveRecord instance.

If the associatedModel string consists of dots, this method will treat the dotted string as a path in association.

 Examples:
     //post belongsTo user
     associatedRecordOf(post, "user") 
     => returns the post author
     
     //lineitem belongsTo order belongsTo customer
     associatedRecordOf(lineitem, "order.customer") 
     => returns the customer who ordered the line item
 

It is not recommended to use dotted associatedModel string unless you are sure the object is in a belongs-to or has-one relation chain among all elements of the dotted string.

Parameters:
record - an ActiveRecord instance.
associatedModel - type of associated model.
Returns:
the associated record

associatedRecordOf

public static ActiveRecord associatedRecordOf(ActiveRecord record,
                                              java.lang.String associatedModel,
                                              boolean refresh)
Gets the associated record of an ActiveRecord instance.

See description of associatedRecordOf(com.scooterframework.orm.activerecord.ActiveRecord, java.lang.String) method for more details and examples.

Parameters:
record - an ActiveRecord instance.
associatedModel - type of associated model.
refresh - true if reload database data
Returns:
the associated record

hv

public static java.lang.String hv(java.lang.String keyProperty)

Returns html-escaped text of an object's property. The object is associated with the key.

This method applies the method W.htmlEsacpe(String) to the result of value method.

See description of W.htmlEsacpe(String) method for which characters are escaped.

See description of value method for how the keyProperty is formatted.

Parameters:
keyProperty - a "key.property" string
Returns:
html-escaped text

hp

public static java.lang.String hp(java.lang.Object object,
                                  java.lang.String property)

Returns html-escaped text of an object's property.

This method applies the method W.htmlEsacpe(String) to the result of property method.

See description of W.htmlEsacpe(String) method for which characters are escaped.

See description of property method for how the property is formatted.

Parameters:
object - the object
property - the property string
Returns:
html-escaped text

value

public static java.lang.String value(java.lang.String keyProperty)
Returns text of a key.property value. If data for the property is null, an empty string is returned. Key is a constant representing an object instance in a scope. Property is an attribute name of the object or a dotted path to an attribute.
 Examples:
      value("comment.created_at")   returns created date text of an object represented by key "comment".
      value("post.title")           returns title text of an object represented by key "post".
      value("user.first_name")      returns first name text of an object represented by key "user".
      value("post.user.first_name") returns first name text of the author of the post.
 

Parameters:
keyProperty - a "key.property" string
Returns:
text of a key property

value

public static java.lang.String value(java.lang.String keyProperty,
                                     java.lang.String pattern)
Returns text of a key.property value.

See description of value method for more details.

Parameters:
keyProperty - a "key.property" string
pattern - pattern of the value
Returns:
text of a key property

value

public static java.lang.String value(java.lang.String keyProperty,
                                     java.lang.String pattern,
                                     java.util.Locale locale)
Returns text of a key.property value.

See description of value method for more details and examples.

Parameters:
keyProperty - a "key.property" string
pattern - pattern of the value
locale - locale of the value
Returns:
text of a key property

property

public static java.lang.String property(java.lang.Object object,
                                        java.lang.String property)
Returns text of an object's property. Property is an attribute name of the object or a dotted path to an attribute.
 Examples:
      property(comment, "created_at")   returns created date text of a comment record.
      property(post, "title")           returns title text of a post record.
      property(user, "first_name")      returns first name text of a user record.
      property(post, "user.first_name") returns first name text of the author of the post record.
 

Parameters:
object - the object
property - the property string
Returns:
text of an object's property

property

public static java.lang.String property(java.lang.Object object,
                                        java.lang.String property,
                                        java.lang.String pattern)
Returns text of an object's property.

See description of property method for more details and examples.

Parameters:
object - the object
property - the property string
pattern - pattern of the property
Returns:
text of an object's property

property

public static java.lang.String property(java.lang.Object object,
                                        java.lang.String property,
                                        java.lang.String pattern,
                                        java.util.Locale locale)
Returns text of an object's property.

See description of property method for more details and examples.

Parameters:
object - the object
property - the property string
pattern - pattern of the pattern
locale - locale of the pattern
Returns:
text of an object's property

property

public static java.lang.String property(java.lang.Object object,
                                        java.lang.String property,
                                        int type,
                                        java.lang.String pattern,
                                        java.util.Locale locale)
Returns text of an object's property.

See description of property method for more details and examples.

Parameters:
object - the object
property - the property string
type - data type (1=Currency, 2=Date, 3=Number)
pattern - pattern of the property
locale - locale of the property
Returns:
text of an object's property

getErrorMessages

public static java.util.List<Message> getErrorMessages(java.lang.String model)
Returns all error messages associated with a model instance.

Parameters:
model - model name
Returns:
List of error messages.

getErrorMessages

public static java.util.List<Message> getErrorMessages(ActiveRecord record)
Returns all error messages associated with a record instance.

Parameters:
record - an ActiveRecord instance
Returns:
List of error messages.

getReferenceDataList

public static java.util.List<ReferenceData> getReferenceDataList(java.lang.String type)
Gets a list of ReferenceData instances for a certain type.

Returns:
List

getReferenceDataByTypeAndKey

public static ReferenceData getReferenceDataByTypeAndKey(java.lang.String type,
                                                         java.lang.String keyData)
Gets ReferenceData by type and key

Returns:
ReferenceData

getReferenceDataByTypeAndValue

public static ReferenceData getReferenceDataByTypeAndValue(java.lang.String type,
                                                           java.lang.Object valueData)
Gets ReferenceData by type and value

Returns:
ReferenceData

homeInstance

public static ActiveRecord homeInstance(java.lang.String model)
Returns home instance of the model.

Parameters:
model - model name
Returns:
home instance of the model

columnNames

public static java.util.Iterator<java.lang.String> columnNames(java.lang.String model)

Returns an iterator of column names of the model. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
model - model name
Returns:
iterator

columnNames

public static java.util.Iterator<java.lang.String> columnNames(ActiveRecord record)

Returns an iterator of column names of the record. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
record - an active record instance or home instance
Returns:
iterator

columnNames

public static java.util.Iterator<java.lang.String> columnNames(RowInfo rowInfo)

Returns an iterator of column names. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
rowInfo - a RowInfo instance
Returns:
iterator

columnNames

public static java.util.Iterator<java.lang.String> columnNames(TableData td)

Returns an iterator of column names. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
td - a TableData instance
Returns:
iterator

columnNames

public static java.util.Iterator<java.lang.String> columnNames(RowData rd)

Returns an iterator of column names. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
rd - a RowData instance
Returns:
iterator

columnNames

public static java.util.Iterator<java.lang.String> columnNames(RESTified record)

Returns an iterator of column names. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
record - a restified record
Returns:
iterator

columnNames

public static java.util.Iterator<java.lang.String> columnNames(java.util.Collection<?> records)

Returns an iterator of column names of the record in the records collection. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
records - a collection of records
Returns:
iterator

columns

public static java.util.Iterator<ColumnInfo> columns(java.lang.String model)

Returns an iterator of ColumnInfo instances of the model. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
model - model name
Returns:
iterator

columns

public static java.util.Iterator<ColumnInfo> columns(ActiveRecord record)

Returns an iterator of ColumnInfo instances of the record. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
record - an ActiveRecord record instance or home instance
Returns:
an iterator of ColumnInfo instances

columns

public static java.util.Iterator<ColumnInfo> columns(RowInfo rowInfo)

Returns an iterator of ColumnInfo instances. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
rowInfo - a RowInfo instance
Returns:
iterator

columns

public static java.util.Iterator<ColumnInfo> columns(RESTified record)

Returns an iterator of ColumnInfo instances of the record. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
record - a restified record
Returns:
an iterator of ColumnInfo instances

columns

public static java.util.Iterator<ColumnInfo> columns(RowData rd)

Returns an iterator of ColumnInfo instances of the record. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
rd - a RowData record instance
Returns:
an iterator of ColumnInfo instances

columns

public static java.util.Iterator<ColumnInfo> columns(java.util.Collection<?> records)

Returns an iterator of ColumnInfo instances of the records collection. This is a safe method. If input record is null, an empty iterator is still returned.

Parameters:
records - a collection of records
Returns:
an iterator of ColumnInfo instances

iteratorOf

public static java.util.Iterator<?> iteratorOf(java.lang.String key)

Returns an iterator of a collection represented by a key. This is a safe method. If the collection is null, an empty iterator is still returned.

Parameters:
key - key of a collection saved in request
Returns:
an iterator of the collection

iteratorOf

public static java.util.Iterator<?> iteratorOf(java.util.Collection<?> items)

Returns an iterator of a collection. This is a safe method. If the collection is null, an empty iterator is still returned.

Parameters:
items - a collection of items
Returns:
an iterator of the collection

iteratorOf

public static <K,V> java.util.Iterator<K> iteratorOf(java.util.Map<K,V> map)

Returns an iterator of a map. This is a safe method. If the map is null, an empty iterator is still returned.

Parameters:
map - a map
Returns:
an iterator of the collection

getRowInfo

public static RowInfo getRowInfo(java.lang.String model)

Returns a RowInfo instance of the model. This is a safe method. If input model is null, an empty RowInfo instance is still returned.

Parameters:
model - model name
Returns:
RowInfo for the model

count

public static int count(java.lang.Object[] items)
Counts total number of items in an array.

Parameters:
items - array of items
Returns:
total number of items

count

public static int count(java.util.Collection<?> items)
Counts total number of items in a collection.

Parameters:
items - collection of items
Returns:
total number of items

count

public static <K,V> int count(java.util.Map<K,V> items)
Counts total number of items in a map.

Parameters:
items - map of items
Returns:
total number of items

count

public static <K,V> int count(java.lang.String key)

Returns an iterator of a collection represented by a key. This is a safe method. If the collection is null, an empty iterator is still returned.

Parameters:
key - key of a collection saved in request
Returns:
an iterator of the collection

restfulIdOf

public static java.lang.String restfulIdOf(RESTified record)
Returns restful id of the record. If it is null, return empty string.

Parameters:
record - a RESTified record
Returns:
restful id of the record.

encodedRestfulIdOf

public static java.lang.String encodedRestfulIdOf(RESTified record)
Returns url-encoded restful id of a record.

Parameters:
record - a RESTified record
Returns:
encoded restful id of the record.

rowInfoOf

public static RowInfo rowInfoOf(ActiveRecord record)
Returns RowInfo attribute of the record.

Parameters:
record - a record object
Returns:
RowInfo attribute of the record.

rowInfoOf

public static RowInfo rowInfoOf(RowData record)
Returns RowInfo attribute of the record.

Parameters:
record - a record object
Returns:
RowInfo attribute of the record.

rowInfoOf

public static RowInfo rowInfoOf(TableData tableData)
Returns RowInfo attribute of the TableData instance.

Parameters:
tableData - a TableData object
Returns:
RowInfo attribute of the record.

rowInfoOf

public static RowInfo rowInfoOf(TableInfo tableInfo)
Returns RowInfo attribute of the TableInfo instance.

Parameters:
tableInfo - a TableInfo object
Returns:
RowInfo attribute of the record.