Uses of Class
org.javalite.activejdbc.Model

Packages that use Model
org.javalite.activejdbc   
org.javalite.activejdbc.validation   
 

Uses of Model in org.javalite.activejdbc
 

Classes in org.javalite.activejdbc with type parameters of type Model
 class CallbackAdapter<T extends Model>
           
 interface CallbackListener<T extends Model>
           
 class LazyList<T extends Model>
          While this class is public, it is never instantiated directly.
 class MetaModel<T extends Model,E extends Association>
           
 interface ModelListener<T extends Model>
           
 class SuperLazyList<T extends Model>
          The purpose of this class is to provide toMaps() method in cases of eager loading of dependencies.
 

Methods in org.javalite.activejdbc with type parameters of type Model
<T extends Model>
void
Model.copyTo(T other)
          Copies all attribute values (except for ID, created_at and updated_at) from this instance to the other.
static
<T extends Model>
T
Model.create(Object... namesAndValues)
          This is a convenience method to create a model instance already initialized with values.
static
<T extends Model>
T
Model.createIt(Object... namesAndValues)
          This is a convenience method to create(Object...).
static
<T extends Model>
LazyList<T>
Model.find(String subquery, Object... params)
          Synonym of where(String, Object...)
static
<T extends Model>
LazyList<T>
Model.findAll()
          This method returns all records from this table.
static
<T extends Model>
T
Model.findById(Object id)
           
static
<T extends Model>
LazyList<T>
Model.findBySQL(String fullQuery, Object... params)
          Free form query finder.
static
<T extends Model>
T
Model.findFirst(String subQuery, Object... params)
          Synonym of first(String, Object...).
static
<T extends Model>
T
Model.first(String subQuery, Object... params)
          Returns a first result for this condition.
<T extends Model>
LazyList<T>
Model.get(Class<T> clazz, String query, Object... params)
          Provides a list of child models in one to many, many to many and polymorphic associations, but in addition also allows to filter this list by criteria.
<T extends Model>
LazyList<T>
Model.getAll(Class<T> clazz)
          This methods supports one to many, many to many relationships as well as polymorphic associations.
<T extends Model>
LazyList<T>
Paginator.getPage(int pageNumber)
          This method will return a list of records for a specific page.
<E extends Model>
LazyList<E>
LazyList.include(Class<? extends Model>... classes)
          Use this method includes associated objects.
<E extends Model>
LazyList<E>
SuperLazyList.include(Class<? extends Model>... classes)
           
<E extends Model>
LazyList<E>
LazyList.limit(long limit)
          This method limits the number of results in the resultset.
<E extends Model>
LazyList<E>
SuperLazyList.limit(long limit)
           
<E extends Model>
LazyList<E>
LazyList.load()
          This method exists to force immediate load from DB.
<E extends Model>
LazyList<E>
SuperLazyList.load()
           
<E extends Model>
LazyList<E>
LazyList.offset(long offset)
          This method sets an offset of a resultset.
<E extends Model>
LazyList<E>
SuperLazyList.offset(long offset)
           
<E extends Model>
LazyList<E>
LazyList.orderBy(String orderBy)
          Use this method to order results by a column.
<E extends Model>
LazyList<E>
SuperLazyList.orderBy(String orderBy)
           
<T extends Model>
T
Model.parent(Class<T> parentClass)
          Returns parent of this model, assuming that this table represents a child.
<T extends Model>
T
Model.setId(Object id)
          Convenience method, sets ID value on this model, equivalent to set(getIdName(), id).
static
<T extends Model>
LazyList<T>
Model.where(String subquery, Object... params)
          Finder method for DB queries based on table represented by this model.
 

Methods in org.javalite.activejdbc that return Model
 Model Model.set(Object... namesAndValues)
          This is a convenience method to set multiple values to a model.
 Model Model.set(String attribute, Object value)
          Sets a value of an attribute.
 Model Model.setBigDecimal(String attribute, Object value)
          Converts object to BigDecimal when setting.
 Model Model.setBoolean(String attribute, Object value)
          Sets to true if the value is any numeric type and has a value of 1, or if string type has a value of 'y', 't', 'true' or 'yes'.
 Model Model.setDate(String attribute, Object value)
          Converts to java.sql.Date.
 Model Model.setDouble(String attribute, Object value)
          Converts object to Double when setting.
 Model Model.setFloat(String attribute, Object value)
          Converts object to Float when setting.
 Model Model.setInteger(String attribute, Object value)
          Converts object to Integer when setting.
 Model Model.setLong(String attribute, Object value)
          Converts object to Long when setting.
 Model Model.setString(String attribute, Object value)
          Converts object to string when setting.
 Model Model.setTimestamp(String attribute, Object value)
          Converts object to java.sql.Timestamp when setting.
 

