|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.businessobjects.security.persistence.JdbcUserDao
public class JdbcUserDao
This is an implementation of UserDao
using row Jdbc.
Constructor Summary | |
---|---|
JdbcUserDao()
Creates a new instance of JdbcUserDao |
Method Summary | |
---|---|
java.util.List |
findAll()
Find all entity objects associated with this Dao. |
java.util.List |
findAllSorted(java.lang.String sortField)
Find all entity objects asscoiated with this Dao. |
protected User |
findUser(long id)
Find a unique User using its identifier |
protected User |
findUser(java.lang.String login)
Find a unique User using its login |
protected java.util.List |
findUsers(java.lang.String criterionColumn,
java.lang.String value,
java.lang.String sortColumn)
Find many users using a criterion column and its value. |
java.lang.String |
getFirstnameColumn()
|
java.lang.String |
getIdColumn()
|
java.lang.String |
getLastnameColumn()
|
java.lang.String |
getLoginColumn()
|
java.lang.String |
getMailColumn()
|
java.lang.String |
getPasswordColumn()
|
java.lang.Class |
getPersistentClass()
Get the persistent class associated to this Dao. |
java.lang.String |
getPhoneColumn()
|
protected java.lang.String |
getSelectClause()
Retrieve the where clause depending on specified columns and table name |
java.lang.String |
getTeamColumn()
|
User |
getUser(java.lang.String login)
|
protected org.springframework.jdbc.core.RowMapper |
getUserRowMapper()
Retrieve a Spring row mappper for User object |
java.util.List |
getUsersWithLastnameLike(java.lang.String lastname)
Retrieve all users having lastname 'like' the specified one |
java.lang.String |
getUserTable()
|
void |
initialize(EntityObject entityobject)
Force initialization of the given entity from underlying datastore (this may involves initialization of lazily loaded relations fields) |
void |
initializeAssociation(EntityObject entityobject,
java.lang.Object proxy)
Force initialization of the given entity association from underlying datastore |
boolean |
isInitialized(java.lang.Object object)
Check if an object (EntityObject or association proxy) is initialized from datastore |
void |
refresh(EntityObject entityobject)
Re-read the content of the given entity from underlying datastore. |
void |
remove(EntityObject entityobject)
Remove the given entity object from underlying datastore. |
void |
replicate(java.lang.Object obj)
Persist the object state throughout the cluster. |
void |
save(EntityObject entityobject)
Save the given entity into underlying datastore. |
void |
setDataSource(javax.sql.DataSource dataSource)
|
void |
setFirstnameColumn(java.lang.String firstnameColumn)
|
void |
setIdColumn(java.lang.String idColumn)
|
void |
setLastnameColumn(java.lang.String lastnameColumn)
|
void |
setLoginColumn(java.lang.String loginColumn)
|
void |
setMailColumn(java.lang.String mailColumn)
|
void |
setPasswordColumn(java.lang.String passwordColumn)
|
void |
setPhoneColumn(java.lang.String phoneColumn)
|
void |
setTeamColumn(java.lang.String teamColumn)
|
void |
setUserTable(java.lang.String userTable)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcUserDao()
Method Detail |
---|
public java.lang.String getIdColumn()
public void setIdColumn(java.lang.String idColumn)
idColumn
- Column representing unique identifierpublic java.lang.String getLoginColumn()
public void setLoginColumn(java.lang.String loginColumn)
loginColumn
- Column representing user loginpublic java.lang.String getPasswordColumn()
public void setPasswordColumn(java.lang.String passwordColumn)
passwordColumn
- Column representing user passwordpublic java.lang.String getLastnameColumn()
public void setLastnameColumn(java.lang.String lastnameColumn)
lastnameColumn
- Column representing user lastnamepublic java.lang.String getFirstnameColumn()
public void setFirstnameColumn(java.lang.String firstnameColumn)
firstnameColumn
- Column representing user firstnamepublic java.lang.String getMailColumn()
public void setMailColumn(java.lang.String mailColumn)
mailColumn
- Column representing user mail addresspublic java.lang.String getPhoneColumn()
public void setPhoneColumn(java.lang.String phoneColumn)
phoneColumn
- Column representing user phone numberpublic java.lang.String getTeamColumn()
public void setTeamColumn(java.lang.String teamColumn)
teamColumn
- Column representing user team descriptionpublic java.lang.String getUserTable()
public void setUserTable(java.lang.String userTable)
userTable
- Table containing user definitionspublic void setDataSource(javax.sql.DataSource dataSource)
dataSource
- The Datasource allowing access to userTablepublic User getUser(java.lang.String login)
getUser
in interface UserDao
login
- User login (should be a unique identifier)
public java.util.List getUsersWithLastnameLike(java.lang.String lastname)
getUsersWithLastnameLike
in interface UserDao
lastname
- The string that users lastname should contain
org.figure8.join.businessobjects.security.User
public void save(EntityObject entityobject)
save
in interface ObjectDao
entityobject
- EntityObject to savepublic void remove(EntityObject entityobject)
remove
in interface ObjectDao
entityobject
- EntityObject to removepublic void refresh(EntityObject entityobject)
refresh
in interface ObjectDao
entityobject
- EntityObject to refresh contentpublic void initialize(EntityObject entityobject)
initialize
in interface ObjectDao
entityobject
- EntityObject to initializepublic void initializeAssociation(EntityObject entityobject, java.lang.Object proxy)
initializeAssociation
in interface ObjectDao
entityobject
- EntityObject whose association shoud be initializedproxy
- A proxy object representing entoty association (this may be a collection)public boolean isInitialized(java.lang.Object object)
isInitialized
in interface ObjectDao
object
- The object to check initialization for
public void replicate(java.lang.Object obj)
replicate
in interface ObjectDao
obj
- The object to replicatepublic java.util.List findAll()
findAll
in interface ObjectDao
public java.util.List findAllSorted(java.lang.String sortField)
findAllSorted
in interface ObjectDao
sortField
- Field for sorting criteria
public java.lang.Class getPersistentClass()
getPersistentClass
in interface ObjectDao
protected User findUser(long id)
id
- The identifier of User to retrieve
protected User findUser(java.lang.String login)
login
- The login of User to retrieve
protected java.util.List findUsers(java.lang.String criterionColumn, java.lang.String value, java.lang.String sortColumn)
criterionColumn
- The column that appears in where clausevalue
- The value of select criterionsortColumn
- The column to use for sorting results
protected java.lang.String getSelectClause()
protected org.springframework.jdbc.core.RowMapper getUserRowMapper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |