| Package | Description |
|---|---|
| org.mentabean | |
| org.mentabean.jdbc | |
| org.mentabean.sql |
| Modifier and Type | Class and Description |
|---|---|
class |
AutoBeanConfig
A bean config that uses reflection to try to guess the database column type from the bean properties.
|
| Modifier and Type | Method and Description |
|---|---|
<E> BeanConfig |
BeanConfig.abstractInstance(E abstractProperty,
Class<? extends E> clazz)
Configures a class that should be used instead of property type to create instances
through
Class.newInstance() method. |
BeanConfig |
BeanConfig.abstractInstance(String abstractProperty,
Class<? extends Object> clazz)
Configures a class that should be used instead of property type to create instances
through
Class.newInstance() method. |
BeanConfig |
BeanConfig.addSequenceName(String seqNameInDb)
Add the sequence name *in the database* that will be used for this field.
|
BeanConfig |
BeanManager.bean(BeanConfig bc)
Add a bean configuration.
|
BeanConfig |
BeanManager.bean(Class<? extends Object> beanClass,
String tableName)
Creates a bean configuration and add to this manager.
|
BeanConfig |
BeanConfig.field(Object propValueFromGetter,
DBType<? extends Object> type) |
BeanConfig |
BeanConfig.field(Object propValueFromGetter,
String dbName,
DBType<? extends Object> type) |
BeanConfig |
BeanConfig.field(String name,
DBType<? extends Object> type)
Add a database field for the given property with the given database type.
|
BeanConfig |
BeanConfig.field(String name,
String dbName,
DBType<? extends Object> type)
Add a database field for the given property with the given database type.
|
BeanConfig |
BeanManager.getBeanConfig(Class<? extends Object> beanClass)
Get the bean configuration for the given bean class.
|
BeanConfig |
BeanSession.getConfigFor(Class<?> clazz)
Returns the BeanConfig object from the given bean class
|
BeanConfig |
BeanConfig.pk(Object propValueFromGetter,
DBType<? extends Object> type) |
BeanConfig |
BeanConfig.pk(Object propValueFromGetter,
String dbName,
DBType<? extends Object> type) |
BeanConfig |
BeanConfig.pk(String name,
DBType<? extends Object> type)
Add a bean property that is the primary key in the database.
|
BeanConfig |
BeanConfig.pk(String name,
String dbName,
DBType<? extends Object> type)
Add a property that is the primary key in the database.
|
BeanConfig |
BeanConfig.remove(Object propValueFromGetter) |
BeanConfig |
BeanConfig.remove(String name) |
BeanConfig |
BeanConfig.remove(TriggerListener trigger) |
BeanConfig |
BeanConfig.seq(String seqNameInDb)
Alias for method addSequence
|
BeanConfig |
BeanConfig.trigger(TriggerListener trigger) |
| Modifier and Type | Method and Description |
|---|---|
Set<BeanConfig> |
BeanManager.getBeanConfigs() |
| Modifier and Type | Method and Description |
|---|---|
void |
BeanManager.addBeanConfig(BeanConfig bc)
Add a bean configuration.
|
BeanConfig |
BeanManager.bean(BeanConfig bc)
Add a bean configuration.
|
| Modifier and Type | Method and Description |
|---|---|
BeanConfig |
AnsiSQLBeanSession.getConfigFor(Class<? extends Object> clazz) |
| Modifier and Type | Method and Description |
|---|---|
String |
AnsiSQLBeanSession.propertyToColumn(BeanConfig bc,
Object property)
Returns a database column name for a bean attribute.
|
| Constructor and Description |
|---|
TableAlias(BeanSession session,
BeanConfig config,
Class<? extends E> beanClass) |
TableAlias(BeanSession session,
BeanConfig config,
Class<? extends E> beanClass,
String prefix) |
Copyright © 2016. All Rights Reserved.