edu.sampleu.travel.approval
Class TravelAuthorizationDocument

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.krad.document.DocumentBase
              extended by org.kuali.rice.krad.document.TransactionalDocumentBase
                  extended by edu.sampleu.travel.approval.TravelAuthorizationDocument
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject, Document, SessionDocument, TransactionalDocument

@Entity
public class TravelAuthorizationDocument
extends TransactionalDocumentBase

Travel authorization transactional document.

This is a sample KRAD transactional document that demonstrates how to implement transactional documents within the KRAD UIF.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.document.DocumentBase
documentHeader, documentNumber
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
TravelAuthorizationDocument()
           
 
Method Summary
 PrimaryDestination getPrimaryDestination()
          Returns primary destination.
 String getPrimaryDestinationCountryState()
          Returns primary destination state.
 String getPrimaryDestinationCounty()
          Returns primary destination county.
 Integer getPrimaryDestinationId()
          Returns the destination id.
 Boolean getPrimaryDestinationIndicator()
          Returns whether the destination is indicated.
 String getPrimaryDestinationName()
          Returns primary destination name.
 String getTravelDocumentIdentifier()
          Returns the travel document identifier.
 Date getTripBegin()
          Returns the trip begin date.
 String getTripDescription()
          Returns the trip description.
 Date getTripEnd()
          Returns the trip end date.
 String getTripTypeCode()
          Returns the trip type code.
 void setPrimaryDestination(PrimaryDestination primaryDestination)
          Initializes the primary destination.
 void setPrimaryDestinationCountryState(String primaryDestinationCountryState)
          Initializes the primary destination state.
 void setPrimaryDestinationCounty(String primaryDestinationCounty)
          Initializes the primary destination county.
 void setPrimaryDestinationId(Integer primaryDestinationId)
          Initializes the primary destination id.
 void setPrimaryDestinationIndicator(Boolean primaryDestinationIndicator)
          Initializes the primary destination flag.
 void setPrimaryDestinationName(String primaryDestinationName)
          Initializes the primary destination name.
 void setTravelDocumentIdentifier(String travelDocumentIdentifier)
          Initializes the document identifier.
 void setTripBegin(Date tripBegin)
          Initializes the trip starting date.
 void setTripDescription(String tripDescription)
          Initializes the trip description.
 void setTripEnd(Date tripEnd)
          Initializes the trip ending date.
 void setTripTypeCode(String tripTypeCode)
          Initializes the trip type code.
 
Methods inherited from class org.kuali.rice.krad.document.TransactionalDocumentBase
getAllowsCopy, isSessionDocument
 
Methods inherited from class org.kuali.rice.krad.document.DocumentBase
addCopyErrorDocumentNote, addNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, createPropertySerializabilityEvaluator, doActionTaken, doRouteLevelChange, doRouteStatusChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getAttachmentService, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNonLockingActionTakenCodes, getNote, getNotes, getNoteService, getNoteTarget, getNoteType, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, logErrors, populateDocumentForRouting, postLoad, postProcessSave, prepareForSave, prepareForSave, processAfterRetrieve, refresh, refreshIfEmpty, refreshPessimisticLocks, refreshReferenceObject, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, setNewDocumentHeader, setNotes, setPessimisticLocks, toCopy, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refreshNonUpdateableReferences, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.document.Document
addNote, addPessimisticLock, afterActionTaken, afterWorkflowEngineProcess, beforeWorkflowEngineProcess, doActionTaken, doRouteLevelChange, doRouteStatusChange, generateSaveEvents, getAdHocRoutePersons, getAdHocRouteWorkgroups, getBasePathToDocumentDuringSerialization, getCustomLockDescriptor, getDocumentHeader, getDocumentNumber, getDocumentPropertySerizabilityEvaluator, getDocumentTitle, getLockClearningMethodNames, getNote, getNotes, getNoteTarget, getNoteType, getPessimisticLocks, getWorkflowEngineDocumentIdsToLock, getXmlForRouteReport, populateDocumentForRouting, postProcessSave, prepareForSave, prepareForSave, processAfterRetrieve, refreshPessimisticLocks, removeNote, serializeDocumentToXml, setAdHocRoutePersons, setAdHocRouteWorkgroups, setDocumentHeader, setDocumentNumber, setNotes, useCustomLockDescriptors, validateBusinessRules, wrapDocumentWithMetadataForXmlSerialization
 
