public class jdbcImpl extends DataSource
_name
Constructor and Description |
---|
jdbcImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
delete(java.lang.Object obj)
deletes the object from the database
|
int |
execUpdate(java.lang.String sql)
Executes an UPDATE, INSERT or DELETE statement
|
void |
importObj(java.lang.Object obj)
imports (persists) a new object into the datastore.
|
java.lang.String |
insert(java.lang.Object obj)
inserts the object into the database
|
ResourceDataSet |
loadResources()
Loads the entire contents of the org datastores into the relevant Participant,
Role, Capability, Position and OrgGroup objects
|
void |
printDump()
Dump database connection metadata
|
void |
update(java.lang.Object obj)
updates an existing object in the database with new values
|
getName, getNextID, setName
public int execUpdate(java.lang.String sql)
execUpdate
in class DataSource
sql
- the statement to executepublic void printDump()
public ResourceDataSet loadResources()
DataSource
loadResources
in class DataSource
public java.lang.String insert(java.lang.Object obj)
insert
in class DataSource
obj
- the object to insertpublic void importObj(java.lang.Object obj)
DataSource
importObj
in class DataSource
obj
- the object to insertpublic void update(java.lang.Object obj)
update
in class DataSource
obj
- the object to updatepublic boolean delete(java.lang.Object obj)
delete
in class DataSource
obj
- the object to deletepublic boolean authenticate(java.lang.String userid, java.lang.String password) throws YAuthenticationException
DataSource
authenticate
in class DataSource
userid
- the useridpassword
- the plain-text passwordYAuthenticationException
Copyright © 2004-2014 The YAWL Foundation.