edu.internet2.middleware.grouper.misc
Class GrouperDAOFactory

java.lang.Object
  extended by edu.internet2.middleware.grouper.misc.GrouperDAOFactory
Direct Known Subclasses:
Hib3DAOFactory

public abstract class GrouperDAOFactory
extends Object

Factory for returning GrouperDAO objects.

Since:
1.2.0
Version:
$Id: GrouperDAOFactory.java,v 1.15 2009/10/26 02:26:07 mchyzer Exp $
Author:
blair christensen.

Constructor Summary
GrouperDAOFactory()
           
 
Method Summary
abstract  AttributeDAO getAttribute()
           
abstract  AttributeAssignDAO getAttributeAssign()
           
abstract  AttributeAssignActionDAO getAttributeAssignAction()
           
abstract  AttributeAssignActionSetDAO getAttributeAssignActionSet()
           
abstract  AttributeAssignActionSetViewDAO getAttributeAssignActionSetView()
           
abstract  AttributeAssignValueDAO getAttributeAssignValue()
           
abstract  AttributeDefDAO getAttributeDef()
           
abstract  AttributeDefNameDAO getAttributeDefName()
           
abstract  AttributeDefNameSetDAO getAttributeDefNameSet()
           
abstract  AttributeDefNameSetViewDAO getAttributeDefNameSetView()
           
abstract  AttributeDefScopeDAO getAttributeDefScope()
           
abstract  AuditEntryDAO getAuditEntry()
           
abstract  AuditTypeDAO getAuditType()
           
abstract  ChangeLogConsumerDAO getChangeLogConsumer()
          change log consumer dao
abstract  ChangeLogEntryDAO getChangeLogEntry()
           
abstract  ChangeLogTypeDAO getChangeLogType()
           
abstract  CompositeDAO getComposite()
           
abstract  org.hibernate.cfg.Configuration getConfiguration()
          get a hibernate configuration (this is internal for grouper team only)
static GrouperDAOFactory getFactory()
          Return singleton GrouperDAOFactory implementation.
static GrouperDAOFactory getFactory(ApiConfig cfg)
          Return singleton GrouperDAOFactory implementation using the specified configuration.
abstract  FieldDAO getField()
           
abstract  GroupDAO getGroup()
           
abstract  GroupSetDAO getGroupSet()
           
abstract  GroupTypeDAO getGroupType()
           
abstract  MemberDAO getMember()
           
abstract  MembershipDAO getMembership()
           
abstract  PermissionEntryDAO getPermissionEntry()
           
abstract  RegistryDAO getRegistry()
           
abstract  RegistrySubjectDAO getRegistrySubject()
           
abstract  RoleDAO getRole()
           
abstract  RoleSetDAO getRoleSet()
           
abstract  RoleSetViewDAO getRoleSetView()
           