Methods in org.javalite.activejdbc that return types with arguments of type Model
protected  Class<? extends Model> Registry.getModelClass(String table, boolean suppressException)
          Returns model class for a table name, null if not found.
protected  List<Class<? extends Model>> ModelFinder.getModelsForDb(String dbName)
           
 

Methods in org.javalite.activejdbc with parameters of type Model
 void Model.add(Model child)
          Adds a new child dependency.
 void Model.copyFrom(Model other)
          Copies all attribute values (except for ID, created_at and updated_at) from this instance to the other.
 void Model.remove(Model child)
          Removes associated child from this instance.
protected  void Model.setCachedParent(Model parent)
           
 void Model.setParent(Model parent)
          Sets a parent on this instance.
 void Model.setParents(Model... parents)
          Sets multiple parents on this instance.
 

Method parameters in org.javalite.activejdbc with type arguments of type Model
 void Registry.addValidators(Class<? extends Model> daClass, List<? extends Validator> modelValidators)
          Deprecated. 
static boolean Model.belongsTo(Class<? extends Model> targetClass)
           
protected static String MetaModel.getDbName(Class<? extends Model> modelClass)
           
 MetaModel Registry.getMetaModel(Class<? extends Model> modelClass)
           
protected  String Registry.getTableName(Class<? extends Model> modelClass)
           
static List<Validator> Model.getValidators(Class<Model> daClass)
           
 boolean MetaModel.isAssociatedTo(Class<? extends Model> targetModelClass)
          Checks if there is association to the target model class.,
 void Registry.removeValidator(Class<Model> daClass, Validator validator)
           
protected  void Model.setChildren(Class childClass, List<Model> children)
           
 

Constructors in org.javalite.activejdbc with parameters of type Model
FrozenException(Model model)
           
 

Constructor parameters in org.javalite.activejdbc with type arguments of type Model
Paginator(Class<? extends Model> modelClass, int pageSize, String query, Object... params)
          Paginator is created with parameters to jump to chunks of result sets (pages).
 

Uses of Model in org.javalite.activejdbc.validation
 

Classes in org.javalite.activejdbc.validation with type parameters of type Model
 interface Validator<T extends Model>
           
 class ValidatorAdapter<T extends Model>
          Subclass this class to create custom validators.
 

Methods in org.javalite.activejdbc.validation with parameters of type Model
 void DateConverter.convert(Model m)
           
 void TimestampConverter.convert(Model m)
           
 void NumericValidator.validate(Model m)
           
 void RangeValidator.validate(Model m)
           
 void RegexpValidator.validate(Model m)
           
 void Converter.validate(Model m)
           
 void AttributePresenceValidator.validate(Model m)
           
 

Method parameters in org.javalite.activejdbc.validation with type arguments of type Model
static ValidationBuilder ValidationHelper.addDateConverter(Class<Model> modelClass, String attributeName, String format)
          Deprecated. 
static ValidationBuilder ValidationHelper.addEmailValidator(Class<Model> modelClass, String attribute)
          Deprecated. 
static NumericValidationBuilder ValidationHelper.addNumericalityValidators(Class<Model> modelClass, String... attributes)
          Deprecated. this method is deprecated and will be removed in future versions. D
static ValidationBuilder ValidationHelper.addPresensevalidators(Class<Model> modelClass, String... attributes)
          Deprecated. 
static ValidationBuilder ValidationHelper.addRangevalidator(Class<Model> modelClass, String attribute, Number min, Number max)
          Deprecated. 
static ValidationBuilder ValidationHelper.addRegexpValidator(Class<Model> modelClass, String attribute, String pattern)
          Deprecated. 
static ValidationBuilder ValidationHelper.addTimestampConverter(Class<Model> modelClass, String attributeName, String format)
          Deprecated. 
static ValidationBuilder ValidationHelper.addValidator(Class<Model> modelClass, Validator validator)
          Deprecated. 
 

Constructors in org.javalite.activejdbc.validation with parameters of type Model
ValidationException(Model m)
           
 



Copyright © 2013. All Rights Reserved.