public class BeanDescriptorManager extends Object implements BeanDescriptorMap
| Constructor and Description |
|---|
BeanDescriptorManager(InternalConfiguration config)
Create for a given database dbConfig.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheNotify(TransactionEventTable.TableIUD tableIUD)
For SQL based modifications we need to invalidate appropriate parts of the
cache.
|
IdBinder |
createIdBinder(BeanProperty[] uids) |
void |
deploy() |
<T> BeanDescriptor<T> |
getBeanDescriptor(Class<T> entityType)
Return the BeanDescriptor for a given class.
|
<T> BeanDescriptor<T> |
getBeanDescriptor(String entityClassName) |
BeanDescriptor<?> |
getBeanDescriptorById(String descriptorId) |
List<BeanDescriptor<?>> |
getBeanDescriptorList()
Return an immutable list of all the BeanDescriptors.
|
Map<String,BeanDescriptor<?>> |
getBeanDescriptors() |
List<BeanDescriptor<?>> |
getBeanDescriptors(String tableName)
Return the BeanDescriptors mapped to the table.
|
<T> BeanManager<T> |
getBeanManager(Class<T> entityType) |
BeanManager<?> |
getBeanManager(String beanClassName) |
BeanTable |
getBeanTable(Class<?> type) |
Map<Class<?>,BeanTable> |
getBeanTables() |
ServerCacheManager |
getCacheManager()
Return the Cache Manager.
|
EncryptKey |
getEncryptKey(String tableName,
String columnName)
Return the Encrypt key given the table and column name.
|
NamingConvention |
getNamingConvention() |
DNativeQuery |
getNativeQuery(String name) |
String |
getServerName()
Return the name of the server/database.
|
void |
setEbeanServer(SpiEbeanServer internalEbean)
Set the internal EbeanServer instance to all BeanDescriptors.
|
public BeanDescriptorManager(InternalConfiguration config)
public BeanDescriptor<?> getBeanDescriptorById(String descriptorId)
public <T> BeanDescriptor<T> getBeanDescriptor(Class<T> entityType)
BeanDescriptorMapgetBeanDescriptor in interface BeanDescriptorMappublic <T> BeanDescriptor<T> getBeanDescriptor(String entityClassName)
public String getServerName()
BeanDescriptorMapgetServerName in interface BeanDescriptorMappublic ServerCacheManager getCacheManager()
BeanDescriptorMapgetCacheManager in interface BeanDescriptorMappublic NamingConvention getNamingConvention()
public void setEbeanServer(SpiEbeanServer internalEbean)
public IdBinder createIdBinder(BeanProperty[] uids)
createIdBinder in interface BeanDescriptorMappublic void deploy()
public EncryptKey getEncryptKey(String tableName, String columnName)
getEncryptKey in interface BeanDescriptorMappublic void cacheNotify(TransactionEventTable.TableIUD tableIUD)
public List<BeanDescriptor<?>> getBeanDescriptors(String tableName)
public List<BeanDescriptor<?>> getBeanDescriptorList()
public Map<String,BeanDescriptor<?>> getBeanDescriptors()
public <T> BeanManager<T> getBeanManager(Class<T> entityType)
public BeanManager<?> getBeanManager(String beanClassName)
public DNativeQuery getNativeQuery(String name)
Copyright © 2014. All Rights Reserved.