abstract  org.hibernate.Session getSession()
          get a hibernate session (note, this is a framework method that should not be called outside of grouper hibernate framework methods
abstract  StemDAO getStem()
           
abstract  TransactionDAO getTransaction()
          return the transaction implementation
static void internal_resetFactory()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrouperDAOFactory

public GrouperDAOFactory()
Method Detail

getFactory

public static GrouperDAOFactory getFactory()
Return singleton GrouperDAOFactory implementation.

Returns:
factory
Since:
1.2.0

getFactory

public static GrouperDAOFactory getFactory(ApiConfig cfg)
                                    throws IllegalArgumentException
Return singleton GrouperDAOFactory implementation using the specified configuration.

Parameters:
cfg -
Returns:
factory
Throws:
IllegalArgumentException - if cfg is null.
Since:
1.2.1

getAttribute

public abstract AttributeDAO getAttribute()
Returns:
attribute
Since:
1.2.0

getAttributeDef

public abstract AttributeDefDAO getAttributeDef()
Returns:
attributeDef

getAttributeAssign

public abstract AttributeAssignDAO getAttributeAssign()
Returns:
attributeAssign

getAttributeAssignAction

public abstract AttributeAssignActionDAO getAttributeAssignAction()
Returns:
attributeAssign

getAttributeAssignActionSet

public abstract AttributeAssignActionSetDAO getAttributeAssignActionSet()
Returns:
attributeAssign

getAttributeAssignValue

public abstract AttributeAssignValueDAO getAttributeAssignValue()
Returns:
attributeAssign

getAttributeDefScope

public abstract AttributeDefScopeDAO getAttributeDefScope()
Returns:
attributeDefScope

getAttributeDefNameSet

public abstract AttributeDefNameSetDAO getAttributeDefNameSet()
Returns:
attributeDefNameSet

getAttributeDefNameSetView

public abstract AttributeDefNameSetViewDAO getAttributeDefNameSetView()
Returns:
attributeDefNameSetView

getAttributeAssignActionSetView

public abstract AttributeAssignActionSetViewDAO getAttributeAssignActionSetView()
Returns:
attributeAssignActionSetView

getAttributeDefName

public abstract AttributeDefNameDAO getAttributeDefName()
Returns:
attributeDefName

getRole

public abstract RoleDAO getRole()
Returns:
role dao

getPermissionEntry

public abstract PermissionEntryDAO getPermissionEntry()
Returns:
permission entry dao

getComposite

public abstract CompositeDAO getComposite()
Returns:
composite
Since:
1.2.0

getAuditEntry

public abstract AuditEntryDAO getAuditEntry()
Returns:
audit entry dao
Since:
1.2.0

getAuditType

public abstract AuditTypeDAO getAuditType()
Returns:
audit type
Since:
1.2.0

getRoleSet

public abstract RoleSetDAO getRoleSet()
Returns:
role set
Since:
1.2.0

getRoleSetView

public abstract RoleSetViewDAO getRoleSetView()
Returns:
role set
Since:
1.2.0

getChangeLogEntry

public abstract ChangeLogEntryDAO getChangeLogEntry()
Returns:
change log dao
Since:
1.2.0

getChangeLogType

public abstract ChangeLogTypeDAO getChangeLogType()
Returns:
change log type
Since:
1.2.0

getChangeLogConsumer

public abstract ChangeLogConsumerDAO getChangeLogConsumer()
change log consumer dao

Returns:
the change log consumer dao

getField

public abstract FieldDAO getField()
Returns:
field
Since:
1.2.0

getGroup

public abstract GroupDAO getGroup()
Returns:
group dao
Since:
1.2.0

getGroupType

public abstract GroupTypeDAO getGroupType()
Returns:
group type dao
Since:
1.2.0

getMember

public abstract MemberDAO getMember()
Returns:
member dao
Since:
1.2.0

getMembership

public abstract MembershipDAO getMembership()
Returns:
membership dao
Since:
1.2.0

getRegistry

public abstract RegistryDAO getRegistry()
Returns:
registry dao
Since:
1.2.0

getRegistrySubject

public abstract RegistrySubjectDAO getRegistrySubject()
Returns:
registry subject dao
Since:
1.2.0

getStem

public abstract StemDAO getStem()
Returns:
stem dao
Since:
1.2.0

internal_resetFactory

public static void internal_resetFactory()

getSession

public abstract org.hibernate.Session getSession()
get a hibernate session (note, this is a framework method that should not be called outside of grouper hibernate framework methods

Returns:
the session

getConfiguration

public abstract org.hibernate.cfg.Configuration getConfiguration()
get a hibernate configuration (this is internal for grouper team only)

Returns:
the configuration

getTransaction

public abstract TransactionDAO getTransaction()
return the transaction implementation

Returns:
the transaction implementation
Since:
1.3

getGroupSet

public abstract GroupSetDAO getGroupSet()
Returns:
group set dao
Since:
1.5.0