|
PSE 2000 Group 4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jobmatch.data.ProfileBDO
ProfileBDO contains the same set and get methods as the ProfileDO class. Business Object (BO) classes typically need these set and get methods. So by deriving a BO from a BDO, or by implementing a BO that contains a BDO, the developer of the BO is spared some work.
Field Summary | |
protected ProfileDO |
DO
The ProfileDO object upon which the set and get methods operate. |
Constructor Summary | |
ProfileBDO()
Constructor required by ProfileBDO.create methods. |
|
ProfileBDO(ProfileDO DO)
Constructor for use by classes derived from ProfileBDO . |
Method Summary | |
void |
addCandidateProfileBDO(CandidateProfileBDO rbdo)
Add (set & commit) a CandidateProfileBDO object whose CandidateProfileDO refers to the DO held by this BDO. |
void |
addCandidateProfileBDO(CandidateProfileBDO rbdo,
jobmatch.data.DBTransaction tran)
Add (set & commit) a CandidateProfileBDO object whose CandidateProfileDO refers to the DO held by this BDO. |
protected void |
afterAnySet()
|
protected void |
beforeAnyGet()
The developer of a Business Object that derives from this class can override the methods:
beforeAnyGet
beforeAnySet
afterAnySet
to handle any general assertions or cleanup needed
for get and set methods. |
protected void |
beforeAnySet()
|
void |
commit()
Inserts/Updates the DO into its table. |
void |
commit(jobmatch.data.DBTransaction dbt)
Inserts/Updates the DO into its table. |
static ProfileBDO |
createExisting(ProfileDO DO)
The createExisting method is used to create a ProfileBDO
from a ProfileDO that was returned by
the ProfileQuery class. |
static ProfileBDO |
createVirgin()
Like the class ProfileDO ,
this class acts as a factory. |
void |
delete()
Deletes the DO from its table. |
void |
delete(jobmatch.data.DBTransaction dbt)
Deletes the DO from its table. |
static ProfileBDO[] |
getBDOarray()
The getBDOarray method performs a database query to return an array of ProfileBDO objects
representing all the rows in the Profile table. |
CandidateDO[] |
getCandidateDOArray_via_CandidateProfile()
From the many-to-many relationship expressed by CandidateProfileDO, get array of CandidateDO objects that indirectly refer to the DO held by this BDO. |
CandidateProfileBDO |
getCandidateProfileBDO()
Get the single CandidateProfileBDO object holding a CandidateProfileDO object that refers to the DO held by this BDO. |
CandidateProfileBDO[] |
getCandidateProfileBDOArray()
Get array of CandidateProfileBDO objects holding CandidateProfileDO objects that refer to the DO held by this BDO. |
CandidateProfileDO |
getCandidateProfileDO()
Get the single CandidateProfileDO object that refers to the DO held by this BDO. |
CandidateProfileDO[] |
getCandidateProfileDOArray()
Get array of CandidateProfileDO objects that refer to the DO held by this BDO. |
CompanyDO |
getCompany()
Get Company of the ProfileDO |
CompanyBDO |
getCompanyBDO()
Get BDO-wrapped Company of the ProfileDO |
ProfileDO |
getDO()
Note: This method is intended for use only by other BDO classes. |
String |
getHandle()
The methods
getHandle
hasMatchingHandle
are used by Presentation Objects that need to populate
HTML select lists with ProfileBDO objects as options. |
Timestamp |
getLastNotification()
Get LastNotification of the ProfileDO |
byte[] |
getMatchTree()
Get MatchTree of the ProfileDO |
String |
getName()
Get Name of the ProfileDO |
boolean |
getNeedsRematching()
Get NeedsRematching of the ProfileDO |
int |
getNotificationPeriod()
Get NotificationPeriod of the ProfileDO |
boolean |
getNotify()
Get Notify of the ProfileDO |
boolean |
hasMatchingHandle(String handle)
|
void |
mapCandidate_via_CandidateProfileBDO(CandidateBDO b)
To the many-to-many relationship expressed by CandidateProfileDO, add a CandidateDO object that indirectly refers to the DO held by this BDO. |
void |
mapCandidate_via_CandidateProfileBDO(CandidateBDO b,
jobmatch.data.DBTransaction tran)
To the many-to-many relationship expressed by CandidateProfileDO, add a CandidateDO object that indirectly refers to the DO held by this BDO. |
void |
mapCandidate_via_CandidateProfileDO(CandidateDO d)
To the many-to-many relationship expressed by CandidateProfileDO, add a CandidateDO object that indirectly refers to the DO held by this BDO. |
void |
mapCandidate_via_CandidateProfileDO(CandidateDO d,
jobmatch.data.DBTransaction tran)
To the many-to-many relationship expressed by CandidateProfileDO, add a CandidateDO object that indirectly refers to the DO held by this BDO. |
protected void |
modifyDO(jobmatch.data.DBTransaction dbt,
boolean delete)
Modifies the DO within its table. |
protected void |
okToCommitCompany(CompanyDO member)
A stub method for implementing pre-commit assertions for the Company data member. |
protected void |
okToDeleteCompany(CompanyDO member)
A stub method for implementing pre-delete assertions for the Company data member. |
void |
removeCandidateProfileBDO(CandidateProfileBDO rbdo)
Remove (delete) a CandidateProfileBDO object whose CandidateProfileDO refers to the DO held by this BDO. |
void |
removeCandidateProfileBDO(CandidateProfileBDO rbdo,
jobmatch.data.DBTransaction tran)
Remove (delete) a CandidateProfileBDO object whose CandidateProfileDO refers to the DO held by this BDO. |
void |
setCompany(CompanyBDO Company)
Set Company of the ProfileDO |
void |
setCompany(CompanyDO Company)
Set Company of the ProfileDO |
void |
setLastNotification(Timestamp LastNotification)
Set LastNotification of the ProfileDO |
void |
setMatchTree(byte[] MatchTree)
Set MatchTree of the ProfileDO |
void |
setName(String Name)
Set Name of the ProfileDO |
void |
setNeedsRematching(boolean NeedsRematching)
Set NeedsRematching of the ProfileDO |
void |
setNotificationPeriod(int NotificationPeriod)
Set NotificationPeriod of the ProfileDO |
void |
setNotify(boolean Notify)
Set Notify of the ProfileDO |
String |
toString()
for debugging |
void |
unmapCandidate_via_CandidateProfileBDO(CandidateBDO b)
From the many-to-many relationship expressed by CandidateProfileDO, remove (delete) the CandidateDO object that indirectly refers to the DO held by this BDO. |
void |
unmapCandidate_via_CandidateProfileBDO(CandidateBDO b,
jobmatch.data.DBTransaction tran)
From the many-to-many relationship expressed by CandidateProfileDO, remove (delete) the CandidateDO object that indirectly refers to the DO held by this BDO. |
void |
unmapCandidate_via_CandidateProfileDO(CandidateDO d)
From the many-to-many relationship expressed by CandidateProfileDO, remove (delete) the CandidateDO object that indirectly refers to the DO held by this BDO. |
void |
unmapCandidate_via_CandidateProfileDO(CandidateDO d,
jobmatch.data.DBTransaction tran)
From the many-to-many relationship expressed by CandidateProfileDO, remove (delete) the CandidateDO object that indirectly refers to the DO held by this BDO. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected ProfileDO DO
Constructor Detail |
public ProfileBDO(ProfileDO DO)
ProfileBDO
.
Example usage:
class CustomerBO extends CustomerBDO {
// a BDO class is commonly extended in order to implement:
public void beforeAnySet() throws Exception {
if ( CustomerDO should not be altered )
throw new ApplicationException( "ERROR" );
}
public CustomerBO( CustomerDO DO ) {
super( DO );
}
}
class SomePresentationLayerClass {
public CustomerBO findCustomer( String name ) {
CustomerQuery q = new CustomerQuery();
q.setQueryName( name );
CustomerDO DO = q.getNextDO();
// Here the CustomerBO ctor fires the CustomerBDO ctor.
return new CustomerBO( DO );
}
}
public ProfileBDO() throws Exception
ProfileBDO.create
methods.Method Detail |
public ProfileDO getDO()
public static ProfileBDO createVirgin() throws Exception
ProfileDO
,
this class acts as a factory.
Business Object (BO) classes typically need these set and get methods.
So by deriving a BO from a BDO, or by implementing a BO that
contains one or more BDOs, the developer of the BO is spared some work.public static ProfileBDO createExisting(ProfileDO DO)
ProfileBDO
from a ProfileDO
that was returned by
the ProfileQuery
class.public static ProfileBDO[] getBDOarray() throws jobmatch.data.DataObjectException
ProfileBDO
objects
representing all the rows in the Profile
table.
This method is a minimal example of using a Query class.
To restrict the set of objects returned, you could
invoke query.setXxx()
, where Xxx
is an Attribute of ProfileDO
which was
marked as "Can be queried" in the DODS Attribute Editor.protected void beforeAnyGet()
beforeAnyGet
beforeAnySet
afterAnySet
to handle any general assertions or cleanup needed
for get
and set
methods.protected void beforeAnySet() throws Exception
protected void afterAnySet()
public String getHandle() throws jobmatch.data.DatabaseManagerException
getHandle
hasMatchingHandle
are used by Presentation Objects that need to populate
HTML select lists with ProfileBDO
objects as options.
The getHandle()
method is used
to set the value for each option,
and the hasMatchingHandle()
methods are used to lookup the Data Object when the selection has
been made.
This ProfileBDO object holds a reference to a ProfileDO object.
The id of this ProfileBDO is the id of its ProfileDO.
- Returns:
- id of this BDO as a string
If an object id can't be allocated for this object.
- Throws:
- jobmatch.data.DatabaseManagerException - If a connection to the database cannot be established, etc.
public boolean hasMatchingHandle(String handle)
handle
- String
representation of the id for this BDOgetHandle
public String toString()
public CompanyDO getCompany() throws jobmatch.data.DataObjectException
public void setCompany(CompanyDO Company) throws jobmatch.data.DataObjectException
Company
- of the ProfileDOpublic CompanyBDO getCompanyBDO() throws jobmatch.data.DataObjectException
public void setCompany(CompanyBDO Company) throws jobmatch.data.DataObjectException
BDO-wrapped
- Company of the ProfileDOpublic Timestamp getLastNotification() throws jobmatch.data.DataObjectException
public void setLastNotification(Timestamp LastNotification) throws jobmatch.data.DataObjectException
LastNotification
- of the ProfileDOpublic byte[] getMatchTree() throws jobmatch.data.DataObjectException
public void setMatchTree(byte[] MatchTree) throws jobmatch.data.DataObjectException
MatchTree
- of the ProfileDOpublic String getName() throws jobmatch.data.DataObjectException
public void setName(String Name) throws jobmatch.data.DataObjectException
Name
- of the ProfileDOpublic boolean getNeedsRematching() throws jobmatch.data.DataObjectException
public void setNeedsRematching(boolean NeedsRematching) throws jobmatch.data.DataObjectException
NeedsRematching
- of the ProfileDOpublic boolean getNotify() throws jobmatch.data.DataObjectException
public void setNotify(boolean Notify) throws jobmatch.data.DataObjectException
Notify
- of the ProfileDOpublic int getNotificationPeriod() throws jobmatch.data.DataObjectException
public void setNotificationPeriod(int NotificationPeriod) throws jobmatch.data.DataObjectException
NotificationPeriod
- of the ProfileDOpublic CandidateProfileDO[] getCandidateProfileDOArray() throws jobmatch.data.DataObjectException, jobmatch.data.QueryException
public CandidateProfileDO getCandidateProfileDO() throws jobmatch.data.DataObjectException, jobmatch.data.NonUniqueQueryException, jobmatch.data.QueryException
public CandidateProfileBDO[] getCandidateProfileBDOArray() throws jobmatch.data.DataObjectException, jobmatch.data.QueryException
public CandidateProfileBDO getCandidateProfileBDO() throws jobmatch.data.DataObjectException, jobmatch.data.NonUniqueQueryException, jobmatch.data.QueryException
public void addCandidateProfileBDO(CandidateProfileBDO rbdo) throws SQLException, jobmatch.data.DatabaseManagerException, jobmatch.data.DataObjectException, jobmatch.data.RefAssertionException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
rbdo
- CandidateProfileBDO to be set to point to this BDO and committed.public void addCandidateProfileBDO(CandidateProfileBDO rbdo, jobmatch.data.DBTransaction tran) throws SQLException, jobmatch.data.DatabaseManagerException, jobmatch.data.DataObjectException, jobmatch.data.RefAssertionException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
rbdo
- CandidateProfileBDO to be set to point to this BDO and committed.tran
- The transaction to be used for the commit.
If null, a new transaction is created.public void removeCandidateProfileBDO(CandidateProfileBDO rbdo) throws SQLException, jobmatch.data.DatabaseManagerException, jobmatch.data.DataObjectException, jobmatch.data.RefAssertionException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
r
- CandidateProfileBDO to be deleted.public void removeCandidateProfileBDO(CandidateProfileBDO rbdo, jobmatch.data.DBTransaction tran) throws SQLException, jobmatch.data.DatabaseManagerException, jobmatch.data.DataObjectException, jobmatch.data.RefAssertionException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
r
- CandidateProfileBDO to be deleted.tran
- The transaction to be used for the commit.
If null, a new transaction is created.public CandidateDO[] getCandidateDOArray_via_CandidateProfile() throws jobmatch.data.DataObjectException
public void mapCandidate_via_CandidateProfileDO(CandidateDO d) throws jobmatch.data.DataObjectException, jobmatch.data.DatabaseManagerException, jobmatch.data.RefAssertionException, SQLException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
d
- The CandidateDO to add to the CandidateProfileDO mapping
for this BDO.public void mapCandidate_via_CandidateProfileDO(CandidateDO d, jobmatch.data.DBTransaction tran) throws jobmatch.data.DataObjectException, jobmatch.data.DatabaseManagerException, jobmatch.data.RefAssertionException, SQLException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
d
- The CandidateDO to add to the CandidateProfileDO mapping
for this BDO.public void mapCandidate_via_CandidateProfileBDO(CandidateBDO b) throws jobmatch.data.DataObjectException, jobmatch.data.DatabaseManagerException, jobmatch.data.RefAssertionException, SQLException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
b
- The CandidateBDO to add to the CandidateProfileDO mapping
for this BDO.public void mapCandidate_via_CandidateProfileBDO(CandidateBDO b, jobmatch.data.DBTransaction tran) throws jobmatch.data.DataObjectException, jobmatch.data.DatabaseManagerException, jobmatch.data.RefAssertionException, SQLException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
b
- The CandidateBDO to add to the CandidateProfileDO mapping
for this BDO.public void unmapCandidate_via_CandidateProfileDO(CandidateDO d) throws jobmatch.data.DataObjectException, jobmatch.data.DatabaseManagerException, jobmatch.data.RefAssertionException, SQLException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
d
- The CandidateDO to remove from the CandidateProfileDO mapping
for this BDO.public void unmapCandidate_via_CandidateProfileDO(CandidateDO d, jobmatch.data.DBTransaction tran) throws jobmatch.data.DataObjectException, jobmatch.data.DatabaseManagerException, jobmatch.data.RefAssertionException, SQLException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
d
- The CandidateDO to remove from the CandidateProfileDO mapping
for this BDO.public void unmapCandidate_via_CandidateProfileBDO(CandidateBDO b) throws jobmatch.data.DataObjectException, jobmatch.data.DatabaseManagerException, jobmatch.data.RefAssertionException, SQLException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
b
- The CandidateBDO to remove from the CandidateProfileDO mapping
for this BDO.public void unmapCandidate_via_CandidateProfileBDO(CandidateBDO b, jobmatch.data.DBTransaction tran) throws jobmatch.data.DataObjectException, jobmatch.data.DatabaseManagerException, jobmatch.data.RefAssertionException, SQLException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
b
- The CandidateBDO to remove from the CandidateProfileDO mapping
for this BDO.public void commit() throws SQLException, jobmatch.data.DatabaseManagerException, jobmatch.data.DataObjectException, jobmatch.data.RefAssertionException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
public void commit(jobmatch.data.DBTransaction dbt) throws SQLException, jobmatch.data.DatabaseManagerException, jobmatch.data.DataObjectException, jobmatch.data.RefAssertionException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
dbt
- The transaction object to use for this operation.public void delete() throws SQLException, jobmatch.data.DatabaseManagerException, jobmatch.data.DataObjectException, jobmatch.data.RefAssertionException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
public void delete(jobmatch.data.DBTransaction dbt) throws SQLException, jobmatch.data.DatabaseManagerException, jobmatch.data.DataObjectException, jobmatch.data.RefAssertionException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
dbt
- The transaction object to use for this operation.protected void okToCommitCompany(CompanyDO member) throws jobmatch.data.RefAssertionException
protected void okToDeleteCompany(CompanyDO member) throws jobmatch.data.RefAssertionException
protected void modifyDO(jobmatch.data.DBTransaction dbt, boolean delete) throws SQLException, jobmatch.data.DatabaseManagerException, jobmatch.data.DataObjectException, jobmatch.data.RefAssertionException, jobmatch.data.DBRowUpdateException, jobmatch.data.QueryException
dbt
- The transaction object to use for this operation.delete
- True if doing a delete, otherwise doing insert/update.
|
PSE 2000 Group 4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |