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

A

AbstractBetween - Class in org.mentabean.sql.conditions
 
AbstractBetween(Param, Param) - Constructor for class org.mentabean.sql.conditions.AbstractBetween
 
AbstractBetween(Object, Object) - Constructor for class org.mentabean.sql.conditions.AbstractBetween
 
abstractInstance(String, Class<? extends Object>) - Method in class org.mentabean.BeanConfig
Configures a class that should be used instead of property type to create instances through Class.newInstance() method.
abstractInstance(E, Class<? extends E>) - Method in class org.mentabean.BeanConfig
Configures a class that should be used instead of property type to create instances through Class.newInstance() method.
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.
add(QueryBuilder.Alias<?>, Object...) - Method in class org.mentabean.jdbc.QueryBuilder.GroupBy
 
add(QueryBuilder.Alias<?>...) - Method in class org.mentabean.jdbc.QueryBuilder.GroupBy
 
add(Sentence...) - Method in class org.mentabean.jdbc.QueryBuilder.Select
Add the sentences in SELECT clause
add(QueryBuilder.Alias<?>...) - Method in class org.mentabean.jdbc.QueryBuilder.Select
Add the alias columns in SELECT clause
Add - Class in org.mentabean.sql.operations
 
Add() - Constructor for class org.mentabean.sql.operations.Add
 
addBeanConfig(BeanConfig) - Method in class org.mentabean.BeanManager
Add a bean configuration.
addParam(Param) - Method in class org.mentabean.sql.conditions.In
 
addParam(Param) - Method in class org.mentabean.sql.functions.Coalesce
 
addParam(Param) - Method in class org.mentabean.sql.Parametrizable
 
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.
addTrigger(TriggerListener) - Method in interface org.mentabean.BeanSession
Add a TriggerListener in this session.
addTrigger(TriggerListener) - Method in class org.mentabean.event.TriggerDispatcher
 
addTrigger(TriggerListener) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
afterDelete(TriggerEvent) - Method in class org.mentabean.event.TriggerAdapter
 
afterDelete(TriggerEvent) - Method in interface org.mentabean.event.TriggerListener
 
afterInsert(TriggerEvent) - Method in class org.mentabean.event.TriggerAdapter
 
afterInsert(TriggerEvent) - Method in interface org.mentabean.event.TriggerListener
 
afterUpdate(TriggerEvent) - Method in class org.mentabean.event.TriggerAdapter
 
afterUpdate(TriggerEvent) - Method in interface org.mentabean.event.TriggerListener
 
aliasTo(Class<? extends T>, String) - Method in class org.mentabean.jdbc.QueryBuilder
Creates an alias to be used in this QueryBuilder
aliasTo(Class<? extends T>) - Method in class org.mentabean.jdbc.QueryBuilder
Creates an alias to be used in this QueryBuilder.
all(Class<? extends Object>) - Static method in class org.mentabean.util.FindProperties
 
and() - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseHaving
 
and() - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseWhere
 
and(Object) - Method in class org.mentabean.jdbc.QueryBuilder.Equals
 
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
 
append(Param) - Method in interface org.mentabean.jdbc.QueryBuilder.Appendable
Appends the parameter directly in query
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseHaving
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseWhere
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.From
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.GroupBy
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Having
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.InitClauseHaving
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.InitClauseWhere
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Limit
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Offset
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Order
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Ordering
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Select
 
