ElegantJCharts Java API Specification v2.0

com.elegantj.data.dataprovider
Class Record

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--com.elegantj.data.dataprovider.Record
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class Record
extends java.util.Vector

The Record class provides the attributes of the data record (row).

See Also:
Serialized Form

Field Summary
static java.lang.String DELETED_RECORD
          A constant represents the deleted record status
static java.lang.String FILTERED_RECORD
          A constant represents the filtered record status
static java.lang.String MODIFIED_RECORD
          A constant represents the modified record status
static java.lang.String NEW_MODIFIED_RECORD
          A constant represents the new modified record status
static java.lang.String NEW_RECORD
          A constant represents the new record status
static java.lang.String NOT_MODIFIED_RECORD
          A constant represents the not modified record status
static java.lang.String PRIMARY_RECORD
          A constant represents the primary record status
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Record()
           
Record(int initialCapacity)
           
Record(int initialCapacity, int capacityIncrement)
          Creates a Record with the specified initial capacity and capacity increment.
Record(java.util.Vector v)
          Creates a record containing the elements of the specified vector
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this Record
 int getIndex()
          Gets the index of the record
 java.lang.String getRowStatus()
          Gets the row status
 java.lang.String getTableStatus()
          Gets the table status.
 void setIndex(int ind)
          Sets the index of the record
 void setRowStatus(java.lang.String status)
          Sets the row status.
 void setTableStatus(java.lang.String status)
          Sets the table status.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

NEW_RECORD

public static final java.lang.String NEW_RECORD
A constant represents the new record status

See Also:
Constant Field Values

NEW_MODIFIED_RECORD

public static final java.lang.String NEW_MODIFIED_RECORD
A constant represents the new modified record status

See Also:
Constant Field Values

NOT_MODIFIED_RECORD

public static final java.lang.String NOT_MODIFIED_RECORD
A constant represents the not modified record status

See Also:
Constant Field Values

MODIFIED_RECORD

public static final java.lang.String MODIFIED_RECORD
A constant represents the modified record status

See Also:
Constant Field Values

PRIMARY_RECORD

public static final java.lang.String PRIMARY_RECORD
A constant represents the primary record status

See Also:
Constant Field Values

FILTERED_RECORD

public static final java.lang.String FILTERED_RECORD
A constant represents the filtered record status

See Also:
Constant Field Values

DELETED_RECORD

public static final java.lang.String DELETED_RECORD
A constant represents the deleted record status

See Also:
Constant Field Values
Constructor Detail

Record

public Record()

Record

public Record(java.util.Vector v)
Creates a record containing the elements of the specified vector


Record

public Record(int initialCapacity)

Record

public Record(int initialCapacity,
              int capacityIncrement)
Creates a Record with the specified initial capacity and capacity increment.

Parameters:
initialCapacity - the initial capacity of the record, default 0.
capacityIncrement - the amount by which the capacity is increased when the record overflows, default 0.
Method Detail

setTableStatus

public void setTableStatus(java.lang.String status)
Sets the table status.

Parameters:
status - one of the constants : PRIMARY_RECORD, FILTERED_RECORD, DELETED_RECORD

getTableStatus

public java.lang.String getTableStatus()
Gets the table status.

Returns:
the table status

setRowStatus

public void setRowStatus(java.lang.String status)
Sets the row status.

Parameters:
status - one of the constants : NEW_RECORD, NEW_MODIFIED_RECORD, NOT_MODIFIED_RECORD, MODIFIED_RECORD

getRowStatus

public java.lang.String getRowStatus()
Gets the row status

Returns:
the row status

setIndex

public void setIndex(int ind)
Sets the index of the record

Parameters:
ind - the index of the record

getIndex

public int getIndex()
Gets the index of the record

Returns:
the index of the record

clone

public java.lang.Object clone()
Returns a clone of this Record

Overrides:
clone in class java.util.Vector
Returns:
a clone of this Record

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.