Methods inherited from interface org.kuali.rice.krad.bo.PersistableBusinessObject
buildListOfDeletionAwareLists, getExtension, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from interface org.kuali.rice.krad.bo.BusinessObject
refresh
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
 

Constructor Detail

TravelAuthorizationDocument

public TravelAuthorizationDocument()
Method Detail

getTravelDocumentIdentifier

public String getTravelDocumentIdentifier()
Returns the travel document identifier.

Gets the travel document identifier.

Returns:
String - document service

setTravelDocumentIdentifier

public void setTravelDocumentIdentifier(String travelDocumentIdentifier)
Initializes the document identifier.

Sets the document identifier.

Parameters:
travelDocumentIdentifier - - document identifier

getTripTypeCode

public String getTripTypeCode()
Returns the trip type code.

Gets the trip type code.

Returns:
String - trip type code

setTripTypeCode

public void setTripTypeCode(String tripTypeCode)
Initializes the trip type code.

Sets the trip type code.

Parameters:
tripTypeCode - - trip type code

getTripBegin

public Date getTripBegin()
Returns the trip begin date.

Gets the trip begin date.

Returns:
Date - trip begin date

setTripBegin

public void setTripBegin(Date tripBegin)
Initializes the trip starting date.

Sets the trip begin date.

Parameters:
tripBegin - - trip starting date

getTripEnd

public Date getTripEnd()
Returns the trip end date.

Gets the trip end date.

Returns:
Date - trip end date

setTripEnd

public void setTripEnd(Date tripEnd)
Initializes the trip ending date.

Sets the trip end date.

Parameters:
tripEnd - - trip ending date

getTripDescription

public String getTripDescription()
Returns the trip description.

Gets the trip description.

Returns:
Strin - trip description

setTripDescription

public void setTripDescription(String tripDescription)
Initializes the trip description.

Sets the trip description.

Parameters:
tripDescription- - trip description

getPrimaryDestinationId

public Integer getPrimaryDestinationId()
Returns the destination id.

Gets the primary key for the destination.

Returns:
Integer - destination id

setPrimaryDestinationId

public void setPrimaryDestinationId(Integer primaryDestinationId)
Initializes the primary destination id.

Sets the primary destination id.

Parameters:
primaryDestinationId - - integer of primary destination id

getPrimaryDestinationIndicator

public Boolean getPrimaryDestinationIndicator()
Returns whether the destination is indicated.

Gets the primary destination indicator flag.

Returns:
Boolean - primary destination indicator flag

setPrimaryDestinationIndicator

public void setPrimaryDestinationIndicator(Boolean primaryDestinationIndicator)
Initializes the primary destination flag.

Sets the flag whether a primary destination is indicated.

Parameters:
primaryDestinationIndicator - - primary destination indicator

getPrimaryDestinationName

public String getPrimaryDestinationName()
Returns primary destination name.

Gets the name of the primary destination

Returns:
String - primary destination name

setPrimaryDestinationName

public void setPrimaryDestinationName(String primaryDestinationName)
Initializes the primary destination name.

Sets the name for the primary destination.

Parameters:
primaryDestinationName - - primary destination name

getPrimaryDestinationCountryState

public String getPrimaryDestinationCountryState()
Returns primary destination state.

Gets the state of the primary destination

Returns:
String - primary destination state

setPrimaryDestinationCountryState

public void setPrimaryDestinationCountryState(String primaryDestinationCountryState)
Initializes the primary destination state.

Sets the state for the primary destination.

Parameters:
primaryDestinationCountryState - - primary destination state

getPrimaryDestinationCounty

public String getPrimaryDestinationCounty()
Returns primary destination county.

Gets the county of the primary destination

Returns:
String - primary destination county

setPrimaryDestinationCounty

public void setPrimaryDestinationCounty(String primaryDestinationCounty)
Initializes the primary destination county.

Sets the county for the primary destination.

Parameters:
primaryDestinationCounty - - primary destination county

getPrimaryDestination

public PrimaryDestination getPrimaryDestination()
Returns primary destination.

Gets the primary destination

Returns:
PrimaryDestination - primary destination

setPrimaryDestination

public void setPrimaryDestination(PrimaryDestination primaryDestination)
Initializes the primary destination.

Sets the primary destination.

Parameters:
primaryDestination - - primary destination


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.