append(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Where
 
append(Object) - Method in class org.mentabean.util.SQLBuilder
 
append(String) - Method in class org.mentabean.util.SQLBuilder
 
append(StringBuffer) - Method in class org.mentabean.util.SQLBuilder
 
append(CharSequence) - Method in class org.mentabean.util.SQLBuilder
 
append(CharSequence, int, int) - Method in class org.mentabean.util.SQLBuilder
 
append(char[]) - Method in class org.mentabean.util.SQLBuilder
 
append(char[], int, int) - Method in class org.mentabean.util.SQLBuilder
 
append(boolean) - Method in class org.mentabean.util.SQLBuilder
 
append(char) - Method in class org.mentabean.util.SQLBuilder
 
append(int) - Method in class org.mentabean.util.SQLBuilder
 
append(long) - Method in class org.mentabean.util.SQLBuilder
 
append(float) - Method in class org.mentabean.util.SQLBuilder
 
append(double) - Method in class org.mentabean.util.SQLBuilder
 
appendCodePoint(int) - Method in class org.mentabean.util.SQLBuilder
 
asc(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Order
 
asc(QueryBuilder.Alias<?>, Object...) - Method in class org.mentabean.jdbc.QueryBuilder.Order
 
asc(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Ordering
 
asc(QueryBuilder.Alias<?>, Object...) - Method in class org.mentabean.jdbc.QueryBuilder.Ordering
 
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
 
Avg - Class in org.mentabean.sql.functions
 
Avg(Param) - Constructor for class org.mentabean.sql.functions.Avg
 

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.
beanClass() - Method in class org.mentabean.sql.TableAlias
 
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
 
beforeDelete(TriggerEvent) - Method in class org.mentabean.event.TriggerAdapter
 
beforeDelete(TriggerEvent) - Method in interface org.mentabean.event.TriggerListener
 
beforeInsert(TriggerEvent) - Method in class org.mentabean.event.TriggerAdapter
 
beforeInsert(TriggerEvent) - Method in interface org.mentabean.event.TriggerListener
 
beforeUpdate(TriggerEvent) - Method in class org.mentabean.event.TriggerAdapter
 
beforeUpdate(TriggerEvent) - Method in interface org.mentabean.event.TriggerListener
 
begin - Variable in class org.mentabean.sql.conditions.AbstractBetween
 
beginIndex(Param) - Method in class org.mentabean.sql.functions.Substring
 
beginTransaction(Connection) - Static method in class org.mentabean.util.SQLUtils
 
Between - Class in org.mentabean.sql.conditions
 
Between(Param, Param) - Constructor for class org.mentabean.sql.conditions.Between
 
Between(Object, Object) - Constructor for class org.mentabean.sql.conditions.Between
 
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, Boolean) - Method in class org.mentabean.type.BooleanType
 
bindToStmt(PreparedStatement, int, byte[]) - Method in class org.mentabean.type.ByteArrayType
 
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, Object) - Method in class org.mentabean.type.GenericType
 
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
 
BOOLEAN - Static variable in class org.mentabean.DBTypes
 
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
 
BooleanType - Class in org.mentabean.type
 
BooleanType() - Constructor for class org.mentabean.type.BooleanType
 
build() - Method in class org.mentabean.sql.conditions.Between
 
build() - Method in class org.mentabean.sql.conditions.Equals
 
build() - Method in class org.mentabean.sql.conditions.NotBetween
 
build() - Method in class org.mentabean.sql.conditions.NotEquals
 
build() - Method in class org.mentabean.sql.conditions.SimpleComparison
 
build() - Method in interface org.mentabean.sql.HasParams
 
build() - Method in class org.mentabean.sql.operations.Operation
 
build() - Method in class org.mentabean.sql.Parametrizable
 
build() - Method in class org.mentabean.sql.Sentence
 
buildQuery() - Method in interface org.mentabean.BeanSession
Builds a new QueryBuilder so it's possible to create fluent custom SQL queries
buildQuery() - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
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
 
buildSelectImpl(Class<? extends Object>, String, String[], String[], boolean, boolean) - 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.
buildTableName(Class<? extends Object>) - Method in interface org.mentabean.BeanSession
Returns the table name configured for the given class
buildTableName(Class<? extends Object>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
BYTE_ARRAY - Static variable in class org.mentabean.DBTypes
 
ByteArrayType - Class in org.mentabean.type
ByteArrayType that uses a get/setBytes from ResultSet/PreparedStatement respectively
ByteArrayType() - Constructor for class org.mentabean.type.ByteArrayType
 

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.BooleanType
 
canBeNull() - Method in class org.mentabean.type.ByteArrayType
 
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.GenericType
 
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
 
capacity() - Method in class org.mentabean.util.SQLBuilder
 
charAt(int) - Method in class org.mentabean.util.SQLBuilder
 
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
 
clause(Param) - Method in interface org.mentabean.jdbc.QueryBuilder.HasInitClause
Insert the param as a clause in query (same of clauseIf(true, param)).
clause(Function) - Method in interface org.mentabean.jdbc.QueryBuilder.HasInitClause
Insert the function as a clause in query (same of clauseIf(true, function)).
clause(QueryBuilder.Alias<?>, Object) - Method in interface org.mentabean.jdbc.QueryBuilder.HasInitClause
Insert the field as a clause in query (same of clauseIf(true, alias, property)).
clause(Function) - Method in class org.mentabean.jdbc.QueryBuilder.Having
 
clause(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Having
 
clause(QueryBuilder.Alias<?>, Object) - Method in class org.mentabean.jdbc.QueryBuilder.Having
 
clause(Function) - Method in class org.mentabean.jdbc.QueryBuilder.Where
 
clause(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Where
 
clause(QueryBuilder.Alias<?>, Object) - Method in class org.mentabean.jdbc.QueryBuilder.Where
 
clauseIf(boolean, Param) - Method in interface org.mentabean.jdbc.QueryBuilder.HasInitClause
Insert the param as a clause in query if and only if the flag clauseIf is true
clauseIf(boolean, Function) - Method in interface org.mentabean.jdbc.QueryBuilder.HasInitClause
Insert the function as a clause in query if and only if the flag clauseIf is true
clauseIf(boolean, QueryBuilder.Alias<?>, Object) - Method in interface org.mentabean.jdbc.QueryBuilder.HasInitClause
Insert the field as a clause in query if and only if the flag clauseIf is true
clauseIf(boolean, Param) - Method in class org.mentabean.jdbc.QueryBuilder.Having
 
clauseIf(boolean, Function) - Method in class org.mentabean.jdbc.QueryBuilder.Having
 
clauseIf(boolean, QueryBuilder.Alias<?>, Object) - Method in class org.mentabean.jdbc.QueryBuilder.Having
 
clauseIf(boolean, Param) - Method in class org.mentabean.jdbc.QueryBuilder.Where
 
clauseIf(boolean, Function) - Method in class org.mentabean.jdbc.QueryBuilder.Where
 
clauseIf(boolean, QueryBuilder.Alias<?>, Object) - Method in class org.mentabean.jdbc.QueryBuilder.Where
 
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(Connection) - Static method in class org.mentabean.util.SQLUtils
 
close(ResultSet, Statement, Connection) - Static method in class org.mentabean.util.SQLUtils
 
closePar() - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseHaving
Insert a right parenthesis ')' in query
closePar() - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseWhere
Insert a right parenthesis ')' in query
Coalesce - Class in org.mentabean.sql.functions
 
Coalesce() - Constructor for class org.mentabean.sql.functions.Coalesce
 
codePointAt(int) - Method in class org.mentabean.util.SQLBuilder
 
codePointBefore(int) - Method in class org.mentabean.util.SQLBuilder
 
codePointCount(int, int) - Method in class org.mentabean.util.SQLBuilder
 
column(Object) - Method in class org.mentabean.sql.TableAlias
Return the db column name for this bean property.
column(Object) - Method in class org.mentabean.util.SQLBuilder
 
columns() - Method in class org.mentabean.sql.TableAlias
Return the db columns of a select statements.
commitTransaction(Connection) - Static method in class org.mentabean.util.SQLUtils
 
comparisonSignal() - Method in class org.mentabean.sql.conditions.GreaterThan
 
comparisonSignal() - Method in class org.mentabean.sql.conditions.GreaterThanEquals
 
comparisonSignal() - Method in class org.mentabean.sql.conditions.LessThan
 
comparisonSignal() - Method in class org.mentabean.sql.conditions.LessThanEquals
 
comparisonSignal() - Method in class org.mentabean.sql.conditions.Like
 
comparisonSignal() - Method in class org.mentabean.sql.conditions.NotLike
 
comparisonSignal() - Method in class org.mentabean.sql.conditions.SimpleComparison
 
condition(String) - Method in interface org.mentabean.jdbc.QueryBuilder.HasEndClause
 
condition(Condition) - Method in interface org.mentabean.jdbc.QueryBuilder.HasEndClause
 
condition(String) - Method in class org.mentabean.jdbc.QueryBuilder.InitClauseHaving
 
condition(Condition) - Method in class org.mentabean.jdbc.QueryBuilder.InitClauseHaving
 
condition(String) - Method in class org.mentabean.jdbc.QueryBuilder.InitClauseWhere
 
condition(Condition) - Method in class org.mentabean.jdbc.QueryBuilder.InitClauseWhere
 
Condition - Interface in org.mentabean.sql
 
conn - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession
 
Count - Class in org.mentabean.sql.functions
 
Count(Param) - Constructor for class org.mentabean.sql.functions.Count
 
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
 
createBasicInstance(E) - Method in interface org.mentabean.BeanSession
Creates an single instance only with primary keys according the given object
createBasicInstance(E) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
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
 
createTableAlias(Class<? extends E>) - Method in interface org.mentabean.BeanSession
Return a table alias for this bean class
createTableAlias(Class<? extends E>, String) - Method in interface org.mentabean.BeanSession
Return a table alias for this bean class with a prefix.
createTableAlias(Class<? extends E>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
createTableAlias(Class<? extends E>, String) - 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
 
DEBUG_NATIVE - Static variable in class org.mentabean.jdbc.AnsiSQLBeanSession
 
debugNativeSql(boolean) - Static method in class org.mentabean.jdbc.AnsiSQLBeanSession
Turn SQL native queries debugging on and off.
debugSql(boolean) - Static method in class org.mentabean.jdbc.AnsiSQLBeanSession
Turn SQL debugging on and off.
DEFAULT_SIZE - Static variable in interface org.mentabean.type.SizedType
 
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.
delete(int, int) - Method in class org.mentabean.util.SQLBuilder
 
deleteCharAt(int) - Method in class org.mentabean.util.SQLBuilder
 
desc(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Order
 
desc(QueryBuilder.Alias<?>, Object...) - Method in class org.mentabean.jdbc.QueryBuilder.Order
 
desc(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Ordering
 
desc(QueryBuilder.Alias<?>, Object...) - Method in class org.mentabean.jdbc.QueryBuilder.Ordering
 
dispatch(TriggerDispatcher.Type, TriggerEvent) - Method in class org.mentabean.event.TriggerDispatcher
 
dispatchAfterDelete(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
dispatchAfterInsert(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
dispatchAfterUpdate(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
dispatchAll(List<TriggerListener>, TriggerEvent) - Method in enum org.mentabean.event.TriggerDispatcher.Type
 
dispatchBeforeDelete(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
dispatchBeforeInsert(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
dispatchBeforeUpdate(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
dispatcher - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession
 
dispatchTrigger(TriggerDispatcher.Type, Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Dispatch all triggers from actual BeanSession and respective BeanConfig.
Divide - Class in org.mentabean.sql.operations
 
Divide() - Constructor for class org.mentabean.sql.operations.Divide
 
DOUBLE - Static variable in class org.mentabean.DBTypes
 
DoubleType - Class in org.mentabean.type
 
DoubleType() - Constructor for class org.mentabean.type.DoubleType
 
dropTable(Class<? extends Object>) - Method in interface org.mentabean.BeanSession
 
dropTable(Class<? extends Object>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 

E

end - Variable in class org.mentabean.sql.conditions.AbstractBetween
 
endIndex(Param) - Method in class org.mentabean.sql.functions.Substring
 
ensureCapacity(int) - Method in class org.mentabean.util.SQLBuilder
 
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
 
eq(QueryBuilder.Alias<?>, Object) - Method in class org.mentabean.jdbc.QueryBuilder.OnEquals
Equals the given property of alias to the property defined in on method

E.g.: builder.select(a, b)
.from(a)
.join(b)
.on(b.pxy().getSomething())
.eq(a, a.pxy().getSomething())
...
eqProperty(Object) - Method in class org.mentabean.jdbc.QueryBuilder.Equals
Defines the property of bean specified as alias on OnEquals#eq(Alias, Object) method that will receive the value from alias specified on From#join(Alias) method

E.g.: builder.select(user, city)
.from(user)
.join(city)
.on(city.pxy().getId())
.eq(user, user.pxy().getCity().getId())
.inProperty(user.pxy().getCity())
...
eqPropertyForcingInstance(Object) - Method in class org.mentabean.jdbc.QueryBuilder.Equals
Defines the property of bean specified as alias on OnEquals#eq(Alias, Object) method that will receive the value from alias specified on From#join(Alias) method and force the creation of a new instance if bean property is not set.
equals(Object) - Method in class org.mentabean.DBField
 
Equals - Class in org.mentabean.sql.conditions
 
Equals(Object) - Constructor for class org.mentabean.sql.conditions.Equals
 
Equals(Param) - Constructor for class org.mentabean.sql.conditions.Equals
 
equals(Object) - Method in class org.mentabean.type.BooleanStringType
 
equals(Object) - Method in class org.mentabean.util.SQLBuilder
 
executeQuery() - Method in class org.mentabean.jdbc.QueryBuilder.Query
Executes the query returning a List of beans declared in FROM clause.
executeScript(Connection, String, String) - Static method in class org.mentabean.util.SQLUtils
 
executeSentence() - Method in class org.mentabean.jdbc.QueryBuilder.Query
Executes the query returning a single value according returnType of sentence in query.

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
 
FOREIGN_KEY_VIOLATED_STATE - Static variable in class org.mentabean.util.SQLUtils
 
from(Class<? extends Object>) - Static method in class org.mentabean.DBTypes
 
from(QueryBuilder.Alias<?>) - Method in class org.mentabean.jdbc.QueryBuilder.Select
Creates the FROM keyword for given alias appending the table name in SQL query.
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
 
fromProperty(Object) - Method in class org.mentabean.sql.Sentence
Specify the property of FROM alias that will be populated with this sentence
Function - Interface in org.mentabean.sql
 

G

GENERIC - Static variable in class org.mentabean.DBTypes
 
GenericType - Class in org.mentabean.type
Generic type that uses a get/setObject from ResultSet/PreparedStatement respectively

Note this class must NOT be used to create tables.
GenericType() - Constructor for class org.mentabean.type.GenericType
 
get(String) - Method in interface org.mentabean.util.InjectionUtils.Provider
 
getAbstractProperty(String) - Method in class org.mentabean.BeanConfig
 
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.BooleanType
 
getAnsiType() - Method in class org.mentabean.type.ByteArrayType
 
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.GenericType
 
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.
getBean() - Method in class org.mentabean.event.TriggerEvent
 
getBeanClass() - Method in class org.mentabean.BeanConfig
Return the bean class.
getBeanClass() - Static method in class org.mentabean.util.PropertiesProxy
 
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
 
getChars(int, int, char[], int) - Method in class org.mentabean.util.SQLBuilder
 
getConfigFor(Class<?>) - Method in interface org.mentabean.BeanSession
Returns the BeanConfig object from the given bean class
getConfigFor(Class<? extends Object>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
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
 
getDatabaseType(DBType<?>) - Method in class org.mentabean.jdbc.PostgreSQLBeanSession
 
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
 
getDispatcher() - Method in class org.mentabean.BeanConfig
 
getField(String) - Method in class org.mentabean.BeanConfig
 
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.BooleanType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.BooleanType
 
getFromResultSet(ResultSet, int) - Method in class org.mentabean.type.ByteArrayType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.ByteArrayType
 
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.GenericType
 
getFromResultSet(ResultSet, String) - Method in class org.mentabean.type.GenericType
 
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
 
getName() - Method in class org.mentabean.sql.Sentence
 
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
 
getParams() - Method in class org.mentabean.sql.conditions.AbstractBetween
 
getParams() - Method in class org.mentabean.sql.conditions.Equals
 
getParams() - Method in class org.mentabean.sql.conditions.SimpleComparison
 
getParams() - Method in class org.mentabean.sql.functions.Lower
 
getParams() - Method in class org.mentabean.sql.functions.Nullif
 
getParams() - Method in class org.mentabean.sql.functions.Substring
 
getParams() - Method in interface org.mentabean.sql.HasParams
 
getParams() - Method in class org.mentabean.sql.operations.Operation
 
getParams() - Method in class org.mentabean.sql.Parametrizable
 
getParams() - Method in class org.mentabean.sql.Sentence
 
getParamValues() - Method in class org.mentabean.jdbc.QueryBuilder.Query
 
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() - Method in class org.mentabean.sql.Sentence
 
getProperty(Object, String) - Static method in class org.mentabean.util.InjectionUtils
Extract the value of a property of a bean!
getPropertyBean(Object, String, boolean) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Get a value from target through reflection and tries to create a new instance if create parameter is true
getPropertyName() - Static method in class org.mentabean.util.PropertiesProxy
 
getPropertyNames() - Static method in class org.mentabean.util.PropertiesProxy
 
getReturnType() - Method in class org.mentabean.sql.Sentence
 
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.
getSession() - Method in class org.mentabean.event.TriggerEvent
 
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
 
getSQL() - Method in class org.mentabean.jdbc.QueryBuilder.Query
Returns the SQL generated by QueryBuilder
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.BooleanType
 
getTypeClass() - Method in class org.mentabean.type.ByteArrayType
 
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.GenericType
 
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
 
getValue(ResultSet) - Method in class org.mentabean.sql.Sentence
 
getValueFromBean(Object, String) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Get a value from a bean through reflection.
getValueFromBean(Object, String, Method) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Get a value from a bean through reflection.
getValueFromResultSet(ResultSet, String) - Method in class org.mentabean.jdbc.QueryBuilder.Query
 
GreaterThan - Class in org.mentabean.sql.conditions
 
GreaterThan(Param) - Constructor for class org.mentabean.sql.conditions.GreaterThan
 
GreaterThan(Object) - Constructor for class org.mentabean.sql.conditions.GreaterThan
 
GreaterThanEquals - Class in org.mentabean.sql.conditions
 
GreaterThanEquals(Param) - Constructor for class org.mentabean.sql.conditions.GreaterThanEquals
 
GreaterThanEquals(Object) - Constructor for class org.mentabean.sql.conditions.GreaterThanEquals
 
groupBy(QueryBuilder.Alias<?>...) - Method in interface org.mentabean.jdbc.QueryBuilder.CanGroupBy
 
groupBy() - Method in interface org.mentabean.jdbc.QueryBuilder.CanGroupBy
Group by all aliases fields used in SELECT clause
groupBy(QueryBuilder.Alias<?>...) - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseWhere
 
groupBy() - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseWhere
 
groupBy(QueryBuilder.Alias<?>...) - Method in class org.mentabean.jdbc.QueryBuilder.From
 
groupBy() - Method in class org.mentabean.jdbc.QueryBuilder.From
 
groupByProp(QueryBuilder.Alias<?>, Object...) - Method in interface org.mentabean.jdbc.QueryBuilder.CanGroupBy
 
groupByProp(QueryBuilder.Alias<?>, Object...) - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseWhere
 
groupByProp(QueryBuilder.Alias<?>, Object...) - Method in class org.mentabean.jdbc.QueryBuilder.From
 

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
 
hashCode() - Method in class org.mentabean.util.SQLBuilder
 
HasParams - Interface in org.mentabean.sql
 
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
 
having() - Method in class org.mentabean.jdbc.QueryBuilder.GroupBy
 

I

in(QueryBuilder.Alias<?>) - Method in class org.mentabean.jdbc.QueryBuilder.UsingPK
 
In - Class in org.mentabean.sql.conditions
 
In(Param) - Constructor for class org.mentabean.sql.conditions.In
 
indexOf(String) - Method in class org.mentabean.util.SQLBuilder
 
indexOf(String, int) - Method in class org.mentabean.util.SQLBuilder
 
init(String) - Method in class org.mentabean.jdbc.QueryBuilder.EndClause
 
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>) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Inject a value in a bean through reflection.
inProperty(Object) - Method in class org.mentabean.jdbc.QueryBuilder.PopulateUsing
Defines the property of foreign bean (specified on UsingPK#in(Alias) method) that will receive the value from alias PK (specified on On#pkOf(Alias) method)

E.g.: builder.select(user, city)
.from(user)
.join(city)
.pkOf(city).in(user)
.inProperty(user.pxy().getCity())
...
inPropertyForcingInstance(Object) - Method in class org.mentabean.jdbc.QueryBuilder.PopulateUsing
Defines the property of foreign bean (specified on UsingPK#in(Alias) method) that will receive the value from alias PK (specified on On#pkOf(Alias) method) and force the creation of a new instance if bean property is not set.
insert() - Method in class org.mentabean.AbstractMentaBean
 
INSERT - Static variable in interface org.mentabean.BeanSession
 
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.
insert(int, char[], int, int) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, Object) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, String) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, char[]) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, CharSequence) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, CharSequence, int, int) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, boolean) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, char) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, int) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, long) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, float) - Method in class org.mentabean.util.SQLBuilder
 
insert(int, double) - Method in class org.mentabean.util.SQLBuilder
 
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
 
isVarcharUnlimitedSupported() - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Each dialect can override this to return true if the VARCHAR type supports unlimited size
isVarcharUnlimitedSupported() - Method in class org.mentabean.jdbc.H2BeanSession
 
isVarcharUnlimitedSupported() - Method in class org.mentabean.jdbc.PostgreSQLBeanSession
 

J

join(QueryBuilder.Alias<?>) - Method in class org.mentabean.jdbc.QueryBuilder.From
Creates a JOIN sentence using the given alias

E.g.: builder.select(...)
.from(a)
.join(b)
...
join(QueryBuilder.Alias<?>, String) - Method in class org.mentabean.jdbc.QueryBuilder.From
Creates a join using the given join type

L

lastIndexOf(String) - Method in class org.mentabean.util.SQLBuilder
 
lastIndexOf(String, int) - Method in class org.mentabean.util.SQLBuilder
 
leftJoin(QueryBuilder.Alias<?>) - Method in class org.mentabean.jdbc.QueryBuilder.From
Creates a LEFT JOIN sentence using the given alias

E.g.: builder.select(...)
.from(a)
.leftJoin(b)
...
Length - Class in org.mentabean.sql.functions
 
Length(Param) - Constructor for class org.mentabean.sql.functions.Length
 
length() - Method in class org.mentabean.util.SQLBuilder
 
LessThan - Class in org.mentabean.sql.conditions
 
LessThan(Param) - Constructor for class org.mentabean.sql.conditions.LessThan
 
LessThan(Object) - Constructor for class org.mentabean.sql.conditions.LessThan
 
LessThanEquals - Class in org.mentabean.sql.conditions
 
LessThanEquals(Param) - Constructor for class org.mentabean.sql.conditions.LessThanEquals
 
LessThanEquals(Object) - Constructor for class org.mentabean.sql.conditions.LessThanEquals
 
Like - Class in org.mentabean.sql.conditions
 
Like(Param) - Constructor for class org.mentabean.sql.conditions.Like
 
Like(Object) - Constructor for class org.mentabean.sql.conditions.Like
 
lim(int) - Static method in class org.mentabean.util.SQLUtils
 
limit(Param) - Method in interface org.mentabean.jdbc.QueryBuilder.CanLimit
 
limit(Number) - Method in interface org.mentabean.jdbc.QueryBuilder.CanLimit
 
limit(Param) - Method in class org.mentabean.jdbc.QueryBuilder.EndClause
 
limit(Number) - Method in class org.mentabean.jdbc.QueryBuilder.EndClause
 
limit(Param) - Method in class org.mentabean.jdbc.QueryBuilder.From
 
limit(Number) - Method in class org.mentabean.jdbc.QueryBuilder.From
 
limit(Param) - Method in class org.mentabean.jdbc.QueryBuilder.GroupBy
 
limit(Number) - Method in class org.mentabean.jdbc.QueryBuilder.GroupBy
 
limit(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Ordering
 
limit(Number) - Method in class org.mentabean.jdbc.QueryBuilder.Ordering
 
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
 
Lower - Class in org.mentabean.sql.functions
 
Lower(Param) - Constructor for class org.mentabean.sql.functions.Lower
 

M

main(String[]) - Static method in class org.mentabean.type.EnumIdType
 
Max - Class in org.mentabean.sql.functions
 
Max(Param) - Constructor for class org.mentabean.sql.functions.Max
 
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.
Min - Class in org.mentabean.sql.functions
 
Min(Param) - Constructor for class org.mentabean.sql.functions.Min
 
Multiply - Class in org.mentabean.sql.operations
 
Multiply() - Constructor for class org.mentabean.sql.operations.Multiply
 
MySQLBeanSession - Class in org.mentabean.jdbc
MySQL only supports auto-increment.
MySQLBeanSession(BeanManager, Connection) - Constructor for class org.mentabean.jdbc.MySQLBeanSession
 

N

name() - Method in class org.mentabean.sql.conditions.In
 
name() - Method in class org.mentabean.sql.conditions.NotIn
 
name() - Method in class org.mentabean.sql.functions.Avg
 
name() - Method in class org.mentabean.sql.functions.Coalesce
 
name() - Method in class org.mentabean.sql.functions.Count
 
name() - Method in class org.mentabean.sql.functions.Length
 
name() - Method in class org.mentabean.sql.functions.Lower
 
name() - Method in class org.mentabean.sql.functions.Max
 
name() - Method in class org.mentabean.sql.functions.Min
 
name() - Method in class org.mentabean.sql.functions.Nullif
 
name() - Method in class org.mentabean.sql.functions.Substring
 
name() - Method in class org.mentabean.sql.functions.Sum
 
name() - Method in class org.mentabean.sql.functions.Upper
 
name() - Method in class org.mentabean.sql.Parametrizable
 
name(String) - Method in class org.mentabean.sql.Sentence
 
NotBetween - Class in org.mentabean.sql.conditions
 
NotBetween(Param, Param) - Constructor for class org.mentabean.sql.conditions.NotBetween
 
NotBetween(Object, Object) - Constructor for class org.mentabean.sql.conditions.NotBetween
 
NotEquals - Class in org.mentabean.sql.conditions
 
NotEquals(Param) - Constructor for class org.mentabean.sql.conditions.NotEquals
 
NotEquals(Object) - Constructor for class org.mentabean.sql.conditions.NotEquals
 
NotIn - Class in org.mentabean.sql.conditions
 
NotIn(Param) - Constructor for class org.mentabean.sql.conditions.NotIn
 
NotLike - Class in org.mentabean.sql.conditions
 
NotLike(Param) - Constructor for class org.mentabean.sql.conditions.NotLike
 
NotLike(Object) - Constructor for class org.mentabean.sql.conditions.NotLike
 
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.BooleanType
 
nullable(boolean) - Method in class org.mentabean.type.ByteArrayType
 
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.GenericType
 
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
 
Nullif - Class in org.mentabean.sql.functions
 
Nullif(Param, Param) - Constructor for class org.mentabean.sql.functions.Nullif
 
Nullif(Object, Object) - Constructor for class org.mentabean.sql.functions.Nullif
 

O

offset(Integer) - Method in class org.mentabean.jdbc.QueryBuilder.Limit
 
offset(Param) - Method in class org.mentabean.jdbc.QueryBuilder.Limit
 
offsetByCodePoints(int, int) - Method in class org.mentabean.util.SQLBuilder
 
on(Object) - Method in class org.mentabean.jdbc.QueryBuilder.On
 
openPar() - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseHaving
Insert a left parenthesis '(' in query
openPar() - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseWhere
Insert a left parenthesis '(' in query
openPar() - Method in class org.mentabean.jdbc.QueryBuilder.Having
Insert a left parenthesis '(' in query
openPar() - Method in class org.mentabean.jdbc.QueryBuilder.Where
Insert a left parenthesis '(' in query
Operation - Class in org.mentabean.sql.operations
 
Operation() - Constructor for class org.mentabean.sql.operations.Operation
 
operationSignal() - Method in class org.mentabean.sql.operations.Add
 
operationSignal() - Method in class org.mentabean.sql.operations.Divide
 
operationSignal() - Method in class org.mentabean.sql.operations.Multiply
 
operationSignal() - Method in class org.mentabean.sql.operations.Operation
 
operationSignal() - Method in class org.mentabean.sql.operations.Subtract
 
or() - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseHaving
 
or() - Method in class org.mentabean.jdbc.QueryBuilder.EndClauseWhere
 
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() - Method in interface org.mentabean.jdbc.QueryBuilder.CanOrder
 
orderBy() - Method in class org.mentabean.jdbc.QueryBuilder.EndClause
 
orderBy() - Method in class org.mentabean.jdbc.QueryBuilder.From
 
orderBy() - Method in class org.mentabean.jdbc.QueryBuilder.GroupBy
 
orderBy() - Method in class org.mentabean.jdbc.QueryBuilder.Limit
 
orderBy() - Method in class org.mentabean.jdbc.QueryBuilder.Offset
 
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.event - package org.mentabean.event
 
org.mentabean.jdbc - package org.mentabean.jdbc
 
org.mentabean.sql - package org.mentabean.sql
 
org.mentabean.sql.conditions - package org.mentabean.sql.conditions
 
org.mentabean.sql.functions - package org.mentabean.sql.functions
 
org.mentabean.sql.operations - package org.mentabean.sql.operations
 
org.mentabean.sql.param - package org.mentabean.sql.param
 
org.mentabean.type - package org.mentabean.type
 
org.mentabean.util - package org.mentabean.util
 

P

param - Variable in class org.mentabean.sql.conditions.Equals
 
param(Param) - Method in class org.mentabean.sql.operations.Operation
 
param(Function) - Method in class org.mentabean.sql.operations.Operation
 
param(Object) - Method in class org.mentabean.sql.operations.Operation
 
param(QueryBuilder.Query) - Method in class org.mentabean.sql.operations.Operation
 
param(QueryBuilder.Alias<?>, Object) - Method in class org.mentabean.sql.operations.Operation
 
Param - Interface in org.mentabean.sql.param
 
Parametrizable - Class in org.mentabean.sql
 
Parametrizable() - Constructor for class org.mentabean.sql.Parametrizable
 
ParamField - Class in org.mentabean.sql.param
 
ParamField(QueryBuilder.Alias<?>, Object) - Constructor for class org.mentabean.sql.param.ParamField
 
ParamFunction - Class in org.mentabean.sql.param
 
ParamFunction(Function) - Constructor for class org.mentabean.sql.param.ParamFunction
 
paramInQuery() - Method in interface org.mentabean.sql.param.Param
Represents the parameters in query.
paramInQuery() - Method in class org.mentabean.sql.param.ParamField
 
paramInQuery() - Method in class org.mentabean.sql.param.ParamFunction
 
paramInQuery() - Method in class org.mentabean.sql.param.ParamNative
 
paramInQuery() - Method in class org.mentabean.sql.param.ParamSubQuery
 
paramInQuery() - Method in class org.mentabean.sql.param.ParamValue
 
ParamNative - Class in org.mentabean.sql.param
 
ParamNative(Object) - Constructor for class org.mentabean.sql.param.ParamNative
 
params - Variable in class org.mentabean.sql.Parametrizable
 
ParamSubQuery - Class in org.mentabean.sql.param
 
ParamSubQuery(QueryBuilder.Query) - Constructor for class org.mentabean.sql.param.ParamSubQuery
 
ParamValue - Class in org.mentabean.sql.param
 
ParamValue(Object) - Constructor for class org.mentabean.sql.param.ParamValue
 
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
 
pkOf(QueryBuilder.Alias<?>) - Method in class org.mentabean.jdbc.QueryBuilder.On
 
pkProperty(Object) - Method in class org.mentabean.jdbc.QueryBuilder.PopulateUsing
Defines the property of primary bean (specified on On#pkOf(Alias) method) that will receive the value from foreign alias (aliasFK) (specified on UsingPK#in(Alias) method)

Note: The pkProperty is generally used in 1x1 relationship.
pkPropertyForcingInstance(Object) - Method in class org.mentabean.jdbc.QueryBuilder.PopulateUsing
Defines the property of primary bean (specified on On#pkOf(Alias) method) that will receive the value from foreign alias (aliasFK) (specified on UsingPK#in(Alias) method) and force the creation of a new instance if bean property is not set.
pks() - Method in class org.mentabean.BeanConfig
Return an iterator with the DBFields for the PK configured for this bean.
populateAll(ResultSet, T) - Method in class org.mentabean.jdbc.QueryBuilder.Alias
 
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
 
populateBean(ResultSet, T) - Method in class org.mentabean.jdbc.QueryBuilder.Alias
Populates the bean according to ResultSet
populateBeanImpl(ResultSet, Object, String, String[], String[], boolean) - 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() - Method in class org.mentabean.sql.TableAlias
 
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(Object...) - Method in class org.mentabean.jdbc.QueryBuilder.Query
Returns a PreparedStatement setting all given parameters in order.
prepare() - Method in class org.mentabean.jdbc.QueryBuilder.Query
Prepares a statement with paramValues to execute the query manually.
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
 
propertyToColumn(Class<? extends Object>, Object, String) - Method in interface org.mentabean.BeanSession
 
propertyToColumn(Class<? extends Object>, Object) - Method in interface org.mentabean.BeanSession
 
propertyToColumn(BeanConfig, Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Returns a database column name for a bean attribute.
propertyToColumn(Class<? extends Object>, Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
propertyToColumn(Class<? extends Object>, Object, String) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
pxy() - Method in class org.mentabean.jdbc.QueryBuilder.Alias
Returns a proxy for bean class
pxy() - Method in class org.mentabean.sql.TableAlias
 

Q

QueryBuilder - Class in org.mentabean.jdbc
Fluent QueryBuilder useful to create SQL queries
QueryBuilder(AnsiSQLBeanSession) - Constructor for class org.mentabean.jdbc.QueryBuilder
 
QueryBuilder.Alias<T> - Class in org.mentabean.jdbc
 
QueryBuilder.Appendable<T> - Interface in org.mentabean.jdbc
 
QueryBuilder.CanGroupBy - Interface in org.mentabean.jdbc
 
QueryBuilder.CanLimit - Interface in org.mentabean.jdbc
 
QueryBuilder.CanOrder - Interface in org.mentabean.jdbc
 
QueryBuilder.EndClause - Class in org.mentabean.jdbc
 
QueryBuilder.EndClause() - Constructor for class org.mentabean.jdbc.QueryBuilder.EndClause
 
QueryBuilder.EndClauseHaving - Class in org.mentabean.jdbc
 
QueryBuilder.EndClauseWhere - Class in org.mentabean.jdbc
 
QueryBuilder.Equals - Class in org.mentabean.jdbc
 
QueryBuilder.From - Class in org.mentabean.jdbc
 
QueryBuilder.GroupBy - Class in org.mentabean.jdbc
 
QueryBuilder.HasEndClause<T extends QueryBuilder.EndClause> - Interface in org.mentabean.jdbc
 
QueryBuilder.HasInitClause<T extends QueryBuilder.InitClause> - Interface in org.mentabean.jdbc
 
QueryBuilder.Having - Class in org.mentabean.jdbc
 
QueryBuilder.InitClause - Class in org.mentabean.jdbc
 
QueryBuilder.InitClauseHaving - Class in org.mentabean.jdbc
 
QueryBuilder.InitClauseWhere - Class in org.mentabean.jdbc
 
QueryBuilder.Limit - Class in org.mentabean.jdbc
 
QueryBuilder.Offset - Class in org.mentabean.jdbc
 
QueryBuilder.Offset(Number) - Constructor for class org.mentabean.jdbc.QueryBuilder.Offset
 
QueryBuilder.Offset(Param) - Constructor for class org.mentabean.jdbc.QueryBuilder.Offset
 
QueryBuilder.On - Class in org.mentabean.jdbc
Class representing a 'pos-join' operation
QueryBuilder.OnEquals - Class in org.mentabean.jdbc
 
QueryBuilder.Order - Class in org.mentabean.jdbc
 
QueryBuilder.Ordering - Class in org.mentabean.jdbc
 
QueryBuilder.Ordering() - Constructor for class org.mentabean.jdbc.QueryBuilder.Ordering
 
QueryBuilder.PopulateUsing - Class in org.mentabean.jdbc
 
QueryBuilder.PopulateUsing(QueryBuilder.Alias<?>, QueryBuilder.Alias<?>) - Constructor for class org.mentabean.jdbc.QueryBuilder.PopulateUsing
 
QueryBuilder.Query - Class in org.mentabean.jdbc
Represents a query ready to execute
QueryBuilder.Select - Class in org.mentabean.jdbc
 
QueryBuilder.UsingPK - Class in org.mentabean.jdbc
 
QueryBuilder.Where - Class in org.mentabean.jdbc
 

R

remove(String) - Method in class org.mentabean.BeanConfig
 
remove(Object) - Method in class org.mentabean.BeanConfig
 
remove(TriggerListener) - Method in class org.mentabean.BeanConfig
 
removeTrigger(TriggerListener) - Method in interface org.mentabean.BeanSession
Removes the TriggerListener from session
removeTrigger(TriggerListener) - Method in class org.mentabean.event.TriggerDispatcher
 
removeTrigger(TriggerListener) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
replace(int, int, String) - Method in class org.mentabean.util.SQLBuilder
 
returnType(DBType<?>) - Method in class org.mentabean.sql.Sentence
 
reverse() - Method in class org.mentabean.util.SQLBuilder
 
rightJoin(QueryBuilder.Alias<?>) - Method in class org.mentabean.jdbc.QueryBuilder.From
Creates a RIGHT JOIN sentence using the given alias

E.g.: builder.select(...)
.from(a)
.rightJoin(b)
...
rollbackTransaction(Connection) - Static method in class org.mentabean.util.SQLUtils
 
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

save(Object...) - Method in class org.mentabean.AbstractMentaBean
 
save(Object, Object...) - Method in interface org.mentabean.BeanSession
Tries to update or insert a bean using the update method.
save(Object, Object...) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
save(Object, boolean, String[]) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
Update or insert a bean into database.
save(Object...) - Method in interface org.mentabean.MentaBean
Attempt to save a bean in the database.
saveAll(Object) - Method in interface org.mentabean.BeanSession
Tries to update or insert a bean object into database.
saveAll(Object) - Method in class org.mentabean.jdbc.AnsiSQLBeanSession
 
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
 
select(QueryBuilder.Alias<?>...) - Method in class org.mentabean.jdbc.QueryBuilder
Builds an initial SELECT statement with given aliases
select(Sentence...) - Method in class org.mentabean.jdbc.QueryBuilder
Builds an initial SELECT statement with given sentences
selectFrom(QueryBuilder.Alias<?>) - Method in class org.mentabean.jdbc.QueryBuilder
Builds an initial SELECT alias FROM alias statement.
Same as select(alias).from(alias)
Sentence - Class in org.mentabean.sql
 
Sentence(Param) - Constructor for class org.mentabean.sql.Sentence
 
Sentence(QueryBuilder.Query) - Constructor for class org.mentabean.sql.Sentence
 
Sentence(Function) - Constructor for class org.mentabean.sql.Sentence
 
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.
setCharAt(int, char) - Method in class org.mentabean.util.SQLBuilder
 
setDelimiter(String, boolean) - Method in class org.mentabean.util.ScriptRunner
 
setErrorLogWriter(PrintWriter) - Method in class org.mentabean.util.ScriptRunner
Setter for errorLogWriter property.
setLength(int) - Method in class org.mentabean.util.SQLBuilder
 
setLogWriter(PrintWriter) - Method in class org.mentabean.util.ScriptRunner
Setter for logWriter property.
setReturnMinus(Object...) - Method in class org.mentabean.jdbc.QueryBuilder.Alias
Defines the properties that will NOT return.
setReturns(Object...) - Method in class org.mentabean.jdbc.QueryBuilder.Alias
Defines the properties that will return.
shouldConvertToNull(Object, Class<? extends Object>) - Static method in class org.mentabean.util.InjectionUtils
 
SimpleComparison - Class in org.mentabean.sql.conditions
 
SimpleComparison(Param) - Constructor for class org.mentabean.sql.conditions.SimpleComparison
 
SimpleComparison(Object) - Constructor for class org.mentabean.sql.conditions.SimpleComparison
 
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
 
SQLBuilder - Class in org.mentabean.util
 
SQLBuilder() - Constructor for class org.mentabean.util.SQLBuilder
 
SQLBuilder(int) - Constructor for class org.mentabean.util.SQLBuilder
 
SQLBuilder(TableAlias<?>...) - Constructor for class org.mentabean.util.SQLBuilder
 
SQLBuilder(int, TableAlias<?>...) - Constructor for class org.mentabean.util.SQLBuilder
 
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
 
subQuery() - Method in class org.mentabean.jdbc.QueryBuilder
Creates a new QueryBuilder with the same session.
subSequence(int, int) - Method in class org.mentabean.util.SQLBuilder
 
Substring - Class in org.mentabean.sql.functions
 
Substring(Param) - Constructor for class org.mentabean.sql.functions.Substring
 
substring(int) - Method in class org.mentabean.util.SQLBuilder
 
substring(int, int) - Method in class org.mentabean.util.SQLBuilder
 
Subtract - Class in org.mentabean.sql.operations
 
Subtract() - Constructor for class org.mentabean.sql.operations.Subtract
 
Sum - Class in org.mentabean.sql.functions
 
Sum(Param) - Constructor for class org.mentabean.sql.functions.Sum
 

T

TableAlias<E> - Class in org.mentabean.sql
This class encapsulates a proxy to help construct queries that are fully refactorable.
TableAlias(BeanSession, BeanConfig, Class<? extends E>) - Constructor for class org.mentabean.sql.TableAlias
 
TableAlias(BeanSession, BeanConfig, Class<? extends E>, String) - Constructor for class org.mentabean.sql.TableAlias
 
tableName() - Method in class org.mentabean.sql.TableAlias
Return the table name.
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
 
toColumn(Object) - Method in class org.mentabean.jdbc.QueryBuilder.Alias
Convert the given property to database column
toString() - Method in class org.mentabean.BeanConfig
 
toString() - Method in class org.mentabean.DBField
 
toString() - Method in class org.mentabean.jdbc.QueryBuilder.Alias
 
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.ByteArrayType
 
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.GenericType
 
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
 
toString() - Method in class org.mentabean.util.SQLBuilder
 
trigger(TriggerListener) - Method in class org.mentabean.BeanConfig
 
TriggerAdapter - Class in org.mentabean.event
 
TriggerAdapter() - Constructor for class org.mentabean.event.TriggerAdapter
 
TriggerDispatcher - Class in org.mentabean.event
 
TriggerDispatcher() - Constructor for class org.mentabean.event.TriggerDispatcher
 
TriggerDispatcher.Type - Enum in org.mentabean.event
 
TriggerEvent - Class in org.mentabean.event
 
TriggerEvent(BeanSession, Object) - Constructor for class org.mentabean.event.TriggerEvent
 
TriggerListener - Interface in org.mentabean.event
 
trimToSize() - Method in class org.mentabean.util.SQLBuilder
 
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

UNIQUE_KEY_VIOLATED_STATE - Static variable in class org.mentabean.util.SQLUtils
 
update() - Method in class org.mentabean.AbstractMentaBean
 
UPDATE - Static variable in interface org.mentabean.BeanSession
 
update(Object, Object...) - Method in interface org.mentabean.BeanSession
Update the bean in the database.
update(Object, 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.
Upper - Class in org.mentabean.sql.functions
 
Upper(Param) - Constructor for class org.mentabean.sql.functions.Upper
 

V

value - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession.Value
 
valueOf(String) - Static method in enum org.mentabean.event.TriggerDispatcher.Type
Returns the enum constant of this type with the specified name.
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() - Static method in enum org.mentabean.event.TriggerDispatcher.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values - Variable in class org.mentabean.jdbc.AnsiSQLBeanSession.QueryAndValues
 
values() - Method in interface org.mentabean.sql.param.Param
The parameter's values
values() - Method in class org.mentabean.sql.param.ParamField
 
values() - Method in class org.mentabean.sql.param.ParamFunction
 
values() - Method in class org.mentabean.sql.param.ParamNative
 
values() - Method in class org.mentabean.sql.param.ParamSubQuery
 
values() - Method in class org.mentabean.sql.param.ParamValue
 
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.

W

where() - Method in class org.mentabean.jdbc.QueryBuilder.From
 

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

Copyright © 2013. All Rights Reserved.