A B C D E F G H I L M N O P R S T U V

A

AbstractMentaBean - Class in org.mentabean
A abstract implementation of the MentaBean interface.
AbstractMentaBean() - Constructor for class org.mentabean.AbstractMentaBean
 
AbstractMentaBean(BeanSession) - Constructor for class org.mentabean.AbstractMentaBean
You can inject the bean session through the constructor.
addBeanConfig(BeanConfig) - Method in class org.mentabean.BeanManager
Add a bean configuration.
addPropertyName(String) - Static method in class org.mentabean.util.PropertiesProxy
 
addSequenceName(String) - Method in class org.mentabean.BeanConfig
Add the sequence name *in the database* that will be used for this field.
all(Class<? extends Object>) - Static method in class org.mentabean.util.FindProperties
 
AnsiSQLBeanSession - Class in org.mentabean.jdbc
The bean session implementation based on JDBC and SQL.
AnsiSQLBeanSession(BeanManager, Connection) - Constructor for class org.mentabean.jdbc.AnsiSQLBeanSession
Creates a JdbcBeanSession with a BeanManager and a Connection.
AnsiSQLBeanSession.QueryAndValues - Class in org.mentabean.jdbc
 
AnsiSQLBeanSession.QueryAndValues(StringBuilder, List<AnsiSQLBeanSession.Value>) - Constructor for class org.mentabean.jdbc.AnsiSQLBeanSession.QueryAndValues
 
AnsiSQLBeanSession.Value - Class in org.mentabean.jdbc
 
AnsiSQLBeanSession.Value(DBField, Object) - Constructor for class org.mentabean.jdbc.AnsiSQLBeanSession.Value
 
AnsiSQLBeanSession.Value(DBField, boolean) - Constructor for class org.mentabean.jdbc.AnsiSQLBeanSession.Value
 
AutoBeanConfig - Class in org.mentabean
A bean config that uses reflection to try to guess the database column type from the bean properties.
AutoBeanConfig(Class<? extends Object>, String) - Constructor for class org.mentabean.AutoBeanConfig
 
AUTOINCREMENT - Static variable in class org.mentabean.DBTypes
 
AutoIncrementType - Class in org.mentabean.type
 
AutoIncrementType() - Constructor for class org.mentabean.type.AutoIncrementType
 
AUTOTIMESTAMP - Static variable in class org.mentabean.DBTypes
 
AutoTimestampType - Class in org.mentabean.type
 
AutoTimestampType() - Constructor for class org.mentabean.type.AutoTimestampType
 

B

bean(BeanConfig) - Method in class org.mentabean.BeanManager
Add a bean configuration.
bean(Class<? extends Object>, String) - Method in class org.mentabean.BeanManager
Creates a bean configuration and add to this manager.
BeanConfig - Class in org.mentabean
A class representing a bean configuration, like table name, primary keys and fields in the database.
BeanConfig(Class<? extends Object>, String) - Constructor for class org.mentabean.BeanConfig
Creates a configuration for a bean represented by the given class.
BeanException - Exception in org.mentabean
A runtime exception that can happen when working with MentaBean.
BeanException() - Constructor for exception org.mentabean.BeanException
 
BeanException(Throwable) - Constructor for exception org.mentabean.BeanException
 
BeanException(String) - Constructor for exception org.mentabean.BeanException
 
BeanException(String, Throwable) - Constructor for exception org.mentabean.BeanException
 
BeanManager - Class in org.mentabean
The manager that keeps track of the configuration for all beans.
BeanManager() - Constructor for class org.mentabean.BeanManager
 
beanManager - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession
 
BeanSession - Interface in org.mentabean
Describe a simple ORM interface that can perform CRUD for Beans according to properties defined programmatically on BeanManager.
beanToMap(Object, Map<String, String>) - Static method in class org.mentabean.util.InjectionUtils
 
BIGDECIMAL - Static variable in class org.mentabean.DBTypes
 
BigDecimalType - Class in org.mentabean.type
 
BigDecimalType() - Constructor for class org.mentabean.type.BigDecimalType
 
