public class HibernateImpl extends DataSource
_name
Constructor and Description |
---|
HibernateImpl() |
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 a persisted object
|
int |
execUpdate(java.lang.String query)
Executes an low-level update command
|
void |
importObj(java.lang.Object obj)
imports (persists) a new object into the datastore.
|
java.lang.String |
insert(java.lang.Object obj)
inserts (persists) a new object record into the datastore
|
java.util.HashMap<java.lang.String,Capability> |
loadCapabilities()
these methods load resource entity sets individually
|
java.util.HashMap<java.lang.String,NonHumanCategory> |
loadNonHumanCategories() |
java.util.HashMap<java.lang.String,NonHumanResource> |
loadNonHumanResources() |
java.util.HashMap<java.lang.String,OrgGroup> |
loadOrgGroups() |
java.util.HashMap<java.lang.String,Position> |
loadPositions() |
ResourceDataSet |
loadResources()
Loads the entire contents of the org datastores into the relevant Participant,
Role, Capability, Position and OrgGroup objects
|
java.util.HashMap<java.lang.String,Role> |
loadRoles() |
void |
update(java.lang.Object obj)
updates a persisted object
|
getName, getNextID, setName
public java.util.HashMap<java.lang.String,Capability> loadCapabilities()
public java.util.HashMap<java.lang.String,Role> loadRoles()
public java.util.HashMap<java.lang.String,Position> loadPositions()
public java.util.HashMap<java.lang.String,OrgGroup> loadOrgGroups()
public java.util.HashMap<java.lang.String,NonHumanResource> loadNonHumanResources()
public java.util.HashMap<java.lang.String,NonHumanCategory> loadNonHumanCategories()
public ResourceDataSet loadResources()
DataSource
loadResources
in class DataSource
public void update(java.lang.Object obj)
DataSource
update
in class DataSource
obj
- the object to updatepublic boolean delete(java.lang.Object obj)
DataSource
delete
in class DataSource
obj
- the object to deletepublic java.lang.String insert(java.lang.Object obj)
DataSource
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 int execUpdate(java.lang.String query)
DataSource
execUpdate
in class DataSource
query
- the query to executepublic 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.