public abstract class DataSource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_name |
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
authenticate(java.lang.String userid,
java.lang.String password)
Allows a user/password pair to be passed to an external data source for
validation.
|
abstract boolean |
delete(java.lang.Object obj)
deletes a persisted object
|
abstract int |
execUpdate(java.lang.String query)
Executes an low-level update command
|
java.lang.String |
getName() |
protected java.lang.String |
getNextID(java.lang.String prefix)
A default unique ID generator.
|
abstract void |
importObj(java.lang.Object obj)
imports (persists) a new object into the datastore.
|
abstract java.lang.String |
insert(java.lang.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(java.lang.String name) |
abstract void |
update(java.lang.Object obj)
updates a persisted object
|
public void setName(java.lang.String name)
public java.lang.String getName()
protected java.lang.String getNextID(java.lang.String prefix)
prefix
- some (optional) characters to place at the start of the idpublic abstract ResourceDataSet loadResources()
public abstract void update(java.lang.Object obj)
obj
- the object to updatepublic abstract boolean delete(java.lang.Object obj)
obj
- the object to deletepublic abstract java.lang.String insert(java.lang.Object obj)
obj
- the object to insertpublic abstract void importObj(java.lang.Object obj)
obj
- the object to insertpublic abstract int execUpdate(java.lang.String query)
query
- the query to executepublic abstract boolean authenticate(java.lang.String userid, java.lang.String password) throws YAuthenticationException
userid
- the useridpassword
- the plain-text passwordYAuthenticationException
Copyright © 2004-2014 The YAWL Foundation.