| com.oldboss.framework.bo.BOObject
All known Subclasses: com.oldboss.framework.bo.impl.BOObjectImpl,
BOObject | public interface BOObject (Code) | | Definition of the generic Entity object interface. Entity is analogous to the
record in the table (entity type is like table type). Entity can be created,
read, updated or deleted
|
Method Summary | |
public void | beginEdit(BOTransaction pTransaction) Moves an Existing/ReadOnly BO to the Existing/BeingEdited stage
Can only be done as part of transaction. | public void | delete(BOTransaction pTransaction) Deletes the underlying data base record. | public boolean | isBeingEdited() BeingEdited is one of three major lifecycle stages BO can be in. | public boolean | isDeleted() Deleted is one of three major lifecycle stages BO can be in. | public boolean | isExisting() Existing is one of two modes BO can be in.
When BO represents an existing domain object, some
things may have to be done differently. | public boolean | isInTransaction() | public boolean | isNewlyCreated() NewlyCreated is one of two modes BO can be in.
When BO represents a newly created domain object, some
things may have to be done differently. | public boolean | isReadOnly() ReadOnly is one of three major lifecycle stages BO can be in. |
beginEdit | public void beginEdit(BOTransaction pTransaction) throws BOException(Code) | | Moves an Existing/ReadOnly BO to the Existing/BeingEdited stage
Can only be done as part of transaction. This method "locks"
underlying data base record(s) and refreshes the data
so data integrity is observed. This means that potentially
values for some fields may have changed since last retrieval.
exception: BOException - look at exception's code and message for the specific errors |
delete | public void delete(BOTransaction pTransaction) throws BOException(Code) | | Deletes the underlying data base record.
Can only be done when object is being edited.
exception: BOException - look at exception's code and message for the specific errors |
isBeingEdited | public boolean isBeingEdited() throws BOException(Code) | | BeingEdited is one of three major lifecycle stages BO can be in.
In this state, all operations are working Ok.
exception: BOException - look at exception's code and message for the specific errors |
isDeleted | public boolean isDeleted() throws BOException(Code) | | Deleted is one of three major lifecycle stages BO can be in.
In this state, all operations will fail with BOExceptionInvalidOperationForDeleted
exception: BOException - look at exception's code and message for the specific errors |
isExisting | public boolean isExisting() throws BOException(Code) | | Existing is one of two modes BO can be in.
When BO represents an existing domain object, some
things may have to be done differently. The other mode is NewlyCreated.
exception: BOException - look at exception's code and message for the specific errors |
isInTransaction | public boolean isInTransaction() throws BOException(Code) | | Returns true if object is currently part of any transaction
(object is associated with the uncommitted transaction)
exception: BOException - look at exception's code and message for the specific errors |
isNewlyCreated | public boolean isNewlyCreated() throws BOException(Code) | | NewlyCreated is one of two modes BO can be in.
When BO represents a newly created domain object, some
things may have to be done differently. The other mode is Existing.
exception: BOException - look at exception's code and message for the specific errors |
isReadOnly | public boolean isReadOnly() throws BOException(Code) | | ReadOnly is one of three major lifecycle stages BO can be in.
In this state, all getXXXX() operation working Ok.
All transactional methods fail with BOExceptionInvalidOperationForReadOnly
exception: BOException - look at exception's type and message for the specific errors |
|
|