com.terracotta.management.user.dao
Interface UserInfoDao

All Superinterfaces:
GenericDao<UserInfo,String>
All Known Implementing Classes:
IniFileUserInfoDao

public interface UserInfoDao
extends GenericDao<UserInfo,String>

An interface for the persistence of UserInfo model objects.

Author:
brandony

Method Summary
 boolean hasUserInfos()
          Determines whether or not UserInfo objects are currently available.
 void truncate()
          Truncates the datastore.
 void validate(boolean establish)
          Validates the underlying datastore.
 
Methods inherited from interface com.terracotta.management.dao.GenericDao
create, createOrUpdate, delete, evict, flush, getById
 

Method Detail

hasUserInfos

boolean hasUserInfos()
                     throws DataAccessException
Determines whether or not UserInfo objects are currently available.

Returns:
true if any UserInfo objects are available, false if not
Throws:
DataAccessException - if the store cannot be accessed to make the determination

truncate

void truncate()
              throws DataAccessException
Truncates the datastore.

Throws:
DataAccessException - if the store cannot be truncated

validate

void validate(boolean establish)
              throws DataAccessException,
                     DatastoreNotFoundException
Validates the underlying datastore.

Parameters:
establish - a boolean value indicating whether or not an attempt should be made to try and setup the underlying datastore for UserInfo objects if it doesn't already exist. If true, the store will be established if possible in the event that validation fails.
Throws:
DataAccessException - if the could not be established
DatastoreNotFoundException - if the store cannot be validated


Copyright © 2013 Terracotta, Inc.. All Rights Reserved.