Tags:
create new tag
, view all tags
-- PedroRio - 30 Dec 2010

XEO Java API - boObject

The boObject class represents a instance of an Object Model, and has several methods to retrieve class handlers to manipulate attribute values, to retrieve class handlers to query the Object Model definition as well as methods to handle the instance's life cycle and behavior.

Object Properties

Methods in this category allow to retrieve properties of the object instance.

Method Name Description Parameters Return type Notes
getBoui Retrieves the BOUI (Business Object Unique Identifier) - long  
getName Retrieve the name of the Object Model of this instance - String  
getCardID Retrieves the CardID of the boObject - StringBuffer  

_

Dealing with Attributes

Methods in this category allow to retrieve handlers to interact with attributes of the instance

Method Name Description Parameters Return type Notes
getAttribute Retrieves an attributeHandler for the attribute passed as a parameter String name AttributeHandler  
getAttributes Retrieves an array of attributeHandlers with all non-collection attributes - boAttributeArray The boAttributeArray class is a wrapper around an array to keep attribute handlers
getAttributes Retrieves an array of attributes with all attributes of the type passed as a parameter byte type boAttributeArray

* See table of convertions (

VAI VER boDefAttribute.java public static final byte VALUE_UNKNOWN=0;
public static final byte VALUE_CHAR=9;
public static final byte VALUE_BOOLEAN=1;
public static final byte VALUE_DURATION=2;
public static final byte VALUE_CURRENCY=3;
public static final byte VALUE_NUMBER=4;
public static final byte VALUE_DATETIME=5;

getAllAttributes Retrieves a handler to all (collection and non-collection) attributes - boAttributeArray  
getBridge Retrieves a bridgeHandler for a collection attribute passed as parameter String name    

getBridges()

getBridge()

getAllAttributes

Dealing with Definitions

getBoDefinition()

getMenuMethods()

getToolbarMethods() - Qual a diferença entre este e o anterior

getToolbarMethodsNames()

Object Life Cycle

update()

destroy()

getUpdateQueue()

destroyForce()

exists() -

clone()

isChanged()

setDisabled(deep)

isDisabled()

Object Behavior

addErrorMessage()

addErrorMessage(AttHander)

addAdvertiseMessage()

addAdvertiseMessage(AttHandler)

haveErrors()

haveObjectErrors()

haveAttributeErrors()

getObjectErrors

getAttributeErrors

clearErrors()

clearObjectErrors()

clearAttributeErrors()

valid() - If the object is valid

References

getParent()

getParents()

removeParent()

addParent()

getReferencesObjects()

getReferencedByObjects()

a

VERIFICAR: mergeAttributes

a

Edit | Attach | Print version | History: r10 | r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 2010-12-31 - PedroRio
 

No permission to view TWiki.WebTopBar

This site is powered by the TWiki collaboration platform Powered by Perl

No permission to view TWiki.WebBottomBar