com.sybase.persistence
Class AbstractEntity

java.lang.Object
  extended by com.sybase.persistence.AbstractEntity

public abstract class AbstractEntity
extends java.lang.Object

This is the abstract base class of all the generated MobileBusinessObject implementation.


Field Summary
protected  boolean __disableSubmit
           
protected  boolean __pending
           
protected  char __pendingChange
           
protected  long __replayCounter
           
protected  long __replayFailure
           
protected  long __replayPending
           
protected  boolean _isDeleted
           
protected  boolean _isDirty
           
protected  boolean _isNew
           
static char PENDING_CREATE
          Pending change - create.
static char PENDING_DELETE
          Pending change - delete.
static char PENDING_NO
          Pending change - no pending.
static char PENDING_PARENT
          Pending change - parent.
static char PENDING_UPDATE
          Pending change - update.
 
Constructor Summary
AbstractEntity()
           
 
Method Summary
protected  void bind(ianywhere.ultralitej.ResultSet rs)
           
static void findWithoutParameters(ConnectionWrapper conn, int skip, int take, ObjectList outList, java.lang.String selectSQL, java.lang.Class cl)
          Sybase internal use only.
static void findWithQuery(ConnectionWrapper conn, Query query, ObjectList outList, java.lang.Class cl)
          Sybase internal use only.
 boolean getDisableSubmit()
          Gets the disable submit attribute of the Mobile business Object.
static Query getLogRecordQuery(java.lang.String entityName, java.lang.String idString)
          Sybase internal use only.
 boolean getPending()
          Gets the pending value of the Mobile Business Object.
 char getPendingChange()
          Gets the pending change value of the Mobile business Object.
 long getReplayCounter()
          Gets the replay counter attribute of the Mobile business Object.
 long getReplayFailure()
          Gets the replay failure value of the Mobile business Object.
 long getReplayPending()
          Gets the replay pending value of the Mobile business Object.
static int getRowCount(ConnectionWrapper conn, Query query)
          Sybase internal use only.
 boolean isCreated()
          Returns true if this entity was created and saved to the database.
 boolean isDirty()
          Returns true if this entity was loaded from the database and was subsequently modified (in memory), but the change has not yet been saved to the database.
 boolean isNew()
          Returns true if the MBO is just created and not saved to DB yet
 boolean isPending()
          Gets the pending value of the Mobile business Object.
 boolean isUpdated()
          Returns true if this entity was updated and saved to the database.
 void setDirty(boolean dirty)
          Sybase internal use only.
 void setDisableSubmit(boolean ___disableSubmit)
          Sets the disable submit attribute of the Mobile business Object.
 void setPending(boolean ___pending)
          Sets the pending value of the Mobile Business Object.
 void setPendingChange(char ___pendingChange)
          Sets the pending change value of the Mobile business Object.
 void setReplayCounter(long ___replayCounter)
          Sets the replay counter attribute of the Mobile business Object.
 void setReplayFailure(long ___replayFailure)
          Sets the replay failure value of the Mobile business Object.
 void setReplayPending(long ___replayPending)
          Sets the replay pending value of the Mobile business Object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PENDING_NO

public static final char PENDING_NO
Pending change - no pending.

See Also:
Constant Field Values

PENDING_CREATE

public static final char PENDING_CREATE
Pending change - create.

See Also:
Constant Field Values

PENDING_UPDATE

public static final char PENDING_UPDATE
Pending change - update.

See Also:
Constant Field Values

PENDING_DELETE

public static final char PENDING_DELETE
Pending change - delete.

See Also:
Constant Field Values

PENDING_PARENT

public static final char PENDING_PARENT
Pending change - parent.

See Also:
Constant Field Values

_isNew

protected boolean _isNew

_isDirty

protected boolean _isDirty

_isDeleted

protected boolean _isDeleted

__pending

protected boolean __pending

__pendingChange

protected char __pendingChange

__disableSubmit

protected boolean __disableSubmit

__replayCounter

protected long __replayCounter

__replayPending

protected long __replayPending

__replayFailure

protected long __replayFailure
Constructor Detail

AbstractEntity

public AbstractEntity()
Method Detail

getPending

public boolean getPending()
Gets the pending value of the Mobile Business Object.


setPending

public void setPending(boolean ___pending)
Sets the pending value of the Mobile Business Object.


getPendingChange

public char getPendingChange()
Gets the pending change value of the Mobile business Object. The value could be 'N', 'C', 'U', 'D'. Which represents no pending change, pending for create, pending for update, pending for delete. Application programmers should not set its value directly.

Returns:
the pending change value

setPendingChange

public void setPendingChange(char ___pendingChange)
Sets the pending change value of the Mobile business Object.


getDisableSubmit

public boolean getDisableSubmit()
Gets the disable submit attribute of the Mobile business Object. If this value is true, the Mobile business object is not able to submit to server.

Returns:
the disable submit value

setDisableSubmit

public void setDisableSubmit(boolean ___disableSubmit)
Sets the disable submit attribute of the Mobile business Object. If this value is true, the Mobile business object is not able to submit to server.

Parameters:
disableSubmit - the disable submit value

getReplayCounter

public long getReplayCounter()
Gets the replay counter attribute of the Mobile business Object.

Returns:
replay counter

setReplayCounter

public void setReplayCounter(long ___replayCounter)
Sets the replay counter attribute of the Mobile business Object.

Parameters:
___replayCounter -

getReplayPending

public long getReplayPending()
Gets the replay pending value of the Mobile business Object. It is the last request's replay counter.

Returns:
replay pending attribute.

setReplayPending

public void setReplayPending(long ___replayPending)
Sets the replay pending value of the Mobile business Object.


getReplayFailure

public long getReplayFailure()
Gets the replay failure value of the Mobile business Object. It is last failure request's replay counter.

Returns:
replay failure value

setReplayFailure

public void setReplayFailure(long ___replayFailure)
Sets the replay failure value of the Mobile business Object.

Parameters:
replayFailure - replay failure value

isNew

public boolean isNew()
Returns true if the MBO is just created and not saved to DB yet


isDirty

public boolean isDirty()
Returns true if this entity was loaded from the database and was subsequently modified (in memory), but the change has not yet been saved to the database.


setDirty

public void setDirty(boolean dirty)
Sybase internal use only.


isPending

public boolean isPending()
Gets the pending value of the Mobile business Object.

Returns:
the pending value

isCreated

public boolean isCreated()
Returns true if this entity was created and saved to the database.


isUpdated

public boolean isUpdated()
Returns true if this entity was updated and saved to the database.


bind

protected void bind(ianywhere.ultralitej.ResultSet rs)
             throws ianywhere.ultralitej.ULjException
Throws:
ianywhere.ultralitej.ULjException

findWithoutParameters

public static void findWithoutParameters(ConnectionWrapper conn,
                                         int skip,
                                         int take,
                                         ObjectList outList,
                                         java.lang.String selectSQL,
                                         java.lang.Class cl)
Sybase internal use only.


findWithQuery

public static void findWithQuery(ConnectionWrapper conn,
                                 Query query,
                                 ObjectList outList,
                                 java.lang.Class cl)
Sybase internal use only.


getRowCount

public static int getRowCount(ConnectionWrapper conn,
                              Query query)
Sybase internal use only.


getLogRecordQuery

public static Query getLogRecordQuery(java.lang.String entityName,
                                      java.lang.String idString)
Sybase internal use only.