bindToInsertStatement(PreparedStatement, List<AnsiSQLBeanSession.Value>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
bindToStmt(PreparedStatement, int, E) - Method in interface org.mentabean.DBType
Do what you have to do to bind a value to a prepared statement.
bindToStmt(PreparedStatement, int, Number) - Method in class org.mentabean.type.AutoIncrementType
 
bindToStmt(PreparedStatement, int, Date) - Method in class org.mentabean.type.AutoTimestampType
 
bindToStmt(PreparedStatement, int, BigDecimal) - Method in class org.mentabean.type.BigDecimalType
 
bindToStmt(PreparedStatement, int, Boolean) - Method in class org.mentabean.type.BooleanIntType
 
bindToStmt(PreparedStatement, int, Boolean) - Method in class org.mentabean.type.BooleanStringType
 
bindToStmt(PreparedStatement, int, Date) - Method in class org.mentabean.type.DateType
 
bindToStmt(PreparedStatement, int, Double) - Method in class org.mentabean.type.DoubleType
 
bindToStmt(PreparedStatement, int, Enum<?>) - Method in class org.mentabean.type.EnumIdType
 
bindToStmt(PreparedStatement, int, Enum<?>) - Method in class org.mentabean.type.EnumValueType
 
bindToStmt(PreparedStatement, int, Float) - Method in class org.mentabean.type.FloatType
 
bindToStmt(PreparedStatement, int, Integer) - Method in class org.mentabean.type.IntegerType
 
bindToStmt(PreparedStatement, int, Long) - Method in class org.mentabean.type.LongType
 
bindToStmt(PreparedStatement, int, Number) - Method in class org.mentabean.type.SequenceType
 
bindToStmt(PreparedStatement, int, String) - Method in class org.mentabean.type.StringType
 
bindToStmt(PreparedStatement, int, Date) - Method in class org.mentabean.type.TimestampType
 
bindToStmt(PreparedStatement, int, Date) - Method in class org.mentabean.type.TimeType
 
BOOLEANINT - Static variable in class org.mentabean.DBTypes
 
BooleanIntType - Class in org.mentabean.type
 
BooleanIntType() - Constructor for class org.mentabean.type.BooleanIntType
 
BOOLEANSTRING - Static variable in class org.mentabean.DBTypes
 
BooleanStringType - Class in org.mentabean.type
 
BooleanStringType() - Constructor for class org.mentabean.type.BooleanStringType
 
BooleanStringType(String, String) - Constructor for class org.mentabean.type.BooleanStringType
 
buildSelect(Class<? extends Object>) - Method in interface org.mentabean.BeanSession
 
buildSelect(Class<? extends Object>, Object...) - Method in interface org.mentabean.BeanSession
 
buildSelect(Class<? extends Object>, String) - Method in interface org.mentabean.BeanSession
 
buildSelect(Class<? extends Object>, String, Object...) - Method in interface org.mentabean.BeanSession
 
buildSelect(Class<? extends Object>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Build the column/field list for a SQL SELECT statement based on the bean configuration.
buildSelect(Class<? extends Object>, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
buildSelect(Class<? extends Object>, String) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Build a column/field list for a SQL SELECT statement based on the bean configuration.
buildSelect(Class<? extends Object>, String, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
buildSelectMinus(Class<? extends Object>, Object...) - Method in interface org.mentabean.BeanSession
 
buildSelectMinus(Class<? extends Object>, String, Object...) - Method in interface org.mentabean.BeanSession
 
buildSelectMinus(Class<? extends Object>, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Like buildSelect but you can exclude some properties from the resulting list.
buildSelectMinus(Class<? extends Object>, String, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Same as buildSelectMinus with support for a database table prefix that will be applied on each field.

C

canBeNull() - Method in interface org.mentabean.DBType
Returns whether this type can be NULL in the database.
canBeNull() - Method in class org.mentabean.type.AutoIncrementType
 
canBeNull() - Method in class org.mentabean.type.AutoTimestampType
 
canBeNull() - Method in class org.mentabean.type.BigDecimalType
 
canBeNull() - Method in class org.mentabean.type.BooleanIntType
 
canBeNull() - Method in class org.mentabean.type.BooleanStringType
 
canBeNull() - Method in class org.mentabean.type.DateType
 
canBeNull() - Method in class org.mentabean.type.DoubleType
 
canBeNull() - Method in class org.mentabean.type.EnumIdType
 
canBeNull() - Method in class org.mentabean.type.EnumValueType
 
canBeNull() - Method in class org.mentabean.type.FloatType
 
canBeNull() - Method in class org.mentabean.type.IntegerType
 
canBeNull() - Method in class org.mentabean.type.LongType
 
canBeNull() - Method in class org.mentabean.type.NowOnInsertAndUpdateTimestampType
 
canBeNull() - Method in class org.mentabean.type.NowOnInsertTimestampType
 
canBeNull() - Method in class org.mentabean.type.NowOnUpdateTimestampType
 
canBeNull() - Method in class org.mentabean.type.SequenceType
 
canBeNull() - Method in class org.mentabean.type.StringType
 
canBeNull() - Method in class org.mentabean.type.TimestampType
 
canBeNull() - Method in class org.mentabean.type.TimeType
 
checkIfTableExists(Connection, String) - Static method in class org.mentabean.util.SQLUtils
 
checkPrimitives(Class<? extends Object>, Class<? extends Object>) - Static method in class org.mentabean.util.InjectionUtils
 
close(Statement) - Static method in class org.mentabean.util.SQLUtils
 
close(ResultSet, Statement) - Static method in class org.mentabean.util.SQLUtils
 
close(Statement, Connection) - Static method in class org.mentabean.util.SQLUtils
 
close(ResultSet, Statement, Connection) - Static method in class org.mentabean.util.SQLUtils
 
conn - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession
 
countList(Object) - Method in interface org.mentabean.BeanSession
Count the number of beans that would be returned by a loadList method.
countList(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
create(Class<E>) - Static method in class org.mentabean.util.PropertiesProxy
 
createPKConstraintQuery(String, Iterator<DBField>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Create a SQL query to add the primary key constraint
createTable(Class<? extends Object>) - Method in interface org.mentabean.BeanSession
 
createTable(Class<? extends Object>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
createTables() - Method in interface org.mentabean.BeanSession
 
createTables() - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 

D

DATE - Static variable in class org.mentabean.DBTypes
 
DateType - Class in org.mentabean.type
 
DateType() - Constructor for class org.mentabean.type.DateType
 
DBField - Class in org.mentabean
A class representing a database field.
DBField(String, String, DBType<?>, boolean) - Constructor for class org.mentabean.DBField
 
DBType<E> - Interface in org.mentabean
An interface defining a database type.
DBTypes - Class in org.mentabean
 
DBTypes() - Constructor for class org.mentabean.DBTypes
 
DEBUG - Static variable in class org.mentabean.jdbc.AnsiSQLBeanSession
 
debugSql(boolean) - Static method in class org.mentabean.jdbc.AnsiSQLBeanSession
Turn SQL debugging on and off.
DEFAULT_SIZE - Static variable in class org.mentabean.type.StringType
 
delete() - Method in class org.mentabean.AbstractMentaBean
 
delete(Object) - Method in interface org.mentabean.BeanSession
Delete the bean from the database.
delete(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
delete() - Method in interface org.mentabean.MentaBean
Attempt to delete a bean from the database.
DOUBLE - Static variable in class org.mentabean.DBTypes
 
DoubleType - Class in org.mentabean.type
 
DoubleType() - Constructor for class org.mentabean.type.DoubleType
 

E

ENUMID - Static variable in class org.mentabean.DBTypes
 
EnumIdType - Class in org.mentabean.type
 
EnumIdType(Class<? extends Enum<?>>) - Constructor for class org.mentabean.type.EnumIdType
 
EnumIdType.Test - Enum in org.mentabean.type
 
EnumIdTypeFactory - Class in org.mentabean.type
 
ENUMVALUE - Static variable in class org.mentabean.DBTypes
 
EnumValueType - Class in org.mentabean.type
 
EnumValueType(Class<? extends Enum<?>>) - Constructor for class org.mentabean.type.EnumValueType
 
EnumValueTypeFactory - Class in org.mentabean.type
 
equals(Object) - Method in class org.mentabean.DBField
 
equals(Object) - Method in class org.mentabean.type.BooleanStringType
 
executeScript(Connection, String, String) - Static method in class org.mentabean.util.SQLUtils
 

F

field(String, DBType<? extends Object>) - Method in class org.mentabean.BeanConfig
Add a database field for the given property with the given database type.
field(Object, DBType<? extends Object>) - Method in class org.mentabean.BeanConfig
 
field(String, String, DBType<? extends Object>) - Method in class org.mentabean.BeanConfig
Add a database field for the given property with the given database type.
field(Object, String, DBType<? extends Object>) - Method in class org.mentabean.BeanConfig
 
field - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession.Value
 
fields() - Method in class org.mentabean.BeanConfig
Return all DBFields configured for this bean.
fillStatement(PreparedStatement, Object...) - Static method in class org.mentabean.util.SQLUtils
Fill the given PreparedStatement object with the specified parameters.

Note that this method uses the setObject method which depends of a specified JDBC driver implementation to work properly.
fillStatementIndx(PreparedStatement, int, Object...) - Static method in class org.mentabean.util.SQLUtils
Fill the given PreparedStatement object with the specified parameters starting at indx position.

Note that this method uses the setObject method which depends of a specified JDBC driver implementation to work properly.
FindConstructor - Class in org.mentabean.util
Find constructor with polymorphism! Class.getConstructor only finds an exact match.
FindConstructor() - Constructor for class org.mentabean.util.FindConstructor
 
findFieldToInject(Class<? extends Object>, String, Class<? extends Object>) - Static method in class org.mentabean.util.InjectionUtils
 
FindMethod - Class in org.mentabean.util
Find method with polymorphism! Class.getMethod only finds an exact match.
FindMethod() - Constructor for class org.mentabean.util.FindMethod
 
findMethodToGet(Class<? extends Object>, String) - Static method in class org.mentabean.util.InjectionUtils
 
findMethodToInject(Class<? extends Object>, String, Class<? extends Object>) - Static method in class org.mentabean.util.InjectionUtils
 
FindProperties - Class in org.mentabean.util
 
FindProperties() - Constructor for class org.mentabean.util.FindProperties
 
findPropertyType(Class<?>, String) - Static method in class org.mentabean.util.InjectionUtils
 
FirebirdBeanSession - Class in org.mentabean.jdbc
Firebird support.
FirebirdBeanSession(BeanManager, Connection) - Constructor for class org.mentabean.jdbc.FirebirdBeanSession
 
FLOAT - Static variable in class org.mentabean.DBTypes
 
FloatType - Class in org.mentabean.type
 
FloatType() - Constructor for class org.mentabean.type.FloatType
 
from(Class<? extends Object>) - Static method in class org.mentabean.DBTypes
 
from(Class<? extends Enum<?>>) - Method in class org.mentabean.type.EnumIdTypeFactory
 
from(Class<? extends Enum<?>>) - Method in class org.mentabean.type.EnumValueTypeFactory
 
fromId(int) - Static method in enum org.mentabean.type.EnumIdType.Test
 

G

get(String) - Method in interface org.mentabean.util.InjectionUtils.Provider
 
getAnsiType() - Method in interface org.mentabean.DBType
Return the best ANSI type for this database type.
getAnsiType() - Method in class org.mentabean.type.AutoIncrementType
 
getAnsiType() - Method in class org.mentabean.type.AutoTimestampType
 
getAnsiType() - Method in class org.mentabean.type.BigDecimalType
 
getAnsiType() - Method in class org.mentabean.type.BooleanIntType
 
getAnsiType() - Method in class org.mentabean.type.BooleanStringType
 
getAnsiType() - Method in class org.mentabean.type.DateType
 
getAnsiType() - Method in class org.mentabean.type.DoubleType
 
getAnsiType() - Method in class org.mentabean.type.EnumIdType
 
getAnsiType() - Method in class org.mentabean.type.EnumValueType
 
getAnsiType() - Method in class org.mentabean.type.FloatType
 
getAnsiType() - Method in class org.mentabean.type.IntegerType
 
getAnsiType() - Method in class org.mentabean.type.LongType
 
getAnsiType() - Method in class org.mentabean.type.SequenceType
 
getAnsiType() - Method in class org.mentabean.type.StringType
 
getAnsiType() - Method in class org.mentabean.type.TimestampType
 
getAnsiType() - Method in class org.mentabean.type.TimeType
 
getAutoIncrementField() - Method in class org.mentabean.BeanConfig
Return an auto-increment field, if one was configured for this bean.
getBeanClass() - Method in class org.mentabean.BeanConfig
Return the bean class.
getBeanConfig(Class<? extends Object>) - Method in class org.mentabean.BeanManager
Get the bean configuration for the given bean class.
getBeanConfigs() - Method in class org.mentabean.BeanManager
 
getBeanSession() - Method in class org.mentabean.AbstractMentaBean
 
getBeanSession() - Method in interface org.mentabean.MentaBean
Return the bean session being used by this menta bean.
getBooleanValue(String) - Method in class org.mentabean.type.BooleanStringType
 
getCause() - Method in exception org.mentabean.BeanException
 
getConnection() - Method in interface org.mentabean.BeanSession
Get the database connection being used by this bean session.
getConnection() - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Get the connection associated with this JdbcBeanSession.
getConstructor(Class<? extends Object>, Class<? extends Object>[]) - Static method in class org.mentabean.util.FindConstructor
Finds the most specific applicable constructor
getCurrentTimestampCommand() - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Get the command representing 'now' in this database.
getCurrentTimestampCommand() - Method in class org.mentabean.jdbc.FirebirdBeanSession
 
getCurrentTimestampCommand() - Method in class org.mentabean.jdbc.H2BeanSession
 
getCurrentTimestampCommand() - Method in class org.mentabean.jdbc.MySQLBeanSession
 
getCurrentTimestampCommand() - Method in class org.mentabean.jdbc.OracleBeanSession
 
getCurrentTimestampCommand() - Method in class org.mentabean.jdbc.PostgreSQLBeanSession
 
getDatabaseType(DBType<?>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Each dialect can override this to return the database column type it supports other than the ANSI standard.
getDatabaseType(DBType<?>) - Method in class org.mentabean.jdbc.H2BeanSession
 
getDatabaseType(DBType<?>) - Method in class org.mentabean.jdbc.MySQLBeanSession
 
getDbName() - Method in class org.mentabean.DBField
 
getDeclaredConstructor(Class<? extends Object>, Class<? extends Object>[]) - Static method in class org.mentabean.util.FindConstructor
Finds the most specific applicable declared constructor
getDeclaredMethod(Class<? extends Object>, String, Class<? extends Object>[]) - Static method in class org.mentabean.util.FindMethod
Finds the most specific applicable declared method
getDefaultValueForPrimitive(Class<?>) - Static method in class org.mentabean.util.InjectionUtils
 
getField(Object, String) - Static method in class org.mentabean.util.InjectionUtils
 
getField(Class<? extends Object>, String) - Static method in class org.mentabean.util.InjectionUtils
 
getFromResultSet(ResultSet, int) - Method in interface org.mentabean.DBType
Do what you have to do to get and return this database type from a result set.
getFromResultSet(ResultSet, String) - Method in interface org.mentabean.DBType
Do what you have to do to get and return this database type from a result set.
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.AutoIncrementType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.AutoIncrementType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.AutoTimestampType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.AutoTimestampType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.BigDecimalType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.BigDecimalType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.BooleanIntType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.BooleanIntType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.BooleanStringType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.BooleanStringType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.DateType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.DateType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.DoubleType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.DoubleType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.EnumIdType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.EnumIdType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.EnumValueType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.EnumValueType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.FloatType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.FloatType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.IntegerType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.IntegerType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.LongType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.LongType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.SequenceType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.SequenceType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.StringType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.StringType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.TimestampType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.TimestampType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.TimeType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.TimeType
 
getId() - Method in enum org.mentabean.type.EnumIdType.Test
 
getInstance() - Static method in class org.mentabean.type.EnumIdTypeFactory
 
getInstance() - Static method in class org.mentabean.type.EnumValueTypeFactory
 
getMethod(Class<? extends Object>, String, Class<? extends Object>[]) - Static method in class org.mentabean.util.FindMethod
Finds the most specific applicable method
getName() - Method in class org.mentabean.DBField
 
getNumberOfFields() - Method in class org.mentabean.BeanConfig
Return the number of fields configured for this bean.
getNumberOfPKs() - Method in class org.mentabean.BeanConfig
 
getObject(Object, InjectionUtils.Provider, boolean, String, boolean, boolean, boolean) - Static method in class org.mentabean.util.InjectionUtils
 
getPrimitiveFrom(Object) - Static method in class org.mentabean.util.InjectionUtils
 
getPrimitiveFrom(Class<? extends Object>) - Static method in class org.mentabean.util.InjectionUtils
 
getProperties(Object[]) - Static method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
getProperty(Object, String) - Static method in class org.mentabean.util.InjectionUtils
Extract the value of a property of a bean!
getPropertyName() - Static method in class org.mentabean.util.PropertiesProxy
 
getPropertyNames() - Static method in class org.mentabean.util.PropertiesProxy
 
getSequenceField() - Method in class org.mentabean.BeanConfig
Return a sequence field, if one was configured for this bean.
getSequenceName() - Method in class org.mentabean.BeanConfig
Returns the name of the sequence in the database.
getSize() - Method in class org.mentabean.type.BooleanStringType
 
getSize() - Method in class org.mentabean.type.EnumValueType
 
getSize() - Method in interface org.mentabean.type.SizedType
 
getSize() - Method in class org.mentabean.type.StringType
 
getTableName() - Method in class org.mentabean.BeanConfig
Return the table name where the bean properties are stored.
getType() - Method in class org.mentabean.DBField
 
getTypeClass() - Method in interface org.mentabean.DBType
Return the java type representing this database type.
getTypeClass() - Method in class org.mentabean.type.AutoIncrementType
 
getTypeClass() - Method in class org.mentabean.type.AutoTimestampType
 
getTypeClass() - Method in class org.mentabean.type.BigDecimalType
 
getTypeClass() - Method in class org.mentabean.type.BooleanIntType
 
getTypeClass() - Method in class org.mentabean.type.BooleanStringType
 
getTypeClass() - Method in class org.mentabean.type.DateType
 
getTypeClass() - Method in class org.mentabean.type.DoubleType
 
getTypeClass() - Method in class org.mentabean.type.EnumIdType
 
getTypeClass() - Method in class org.mentabean.type.EnumValueType
 
getTypeClass() - Method in class org.mentabean.type.FloatType
 
getTypeClass() - Method in class org.mentabean.type.IntegerType
 
getTypeClass() - Method in class org.mentabean.type.LongType
 
getTypeClass() - Method in class org.mentabean.type.SequenceType
 
getTypeClass() - Method in class org.mentabean.type.StringType
 
getTypeClass() - Method in class org.mentabean.type.TimestampType
 
getTypeClass() - Method in class org.mentabean.type.TimeType
 
getValueFromBean(Object, String) - Static method in class org.mentabean.jdbc.AnsiSQLBeanSession
Get a value from a bean through reflection.
getValueFromBean(Object, String, Method) - Static method in class org.mentabean.jdbc.AnsiSQLBeanSession
Get a value from a bean through reflection.

H

H2BeanSession - Class in org.mentabean.jdbc
H2 supports AUTOINCREMENT and SEQUENCE fields.
H2BeanSession(BeanManager, Connection) - Constructor for class org.mentabean.jdbc.H2BeanSession
 
handleLimit(StringBuilder, OrderBy, Limit) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Some databases will sort before applying the limit (MySql), others will not (Oracle).
handleLimit(StringBuilder, OrderBy, Limit) - Method in class org.mentabean.jdbc.FirebirdBeanSession
MySQL is not like Oracle.
handleLimit(StringBuilder, OrderBy, Limit) - Method in class org.mentabean.jdbc.H2BeanSession
 
handleLimit(StringBuilder, OrderBy, Limit) - Method in class org.mentabean.jdbc.MySQLBeanSession
MySQL is not like Oracle.
handleLimit(StringBuilder, OrderBy, Limit) - Method in class org.mentabean.jdbc.OracleBeanSession
Oracle will not SORT first then apply LIMIT.
handleLimit(StringBuilder, OrderBy, Limit) - Method in class org.mentabean.jdbc.PostgreSQLBeanSession
PostgreSQL will sort first then apply limit
hasDefaultConstructor(Class<? extends Object>) - Static method in class org.mentabean.util.InjectionUtils
 
hashCode() - Method in class org.mentabean.DBField
 
hasPK() - Method in class org.mentabean.BeanConfig
Check whether the primary key was defined.
hasProperties() - Static method in class org.mentabean.util.PropertiesProxy
 
hasValue(String) - Method in interface org.mentabean.util.InjectionUtils.Provider
 

I

inject(Method, Object, Object, boolean, boolean) - Static method in class org.mentabean.util.InjectionUtils
 
InjectionUtils - Class in org.mentabean.util
 
InjectionUtils() - Constructor for class org.mentabean.util.InjectionUtils
 
InjectionUtils.Provider - Interface in org.mentabean.util
 
injectValue(Object, String, Object, Class<? extends Object>) - Static method in class org.mentabean.jdbc.AnsiSQLBeanSession
Inject a value in a bean through reflection.
insert() - Method in class org.mentabean.AbstractMentaBean
 
insert(Object) - Method in interface org.mentabean.BeanSession
Insert the bean in the database.
insert(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
insert(Object) - Method in class org.mentabean.jdbc.FirebirdBeanSession
 
insert(Object) - Method in class org.mentabean.jdbc.H2BeanSession
 
insert(Object) - Method in class org.mentabean.jdbc.MySQLBeanSession
 
insert(Object) - Method in class org.mentabean.jdbc.OracleBeanSession
 
insert(Object) - Method in class org.mentabean.jdbc.PostgreSQLBeanSession
 
insert() - Method in interface org.mentabean.MentaBean
Attempt to insert a bean to the database.
INTEGER - Static variable in class org.mentabean.DBTypes
 
IntegerType - Class in org.mentabean.type
 
IntegerType() - Constructor for class org.mentabean.type.IntegerType
 
intValue() - Method in class org.mentabean.util.Limit
 
isEmpty() - Method in class org.mentabean.util.OrderBy
 
isPK() - Method in class org.mentabean.DBField
 
isSet(Object, Class<? extends Object>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
if Boolean consider TRUE to be set and FALSE to be not set.
isSysdate - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession.Value
 

L

lim(int) - Static method in class org.mentabean.util.SQLUtils
 
Limit - Class in org.mentabean.util
 
Limit(int) - Constructor for class org.mentabean.util.Limit
 
load() - Method in class org.mentabean.AbstractMentaBean
 
load(Object) - Method in interface org.mentabean.BeanSession
Load the bean from the database, injecting all its properties through reflection.
load(Object, Object...) - Method in interface org.mentabean.BeanSession
 
load(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
load(Object, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
load() - Method in interface org.mentabean.MentaBean
Attempt to load the bean properties from the database.
loaded - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadImpl(Object, String[], String[]) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadList(E) - Method in interface org.mentabean.BeanSession
Load a list of beans based on the properties present in the bean passed.
loadList(E, Object...) - Method in interface org.mentabean.BeanSession
 
loadList(E, OrderBy) - Method in interface org.mentabean.BeanSession
Same as loadList(bean) except that you can order the list returned by passing an SQL orderBy clause.
loadList(E, OrderBy, Object...) - Method in interface org.mentabean.BeanSession
 
loadList(E, Limit) - Method in interface org.mentabean.BeanSession
Same as loadList(bean) except that you can limit the number of beans returned in the list.
loadList(E, Limit, Object...) - Method in interface org.mentabean.BeanSession
 
loadList(E, OrderBy, Limit) - Method in interface org.mentabean.BeanSession
Same as loadList(bean) except that you can limit the number of beans returned in the list as well as sort them by passing a orderBy SQL clause.
loadList(E, OrderBy, Limit, Object...) - Method in interface org.mentabean.BeanSession
 
loadList(E, OrderBy, Limit) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadList(E, OrderBy, Limit, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadList(E) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadList(E, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadList(E, OrderBy) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadList(E, OrderBy, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadList(E, Limit) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadList(E, Limit, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadListMinus(E, Object...) - Method in interface org.mentabean.BeanSession
 
loadListMinus(E, OrderBy, Object...) - Method in interface org.mentabean.BeanSession
 
loadListMinus(E, Limit, Object...) - Method in interface org.mentabean.BeanSession
 
loadListMinus(E, OrderBy, Limit, Object...) - Method in interface org.mentabean.BeanSession
 
loadListMinus(E, OrderBy, Limit, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Load a list of beans, but exclude some fields.
loadListMinus(E, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Load a list of beans, but exclude some fields.
loadListMinus(E, OrderBy, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Load a list of beans, but exclude some fields.
loadListMinus(E, Limit, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Load a list of beans, but exclude some fields.
loadMinus(Object, Object...) - Method in interface org.mentabean.BeanSession
 
loadMinus(Object, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadUnique(E) - Method in interface org.mentabean.BeanSession
Same as loadList(bean) but it attempts to load a single bean only.
loadUnique(E, Object...) - Method in interface org.mentabean.BeanSession
 
loadUnique(E) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadUnique(E, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadUniqueImpl(E, String[], String[]) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
loadUniqueMinus(E, Object...) - Method in interface org.mentabean.BeanSession
 
loadUniqueMinus(E, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
LONG - Static variable in class org.mentabean.DBTypes
 
LongType - Class in org.mentabean.type
 
LongType() - Constructor for class org.mentabean.type.LongType
 

M

main(String[]) - Static method in class org.mentabean.type.EnumIdType
 
MentaBean - Interface in org.mentabean
The functionality of a MentaBean, in other words, the methods you can call on a mentabean to perform database operations like insert, load, reload, save, update and delete.
MySQLBeanSession - Class in org.mentabean.jdbc
MySQL only supports auto-increment.
MySQLBeanSession(BeanManager, Connection) - Constructor for class org.mentabean.jdbc.MySQLBeanSession
 

N

NOW_ON_BOTH_TIMESTAMP - Static variable in class org.mentabean.DBTypes
 
NOW_ON_INSERT_TIMESTAMP - Static variable in class org.mentabean.DBTypes
 
NOW_ON_UPDATE_TIMESTAMP - Static variable in class org.mentabean.DBTypes
 
NowOnInsertAndUpdateTimestampType - Class in org.mentabean.type
 
NowOnInsertAndUpdateTimestampType() - Constructor for class org.mentabean.type.NowOnInsertAndUpdateTimestampType
 
NowOnInsertTimestampType - Class in org.mentabean.type
 
NowOnInsertTimestampType() - Constructor for class org.mentabean.type.NowOnInsertTimestampType
 
NowOnUpdateTimestampType - Class in org.mentabean.type
 
NowOnUpdateTimestampType() - Constructor for class org.mentabean.type.NowOnUpdateTimestampType
 
nullable(boolean) - Method in class org.mentabean.type.BigDecimalType
 
nullable(boolean) - Method in class org.mentabean.type.BooleanIntType
 
nullable(boolean) - Method in class org.mentabean.type.BooleanStringType
 
nullable(boolean) - Method in class org.mentabean.type.DateType
 
nullable(boolean) - Method in class org.mentabean.type.DoubleType
 
nullable(boolean) - Method in class org.mentabean.type.EnumIdType
 
nullable(boolean) - Method in class org.mentabean.type.EnumValueType
 
nullable(boolean) - Method in class org.mentabean.type.FloatType
 
nullable(boolean) - Method in class org.mentabean.type.IntegerType
 
nullable(boolean) - Method in class org.mentabean.type.LongType
 
nullable(boolean) - Method in class org.mentabean.type.NowOnInsertAndUpdateTimestampType
 
nullable(boolean) - Method in class org.mentabean.type.NowOnInsertTimestampType
 
nullable(boolean) - Method in class org.mentabean.type.NowOnUpdateTimestampType
 
nullable(boolean) - Method in class org.mentabean.type.StringType
 
nullable(boolean) - Method in class org.mentabean.type.TimestampType
 
nullable(boolean) - Method in class org.mentabean.type.TimeType
 

O

OracleBeanSession - Class in org.mentabean.jdbc
When using limit, Oracle will NOT sort first before limiting, so a trick must be used.
OracleBeanSession(BeanManager, Connection) - Constructor for class org.mentabean.jdbc.OracleBeanSession
 
OrderBy - Class in org.mentabean.util
 
OrderBy() - Constructor for class org.mentabean.util.OrderBy
 
OrderBy.SortOrder - Enum in org.mentabean.util
 
orderByAsc(String) - Method in class org.mentabean.util.OrderBy
 
orderByAsc(Object) - Method in class org.mentabean.util.OrderBy
 
orderByAsc(Object) - Static method in class org.mentabean.util.SQLUtils
 
orderByDesc(String) - Method in class org.mentabean.util.OrderBy
 
orderByDesc(Object) - Method in class org.mentabean.util.OrderBy
 
orderByDesc(Object) - Static method in class org.mentabean.util.SQLUtils
 
org.mentabean - package org.mentabean
 
org.mentabean.jdbc - package org.mentabean.jdbc
 
org.mentabean.type - package org.mentabean.type
 
org.mentabean.util - package org.mentabean.util
 

P

pk(String, DBType<? extends Object>) - Method in class org.mentabean.BeanConfig
Add a bean property that is the primary key in the database.
pk(Object, DBType<? extends Object>) - Method in class org.mentabean.BeanConfig
 
pk(String, String, DBType<? extends Object>) - Method in class org.mentabean.BeanConfig
Add a property that is the primary key in the database.
pk(Object, String, DBType<? extends Object>) - Method in class org.mentabean.BeanConfig
 
pks() - Method in class org.mentabean.BeanConfig
Return an iterator with the DBFields for the PK configured for this bean.
populateBean(ResultSet, Object) - Method in interface org.mentabean.BeanSession
 
populateBean(ResultSet, Object, Object...) - Method in interface org.mentabean.BeanSession
 
populateBean(ResultSet, Object, String) - Method in interface org.mentabean.BeanSession
 
populateBean(ResultSet, Object, String, Object...) - Method in interface org.mentabean.BeanSession
 
populateBean(ResultSet, Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Populate a bean (insert all its properties) from the results in a result set, based on the bean configuration.
populateBean(ResultSet, Object, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
populateBean(ResultSet, Object, String) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Same as populateBean, but use a table prefix before fetching the values from the result set.
populateBean(ResultSet, Object, String, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
populateBeanMinus(ResultSet, Object, Object...) - Method in interface org.mentabean.BeanSession
 
populateBeanMinus(ResultSet, Object, String, Object...) - Method in interface org.mentabean.BeanSession
 
populateBeanMinus(ResultSet, Object, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Same as populateBean, but exclude some fields when populating.
populateBeanMinus(ResultSet, Object, String, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Same as populateBean, but exclude some fields when populating and use a table prefix in front of the field names.
PostgreSQLBeanSession - Class in org.mentabean.jdbc
Now in PostgreSQL is 'current_timestamp'.
PostgreSQLBeanSession(BeanManager, Connection) - Constructor for class org.mentabean.jdbc.PostgreSQLBeanSession
 
PREFIX_SEPARATOR - Static variable in class org.mentabean.util.InjectionUtils
The character used to separate the prefix from the value name when you are using the getObject method with a prefix.
prepare(Connection, String, Object...) - Static method in class org.mentabean.util.SQLUtils
Prepare a statement (PreparedStatement) with the query and set the parameters.
prepareForInjection(Class<? extends Object>, Map<String, Object>, Map<String, Object>) - Static method in class org.mentabean.util.InjectionUtils
 
prepareInsertQuery(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
PropertiesProxy - Class in org.mentabean.util
 
PropertiesProxy(String) - Constructor for class org.mentabean.util.PropertiesProxy
 

R

remove(String) - Method in class org.mentabean.BeanConfig
 
remove(Object) - Method in class org.mentabean.BeanConfig
 
rootCause - Variable in exception org.mentabean.BeanException
 
runScript(Reader) - Method in class org.mentabean.util.ScriptRunner
Runs an SQL script (read in using the Reader parameter).

S

sb - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession.QueryAndValues
 
ScriptRunner - Class in org.mentabean.util
Tool to run database scripts.
ScriptRunner(Connection, boolean, boolean) - Constructor for class org.mentabean.util.ScriptRunner
Default constructor.
ScriptRunner(Connection) - Constructor for class org.mentabean.util.ScriptRunner
 
seq(String) - Method in class org.mentabean.BeanConfig
Alias for method addSequence
SEQUENCE - Static variable in class org.mentabean.DBTypes
 
SequenceType - Class in org.mentabean.type
 
SequenceType() - Constructor for class org.mentabean.type.SequenceType
 
setBeanSession(BeanSession) - Method in class org.mentabean.AbstractMentaBean
You can inject the bean session through the setter.
setDelimiter(String, boolean) - Method in class org.mentabean.util.ScriptRunner
 
setErrorLogWriter(PrintWriter) - Method in class org.mentabean.util.ScriptRunner
Setter for errorLogWriter property.
setLogWriter(PrintWriter) - Method in class org.mentabean.util.ScriptRunner
Setter for logWriter property.
shouldConvertToNull(Object, Class<? extends Object>) - Static method in class org.mentabean.util.InjectionUtils
 
size(int) - Method in class org.mentabean.type.BooleanStringType
 
size(int) - Method in class org.mentabean.type.EnumValueType
 
size(int) - Method in class org.mentabean.type.StringType
 
SizedType - Interface in org.mentabean.type
 
SQLUtils - Class in org.mentabean.util
 
SQLUtils() - Constructor for class org.mentabean.util.SQLUtils
 
STRING - Static variable in class org.mentabean.DBTypes
 
StringType - Class in org.mentabean.type
 
StringType() - Constructor for class org.mentabean.type.StringType
 

T

TIME - Static variable in class org.mentabean.DBTypes
 
TIMESTAMP - Static variable in class org.mentabean.DBTypes
 
TimestampType - Class in org.mentabean.type
 
TimestampType() - Constructor for class org.mentabean.type.TimestampType
 
TimeType - Class in org.mentabean.type
 
TimeType() - Constructor for class org.mentabean.type.TimeType
 
toString() - Method in class org.mentabean.BeanConfig
 
toString() - Method in class org.mentabean.DBField
 
toString() - Method in class org.mentabean.type.AutoIncrementType
 
toString() - Method in class org.mentabean.type.AutoTimestampType
 
toString() - Method in class org.mentabean.type.BigDecimalType
 
toString() - Method in class org.mentabean.type.BooleanIntType
 
toString() - Method in class org.mentabean.type.BooleanStringType
 
toString() - Method in class org.mentabean.type.DateType
 
toString() - Method in class org.mentabean.type.DoubleType
 
toString() - Method in class org.mentabean.type.EnumIdType
 
toString() - Method in class org.mentabean.type.EnumValueType
 
toString() - Method in class org.mentabean.type.FloatType
 
toString() - Method in class org.mentabean.type.IntegerType
 
toString() - Method in class org.mentabean.type.LongType
 
toString() - Method in class org.mentabean.type.SequenceType
 
toString() - Method in class org.mentabean.type.StringType
 
toString() - Method in class org.mentabean.type.TimestampType
 
toString() - Method in class org.mentabean.type.TimeType
 
toString() - Method in class org.mentabean.util.Limit
 
toString() - Method in class org.mentabean.util.OrderBy
 
tryToConvert(Object, Class<? extends Object>) - Static method in class org.mentabean.util.InjectionUtils
 
tryToConvert(Object, Class<?>, boolean) - Static method in class org.mentabean.util.InjectionUtils
 

U

update() - Method in class org.mentabean.AbstractMentaBean
 
update(Object) - Method in interface org.mentabean.BeanSession
Update the bean in the database.
update(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
update() - Method in interface org.mentabean.MentaBean
Attempt to update the bean properties in the database.
updateAll() - Method in class org.mentabean.AbstractMentaBean
 
updateAll(Object) - Method in interface org.mentabean.BeanSession
Same as update(bean) but here you can turn off the default dynamic update behavior and force all bean properties to be updated regardless whether they have been modified or not.
updateAll(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
updateAll() - Method in interface org.mentabean.MentaBean
Attempt to update ALL the bean properties in the database, not just the ones that have been changed.

V

value - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession.Value
 
valueOf(String) - Static method in enum org.mentabean.type.EnumIdType.Test
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.mentabean.util.OrderBy.SortOrder
Returns the enum constant of this type with the specified name.
values - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession.QueryAndValues
 
values(String, String) - Static method in class org.mentabean.type.BooleanStringType
 
values() - Static method in enum org.mentabean.type.EnumIdType.Test
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.mentabean.util.OrderBy.SortOrder
Returns an array containing the constants of this enum type, in the order they are declared.

A B C D E F G H I L M N O P R S T U V

Copyright © 2012. All Rights Reserved.