Class BusinessObject
java.lang.Object
com.primavera.integration.client.BOBase
com.primavera.integration.client.bo.BusinessObject
- Direct Known Subclasses:
com.primavera.integration.client.bo.base.ActivityBase,ActivityCodeAssignment,com.primavera.integration.client.bo.base.ActivityCodeBase,ActivityCodeType,ActivityCodeUpdate,ActivityComment,ActivityExpense,ActivityFilter,ActivityNote,ActivityNoteUpdate,ActivityOwner,ActivityPeriodActual,ActivityRisk,ActivityStep,ActivityStepCreate,ActivityStepDelete,ActivityStepTemplate,ActivityStepTemplateItem,ActivityStepUpdate,ActivityUpdate,Alert,AutovueAttr,com.primavera.integration.client.bo.base.BaselineProjectBase,BaselineType,com.primavera.integration.client.bo.base.CalendarBase,CBS,CBSDurationSummary,ChangeSet,CostAccount,com.primavera.integration.client.bo.base.CurrencyBase,Document,DocumentCategory,DocumentStatusCode,com.primavera.integration.client.bo.base.EPSBase,EPSBudgetChangeLog,EPSFunding,EPSNote,EPSSpendingPlan,ExpenseCategory,FinancialPeriod,FinancialPeriodTemplate,FundingSource,GatewayDeployment,GlobalPreferences,com.primavera.integration.client.bo.base.GlobalProfileBase,GlobalReplace,ImportOptionsTemplate,IssueHistory,JobService,LeanTask,Location,MSPTemplate,NotebookTopic,OBS,OverheadCode,PAuditX,Profile,com.primavera.integration.client.bo.base.ProjectBase,ProjectBudgetChangeLog,ProjectCodeAssignment,com.primavera.integration.client.bo.base.ProjectCodeBase,ProjectCodeType,ProjectDeployment,ProjectDocument,ProjectFunding,ProjectIssue,ProjectNote,com.primavera.integration.client.bo.base.ProjectPortfolioBase,com.primavera.integration.client.bo.base.ProjectProfileBase,ProjectResource,ProjectResourceCategory,ProjectResourceQuantity,ProjectSpendingPlan,ProjectThreshold,Relationship,ResourceAccess,ResourceAssignment,ResourceAssignmentCodeAssignment,com.primavera.integration.client.bo.base.ResourceAssignmentCodeBase,ResourceAssignmentCodeType,ResourceAssignmentCreate,ResourceAssignmentPeriodActual,ResourceAssignmentUpdate,com.primavera.integration.client.bo.base.ResourceBase,ResourceCodeAssignment,com.primavera.integration.client.bo.base.ResourceCodeBase,ResourceCodeType,com.primavera.integration.client.bo.base.ResourceCurveBase,ResourceHour,ResourceLocation,ResourceRate,ResourceRole,com.primavera.integration.client.bo.base.ResourceTeamBase,Risk,RiskCategory,RiskImpact,RiskMatrix,RiskMatrixScore,RiskMatrixThreshold,RiskResponseAction,RiskResponseActionImpact,RiskResponsePlan,RiskThreshold,RiskThresholdLevel,com.primavera.integration.client.bo.base.RoleBase,RoleCodeAssignment,com.primavera.integration.client.bo.base.RoleCodeBase,RoleCodeType,RoleLimit,RoleRate,com.primavera.integration.client.bo.base.RoleTeamBase,ScheduleCheckOption,ScheduleOptions,com.primavera.integration.client.bo.base.ShiftBase,ShiftPeriod,StepUserDefinedValueUpdate,ThresholdParameter,Timesheet,TimesheetAudit,TimesheetDelegate,TimesheetPeriod,UDFCode,com.primavera.integration.client.bo.base.UDFTypeBase,UDFValue,UnitOfMeasure,UpdateBaselineOption,com.primavera.integration.client.bo.base.UserBase,UserConsent,UserDefinedValueUpdate,com.primavera.integration.client.bo.base.UserFieldTitleBase,UserInterfaceView,UserLicense,UserOBS,com.primavera.integration.client.bo.base.WBSBase,WBSCategory,WBSMilestone,WbsReviewers
public abstract class BusinessObject
extends com.primavera.integration.client.BOBase
The base class of all client-side business objects.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.getMaxFieldLength(Session session, String sfieldName) Gets the ObjectId for this object.getValue(int fieldId) inthashCode()Returns a hash code for this business object.booleanChecks whether a field is currently null in the result set returned from the database.voidsetEarlyDate(int fieldId, Date date) voidSets a field to null.voidsetObjectId(ObjectId objId) Sets the ObjectId for this object.Methods inherited from class com.primavera.integration.client.BOBase
combineFields
-
Method Details
-
isNull
public boolean isNull(String sFieldName) throws FieldNotLoadedException, InvalidFieldException, BusinessObjectException Checks whether a field is currently null in the result set returned from the database. Note that for fields that have a primitive type (boolean, double, int), the only way to tell if the value stored in the database is null is by calling this method.- Parameters:
sFieldName- the field name to check.- Returns:
- boolean true if null; false otherwise.
- Throws:
FieldNotLoadedException- if no fields were loaded in this business objectInvalidFieldException- if the specified field name is null or invalidBusinessObjectException- if the internal data is invalidIllegalArgumentException- if the input parameter is null or invalid
-
setNull
Sets a field to null. Note that for fields that have a primitive type (boolean, double, int), the only way to set them to null is by calling this method. Other fields that have a non-primitive type may be set to null by calling the appropriate set method on the business object itself.- Parameters:
sFieldName- the name of the field to set.- Throws:
BusinessObjectException- if the internal data is invalidIllegalArgumentException- if the specified field name is null or invalid
-
getObjectId
Gets the ObjectId for this object. The ObjectId field serves as the primary key for the associated table in the database.- Returns:
- ObjectId the ObjectId of this object
- Throws:
BusinessObjectException- if the ObjectId field(s) were not loaded in this business object
-
setObjectId
Sets the ObjectId for this object. The ObjectId field serves as the primary key for the associated table in the database.- Parameters:
objId- the ObjectId of this object- Throws:
BusinessObjectException- if the number of key fields mismatch between the ObjectId and the business object
-
equals
Indicates whether some other object is "equal to" this one. This method will return true if the objects are the same type of business object and contain the exact same fields. -
hashCode
public int hashCode()Returns a hash code for this business object. -
getValue
- Throws:
BusinessObjectException
-
getValue
- Throws:
BusinessObjectException
-
getMaxFieldLength
- Throws:
BusinessObjectException
-
setEarlyDate
- Throws:
BusinessObjectException
-