com.softwareag.tamino.db.api.response
Class TCursorContentItem

java.lang.Object
  extended by com.softwareag.tamino.db.api.response.TCursorContentItem
All Implemented Interfaces:
TResponseContentItem

public class TCursorContentItem
extends java.lang.Object
implements TResponseContentItem

TCursorInfoItem is the cursor info specific implementation class for TResponseInfoItem. This class provides access operations for the cursor info structure provided within Tamino responses.

Version:
$Revision: 1.6 $
Author:
Marcus Schreyer

Field Summary
static java.lang.String SPECIFIER
          The specifier for the cursor info item.
 
Constructor Summary
protected TCursorContentItem(java.lang.String handle, java.lang.String current, java.lang.String quantity, java.lang.String next, java.lang.String prev, java.lang.String count)
          Initializes the cursor info item.
 
Method Summary
 java.lang.String getCount()
          Gets the count cursor reference.
 java.lang.String getCurrent()
          Gets the current cursor reference.
 java.lang.String getHandle()
          Gets the handle reference if given, the empty string otherwise.
 java.lang.String getNext()
          Gets the next cursor reference..
 java.lang.String getPrevious()
          Gets the previous cursor reference.
 java.lang.String getQuantity()
          Gets the quantity cursor reference.
 boolean hasCount()
          Indictates if cursor set has a count cursor reference.
 boolean hasCurrent()
          Indictates if cursor set has a current cursor reference.
 boolean hasHandle()
          Indictates if cursor set has a handle reference.
 boolean hasNext()
          Indictates if cursor set has a "next" cursor reference.
 boolean hasPrevious()
          Indictates if cursor set has a "previous" cursor reference.
 boolean hasQuantity()
          Indictates if cursor set has a quantity cursor reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPECIFIER

public static final java.lang.String SPECIFIER
The specifier for the cursor info item.

Constructor Detail

TCursorContentItem

protected TCursorContentItem(java.lang.String handle,
                             java.lang.String current,
                             java.lang.String quantity,
                             java.lang.String next,
                             java.lang.String prev,
                             java.lang.String count)
Initializes the cursor info item. No cursor information is currently given.

Method Detail

getHandle

public java.lang.String getHandle()
Gets the handle reference if given, the empty string otherwise.

Returns:
The cursor handle reference.

hasHandle

public boolean hasHandle()
Indictates if cursor set has a handle reference.

Returns:
true if handle reference is given false otherwise.

getCurrent

public java.lang.String getCurrent()
Gets the current cursor reference.

Returns:
The current cursor reference, otherwise the empty string.

hasCurrent

public boolean hasCurrent()
Indictates if cursor set has a current cursor reference.

Returns:
true if current cursor reference is given false otherwise.

getQuantity

public java.lang.String getQuantity()
Gets the quantity cursor reference.

Returns:
The quantity cursor reference, otherwise the empty string.

hasQuantity

public boolean hasQuantity()
Indictates if cursor set has a quantity cursor reference.

Returns:
true if quantity cursor reference is given false otherwise.

getNext

public java.lang.String getNext()
Gets the next cursor reference..

Returns:
The next cursor reference, otherwise the empty string.

hasNext

public boolean hasNext()
Indictates if cursor set has a "next" cursor reference.

Returns:
true if "next" cursor reference is given false otherwise.

hasPrevious

public boolean hasPrevious()
Indictates if cursor set has a "previous" cursor reference.

Returns:
true if "previous" cursor reference is given false otherwise.

getPrevious

public java.lang.String getPrevious()
Gets the previous cursor reference.

Returns:
The previous cursor reference, otherwise the empty string.

getCount

public java.lang.String getCount()
Gets the count cursor reference.

Returns:
The count cursor reference, otherwise the empty string.

hasCount

public boolean hasCount()
Indictates if cursor set has a count cursor reference.

Returns:
true if count cursor reference is given false otherwise.


Copyright (c) 2013 Software AG. All Rights Reserved.