|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.yawlfoundation.yawl.resourcing.datastore.orgdata.DataSource
public abstract class DataSource
This abstract class is to be extended by all data source implementations to provide organisational data to the resourcing classes in a uniform and expected manner.
| Field Summary | |
|---|---|
protected String |
_name
|
| Constructor Summary | |
|---|---|
DataSource()
|
|
| Method Summary | |
|---|---|
abstract boolean |
authenticate(String userid,
String password)
Allows a user/password pair to be passed to an external data source for validation. |
abstract boolean |
delete(Object obj)
deletes a persisted object |
abstract int |
execUpdate(String query)
Executes an low-level update command |
String |
getName()
|
protected String |
getNextID(String prefix)
A default unique ID generator. |
abstract void |
importObj(Object obj)
imports (persists) a new object into the datastore. |
abstract String |
insert(Object obj)
inserts (persists) a new object record into the datastore |
abstract ResourceDataSet |
loadResources()
Loads the entire contents of the org datastores into the relevant Participant, Role, Capability, Position and OrgGroup objects |
void |
setName(String name)
|
abstract void |
update(Object obj)
updates a persisted object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String _name
| Constructor Detail |
|---|
public DataSource()
| Method Detail |
|---|
public void setName(String name)
public String getName()
protected String getNextID(String prefix)
prefix - some (optional) characters to place at the start of the id
public abstract ResourceDataSet loadResources()
public abstract void update(Object obj)
obj - the object to updatepublic abstract boolean delete(Object obj)
obj - the object to deletepublic abstract String insert(Object obj)
obj - the object to insert
public abstract void importObj(Object obj)
obj - the object to insertpublic abstract int execUpdate(String query)
query - the query to execute
public abstract boolean authenticate(String userid,
String password)
throws YAuthenticationException
userid - the useridpassword - the plain-text password
YAuthenticationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||