public class DbFacade extends Object
Constructor and Description |
---|
DbFacade() |
Modifier and Type | Method and Description |
---|---|
boolean |
CheckDBConnection()
CheckDBConnection calls a simple "select 1" SP to verify DB is up & running.
|
ActionGroupDAO |
getActionGroupDAO()
Returns the singleton instance of
ActionGroupDAO . |
AdGroupDAO |
getAdGroupDAO()
Retrieves the singleton instance of
AdGroupDAO . |
AsyncTaskDAO |
getAsyncTaskDAO()
Returns the singleton instance of
AsyncTaskDAO . |
AuditLogDAO |
getAuditLogDAO()
Returns the single instance of
AuditLogDAO . |
BookmarkDAO |
getBookmarkDAO()
Returns a singleton instance of
BookmarkDAO . |
BusinessEntitySnapshotDAO |
getBusinessEntitySnapshotDAO()
Returns the singleton instance of
BusinessEntitySnapshotDAO . |
SimpleJdbcCallsHandler |
getCallsHandler() |
int |
getColumnSize(String table,
String column)
Get the column size as defined in database for char/varchar colmuns
|
int |
getConnectionCheckInterval() |
protected <T extends DAO> |
getDAO(Class<T> daoType) |
<T extends GenericDao<?,?>> |
getDaoForEntity(Class<? extends BusinessEntity<?>> entityClass)
Return the correct DAO for the given
BusinessEntity class. |
DbEngineDialect |
getDbEngineDialect() |
DbUserDAO |
getDbUserDAO()
Returns the singleton instance of
DbuserDAO . |
DiskDao |
getDiskDao()
Returns the singleton instance of
DiskDao . |
DiskImageDAO |
getDiskImageDAO()
Returns the singleton instance of
DiskImageDAO . |
DiskImageDynamicDAO |
getDiskImageDynamicDAO()
Returns the singleton instance of
DiskImageDynamicDAO . |
DiskImageTemplateDAO |
getDiskImageTemplateDAO()
Returns the singleton instance of
DiskImageDynamicTemplateDAO . |
String |
getEntityNameByIdAndType(Guid objectId,
VdcObjectType vdcObjectType) |
NGuid |
getEntityPermissions(Guid adElementId,
ActionGroup actionGroup,
Guid objectId,
VdcObjectType vdcObjectType) |
EventDAO |
getEventDAO()
Returns the singleton instance of
EventSubscriberDAO . |
ImageVmMapDAO |
getImageVmMapDAO()
Returns the singleton instance of
DiskImageDAO . |
static DbFacade |
getInstance()
just convenience so we don't refactor old code
|
InterfaceDAO |
getInterfaceDAO()
Returns the singleton instance of
InterfaceDAO . |
LunDAO |
getLunDAO()
Retrieves the singleton instance of
LunDAO . |
NetworkClusterDAO |
getNetworkClusterDAO()
Returns the singleton instance of
NetworkClusterDAO . |
NetworkDAO |
getNetworkDAO()
Returns the singleton instance of
NetworkDAO . |
int |
getOnStartConnectionTimeout() |
List<Guid> |
getOrderedVmGuidsForRunMultipleActions(List<Guid> guids) |
PermissionDAO |
getPermissionDAO()
Returns the singleton instance of
PermissionDAO . |
RepoFileMetaDataDAO |
getRepoFileMetaDataDao()
Returns the singleton instance of
RepoFileMetaDataDAO . |
RoleDAO |
getRoleDAO()
Retrieves the singleton instance of
RoleDAO . |
RoleGroupMapDAO |
getRoleGroupMapDAO()
Returns the singleton instance of
RoleGroupMapDAO . |
StorageDomainDAO |
getStorageDomainDAO()
Returns the singleton instance of
StorageDomainDAO . |
StorageDomainDynamicDAO |
getStorageDomainDynamicDAO()
Returns the singleton instance of
StorageDomainDAO . |
StorageDomainStaticDAO |
getStorageDomainStaticDAO()
Returns the singleton instance of
StorageDomainDAO . |
StoragePoolDAO |
getStoragePoolDAO()
Retrieves the singleton instance of
StoragePoolDAO . |
StoragePoolIsoMapDAO |
getStoragePoolIsoMapDAO()
Retrieves the singleton instance of
StoragePoolIsoMapDAO . |
StorageServerConnectionDAO |
getStorageServerConnectionDAO()
Retrieves the singleton instance of
StorageServerConnectionDAO . |
StorageServerConnectionLunMapDAO |
getStorageServerConnectionLunMapDAO()
Retrieves the singleton instance of
StorageServerConnectionLunMapDAO . |
Integer |
GetSystemStatisticsValue(String entity,
String status) |
TagDAO |
getTagDAO()
Returns the singleton instance of
TagDAO . |
VdcOptionDAO |
getVdcOptionDAO()
Returns the singleton instance of
VdcOptionDAO . |
VdsDAO |
getVdsDAO()
Returns the singleton instance of
VdsDAO . |
VdsDynamicDAO |
getVdsDynamicDAO()
Returns the singleton instance of
VdsDynamicDAO . |
VdsGroupDAO |
getVdsGroupDAO()
Returns the singleton instance of
VdsGroupDAO . |
VdsSpmIdMapDAO |
getVdsSpmIdMapDAO()
Returns the singleton instance of
VdsSpmIdMapDAO . |
VdsStaticDAO |
getVdsStaticDAO()
Returns the singleton instance of
VdsStaticDAO . |
VdsStatisticsDAO |
getVdsStatisticsDAO()
Returns the singleton instance of
VdsStatisticsDAO . |
VmDAO |
getVmDAO()
* Returns the singleton instance of
VmDAO . |
VmDynamicDAO |
getVmDynamicDAO()
* Returns the singleton instance of
VmDynamicDAO . |
VmNetworkInterfaceDAO |
getVmNetworkInterfaceDAO()
Returns the singleton instance of
VmNetworkInterfaceDAO . |
VmNetworkStatisticsDAO |
getVmNetworkStatisticsDAO()
Returns the singleton instance of
VmNetworkInterfaceDAO . |
VmPoolDAO |
getVmPoolDAO()
Returns the singleton instance of
VmPoolDAO . |
VmStaticDAO |
getVmStaticDAO() |
VmStatisticsDAO |
getVmStatisticsDAO()
Returns the singleton instance of
VmStatisticsDAO . |
VmTemplateDAO |
getVmTemplateDAO()
* Returns the singleton instance of
VmTemplateDAO . |
boolean |
IsStoragePoolMasterUp(Guid storagePoolId) |
void |
SaveIsInitialized(Guid vmid,
boolean isInitialized) |
void |
setConnectionCheckInterval(int connectionCheckInterval) |
void |
setDbEngineDialect(DbEngineDialect dbEngineDialect) |
void |
setOnStartConnectionTimeout(int onStartConnectionTimeout) |
void |
setTemplate(org.springframework.jdbc.core.JdbcTemplate template) |
void |
updateLastAdminCheckStatus(Guid... userIds)
User presentation in GUI have a distinction between ADMIN/USER user.
|
public void setDbEngineDialect(DbEngineDialect dbEngineDialect)
public DbEngineDialect getDbEngineDialect()
public SimpleJdbcCallsHandler getCallsHandler()
public <T extends GenericDao<?,?>> T getDaoForEntity(Class<? extends BusinessEntity<?>> entityClass)
BusinessEntity
class.T
- The Type of DAO which is returned.entityClass
- The class of the entity.public void setTemplate(org.springframework.jdbc.core.JdbcTemplate template)
public static DbFacade getInstance()
public void SaveIsInitialized(Guid vmid, boolean isInitialized)
public NGuid getEntityPermissions(Guid adElementId, ActionGroup actionGroup, Guid objectId, VdcObjectType vdcObjectType)
public String getEntityNameByIdAndType(Guid objectId, VdcObjectType vdcObjectType)
public int getColumnSize(String table, String column)
table
- table namecolumn
- column namepublic boolean IsStoragePoolMasterUp(Guid storagePoolId)
public List<Guid> getOrderedVmGuidsForRunMultipleActions(List<Guid> guids)
public void updateLastAdminCheckStatus(Guid... userIds)
userIds
- public boolean CheckDBConnection()
public BookmarkDAO getBookmarkDAO()
BookmarkDAO
.public DbUserDAO getDbUserDAO()
DbuserDAO
.public VdsStaticDAO getVdsStaticDAO()
VdsStaticDAO
.public VdsDynamicDAO getVdsDynamicDAO()
VdsDynamicDAO
.public VdsStatisticsDAO getVdsStatisticsDAO()
VdsStatisticsDAO
.public VdsSpmIdMapDAO getVdsSpmIdMapDAO()
VdsSpmIdMapDAO
.public VdsGroupDAO getVdsGroupDAO()
VdsGroupDAO
.public AuditLogDAO getAuditLogDAO()
AuditLogDAO
.public InterfaceDAO getInterfaceDAO()
InterfaceDAO
.public VmNetworkInterfaceDAO getVmNetworkInterfaceDAO()
VmNetworkInterfaceDAO
.public VmNetworkStatisticsDAO getVmNetworkStatisticsDAO()
VmNetworkInterfaceDAO
.public RoleGroupMapDAO getRoleGroupMapDAO()
RoleGroupMapDAO
.public VmTemplateDAO getVmTemplateDAO()
VmTemplateDAO
.public VmDynamicDAO getVmDynamicDAO()
VmDynamicDAO
.public DiskImageDAO getDiskImageDAO()
DiskImageDAO
.public DiskImageDynamicDAO getDiskImageDynamicDAO()
DiskImageDynamicDAO
.public DiskImageTemplateDAO getDiskImageTemplateDAO()
DiskImageDynamicTemplateDAO
.public ImageVmMapDAO getImageVmMapDAO()
DiskImageDAO
.public EventDAO getEventDAO()
EventSubscriberDAO
.public ActionGroupDAO getActionGroupDAO()
ActionGroupDAO
.public AsyncTaskDAO getAsyncTaskDAO()
AsyncTaskDAO
.public AdGroupDAO getAdGroupDAO()
AdGroupDAO
.public NetworkDAO getNetworkDAO()
NetworkDAO
.public NetworkClusterDAO getNetworkClusterDAO()
NetworkClusterDAO
.public PermissionDAO getPermissionDAO()
PermissionDAO
.public StorageDomainDAO getStorageDomainDAO()
StorageDomainDAO
.public StorageDomainStaticDAO getStorageDomainStaticDAO()
StorageDomainDAO
.public StorageDomainDynamicDAO getStorageDomainDynamicDAO()
StorageDomainDAO
.public RepoFileMetaDataDAO getRepoFileMetaDataDao()
RepoFileMetaDataDAO
.public StoragePoolDAO getStoragePoolDAO()
StoragePoolDAO
.public StoragePoolIsoMapDAO getStoragePoolIsoMapDAO()
StoragePoolIsoMapDAO
.public StorageServerConnectionDAO getStorageServerConnectionDAO()
StorageServerConnectionDAO
.public StorageServerConnectionLunMapDAO getStorageServerConnectionLunMapDAO()
StorageServerConnectionLunMapDAO
.public VdcOptionDAO getVdcOptionDAO()
VdcOptionDAO
.public BusinessEntitySnapshotDAO getBusinessEntitySnapshotDAO()
BusinessEntitySnapshotDAO
.public VmPoolDAO getVmPoolDAO()
VmPoolDAO
.public VmStaticDAO getVmStaticDAO()
public VmStatisticsDAO getVmStatisticsDAO()
VmStatisticsDAO
.public void setOnStartConnectionTimeout(int onStartConnectionTimeout)
public int getOnStartConnectionTimeout()
public void setConnectionCheckInterval(int connectionCheckInterval)
public int getConnectionCheckInterval()
Copyright © 2012. All Rights Reserved.