Uses of Interface
org.jminor.framework.domain.Entity

Packages that use Entity
org.jminor.framework.client.model   
org.jminor.framework.client.model.event   
org.jminor.framework.client.ui   
org.jminor.framework.db   
org.jminor.framework.domain   
org.jminor.framework.server   
org.jminor.framework.tools   
org.jminor.framework.tools.testing   
 

Uses of Entity in org.jminor.framework.client.model
 

Methods in org.jminor.framework.client.model that return Entity
 Entity DefaultEntityEditModel.getDefaultValueMap()
          
protected  Entity DefaultEntityEditModel.getEntity()
           
 Entity EntityComboBoxModel.getEntity(Entity.Key primaryKey)
           
 Entity DefaultEntityComboBoxModel.getEntity(Entity.Key primaryKey)
          
 Entity EntityTableModel.getEntityByPrimaryKey(Entity.Key primaryKey)
           
 Entity DefaultEntityTableModel.getEntityByPrimaryKey(Entity.Key primaryKey)
          
 Entity EntityEditModel.getEntityCopy()
           
 Entity DefaultEntityEditModel.getEntityCopy()
          
 Entity EntityEditModel.getEntityCopy(boolean includePrimaryKeyValues)
           
 Entity DefaultEntityEditModel.getEntityCopy(boolean includePrimaryKeyValues)
          
 Entity EntityEditModel.getForeignKeyValue(String foreignKeyPropertyID)
          Returns the value associated with the given propertyID assuming it is an Entity instance
 Entity DefaultEntityEditModel.getForeignKeyValue(String foreignKeyPropertyID)
          Returns the value associated with the given propertyID assuming it is an Entity instance
 Entity EntityComboBoxModel.getSelectedEntity()
           
 Entity DefaultEntityComboBoxModel.getSelectedEntity()
          
 

Methods in org.jminor.framework.client.model that return types with arguments of type Entity
 List<Entity> EntityEditModel.delete()
          Deletes the active entity
 List<Entity> DefaultEntityEditModel.delete()
          Deletes the active entity
 List<Entity> EntityEditModel.delete(List<Entity> entities)
          Deletes the given entities, returns silently on recieving an empty list
 List<Entity> DefaultEntityEditModel.delete(List<Entity> entities)
          Deletes the given entities, returns silently on recieving an empty list
protected  List<Entity> DefaultEntityEditModel.doUpdate(List<Entity> entities)
          Updates the given entities in the database
 List<Entity> EntityTableModel.getEntitiesByPrimaryKeys(List<Entity.Key> keys)
          Finds entities according to the values in keys
 List<Entity> DefaultEntityTableModel.getEntitiesByPrimaryKeys(List<Entity.Key> keys)
          Finds entities according to the values in keys
 Collection<Entity> EntityTableModel.getEntitiesByPropertyValues(Map<String,Object> values)
          Finds entities according to the values of propertyValues
 Collection<Entity> DefaultEntityTableModel.getEntitiesByPropertyValues(Map<String,Object> values)
          Finds entities according to the values of propertyValues
 Collection<Entity> EntityComboBoxModel.getForeignKeyFilterEntities(String foreignKeyPropertyID)
           
 Collection<Entity> DefaultEntityComboBoxModel.getForeignKeyFilterEntities(String foreignKeyPropertyID)
          
 List<Entity> EntityLookupModel.getSelectedEntities()
           
 List<Entity> DefaultEntityLookupModel.getSelectedEntities()
          
 Iterator<Entity> EntityTableModel.getSelectedEntitiesIterator()
          Returns an Iterator which iterates through the selected entities
 Iterator<Entity> DefaultEntityTableModel.getSelectedEntitiesIterator()
          Returns an Iterator which iterates through the selected entities
 Map<String,Collection<Entity>> EntityTableModel.getSelectionDependencies()
           
 Map<String,Collection<Entity>> DefaultEntityTableModel.getSelectionDependencies()
          
protected  List<Entity> DefaultEntityComboBoxModel.initializeContents()
          
 List<Entity> EntityLookupModel.performQuery()
          Performs a query based on the select criteria
 List<Entity> DefaultEntityLookupModel.performQuery()
          Performs a query based on the select criteria
protected  List<Entity> DefaultEntityTableModel.performQuery(Criteria<Property.ColumnProperty> criteria)
          Queries for the data used to populate this EntityTableModel when it is refreshed
protected  List<Entity> DefaultEntityComboBoxModel.performQuery(EntitySelectCriteria selectCriteria)
          Retrieves the entities to present in this EntityComboBoxModel
 List<Entity> EntityEditModel.update()
          Performs a update on the active entity
 List<Entity> DefaultEntityEditModel.update()
          Performs a update on the active entity
 List<Entity> EntityEditModel.update(List<Entity> entities)
          Updates the given Entities.
 List<Entity> DefaultEntityEditModel.update(List<Entity> entities)
          Updates the given Entities.
 

Methods in org.jminor.framework.client.model with parameters of type Entity
 boolean DefaultEntityTableSearchModel.include(Entity item)
          
 void EntityEditModel.setEntity(Entity entity)
          Sets the Entity instance to edit
 void DefaultEntityEditModel.setEntity(Entity entity)
          Sets the Entity instance to edit
 void EntityLookupModel.setSelectedEntity(Entity entity)
          Sets the given entity as the selected entity
 void DefaultEntityLookupModel.setSelectedEntity(Entity entity)
          Sets the given entity as the selected entity
 

Method parameters in org.jminor.framework.client.model with type arguments of type Entity
 List<Entity> EntityEditModel.delete(List<Entity> entities)
          Deletes the given entities, returns silently on recieving an empty list
 List<Entity> DefaultEntityEditModel.delete(List<Entity> entities)
          Deletes the given entities, returns silently on recieving an empty list
protected  void DefaultEntityEditModel.doDelete(List<Entity> entities)
          Deletes the given entities from the database
protected  List<Entity.Key> DefaultEntityEditModel.doInsert(List<Entity> entities)
          Inserts the given entities from the database
protected  List<Entity> DefaultEntityEditModel.doUpdate(List<Entity> entities)
          Updates the given entities in the database
protected  void DefaultEntityModel.handleInitialization(String masterEntityID, List<Entity> selectedMasterEntities)
           
 void EntityModel.initialize(String masterEntityID, List<Entity> selectedMasterEntities)
          Initializes this EntityModel according to the given master entities, sets the appropriate property value and filters the EntityTableModel
 void DefaultEntityModel.initialize(String masterEntityID, List<Entity> selectedMasterEntities)
          Initializes this EntityModel according to the given master entities, sets the appropriate property value and filters the EntityTableModel
 List<Entity.Key> EntityEditModel.insert(List<Entity> entities)
          Performs an insert on the given entities, returns silently on recieving an empty list
 List<Entity.Key> DefaultEntityEditModel.insert(List<Entity> entities)
          Performs an insert on the given entities, returns silently on recieving an empty list
 void EntityTableModel.replaceEntities(Collection<Entity> entities)
          Replaces the given entities in this table model
 void DefaultEntityTableModel.replaceEntities(Collection<Entity> entities)
          Replaces the given entities in this table model
 void EntityTableModel.replaceForeignKeyValues(String foreignKeyEntityID, Collection<Entity> newForeignKeyValues)
          For every entity in this table model, replaces the foreign key instance bearing the primary key with the corresponding entity from foreignKeyValues, useful when property values have been changed in the referenced entity that must be reflected in the table model.
 void EntityEditModel.replaceForeignKeyValues(String foreignKeyEntityID, Collection<Entity> newForeignKeyValues)
          For every field referencing the given foreign key values, replaces that foreign key instance with the corresponding entity from foreignKeyValues, useful when property values have been changed in the referenced entity that must be reflected in the edit model.
 void DefaultEntityTableModel.replaceForeignKeyValues(String foreignKeyEntityID, Collection<Entity> newForeignKeyValues)
          For every entity in this table model, replaces the foreign key instance bearing the primary key with the corresponding entity from foreignKeyValues, useful when property values have been changed in the referenced entity that must be reflected in the table model.
 void DefaultEntityEditModel.replaceForeignKeyValues(String foreignKeyEntityID, Collection<Entity> newForeignKeyValues)
          For every field referencing the given foreign key values, replaces that foreign key instance with the corresponding entity from foreignKeyValues, useful when property values have been changed in the referenced entity that must be reflected in the edit model.
 void EntityComboBoxModel.setForeignKeyFilterEntities(String foreignKeyPropertyID, Collection<Entity> entities)
          Filters this combo box model so that only entities referencing the given foreign key entities via the given foreign key property are shown.
 void DefaultEntityComboBoxModel.setForeignKeyFilterEntities(String foreignKeyPropertyID, Collection<Entity> entities)
          Filters this combo box model so that only entities referencing the given foreign key entities via the given foreign key property are shown.
 void EntityTableModel.setForeignKeySearchValues(String referencedEntityID, List<Entity> referenceEntities)
          Refreshes this table model according the the given values by finding the first foreign key property referencing the entity identified by referencedEntityID and setting referenceEntities as the criteria values.
 void DefaultEntityTableModel.setForeignKeySearchValues(String referencedEntityID, List<Entity> referenceEntities)
          Refreshes this table model according the the given values by finding the first foreign key property referencing the entity identified by referencedEntityID and setting referenceEntities as the criteria values.
 void EntityLookupModel.setSelectedEntities(List<Entity> entities)
          Sets the selected entities
 void DefaultEntityLookupModel.setSelectedEntities(List<Entity> entities)
          Sets the selected entities
 void EntityTableModel.update(List<Entity> entities)
          Updates the given Entities.
 List<Entity> EntityEditModel.update(List<Entity> entities)
          Updates the given Entities.
 void DefaultEntityTableModel.update(List<Entity> entities)
          Updates the given Entities.
 List<Entity> DefaultEntityEditModel.update(List<Entity> entities)
          Updates the given Entities.
 

Uses of Entity in org.jminor.framework.client.model.event
 

Methods in org.jminor.framework.client.model.event that return types with arguments of type Entity
 List<Entity> DeleteEvent.getDeletedEntities()
           
 List<Entity> UpdateEvent.getUpdatedEntities()
           
 

Constructor parameters in org.jminor.framework.client.model.event with type arguments of type Entity
DeleteEvent(Object source, List<Entity> deletedEntities)
          Instantiates a new DeleteEvent.
UpdateEvent(Object source, List<Entity> updatedEntities, boolean primaryKeyModified)
          Instantiates a new UpdateEvent.
 

Uses of Entity in org.jminor.framework.client.ui
 

Methods in org.jminor.framework.client.ui that return Entity
 Entity EntityLookupProvider.getValue()
          
 Entity EntityComboProvider.getValue()
          
 

Methods in org.jminor.framework.client.ui that return types with arguments of type Entity
static List<Entity> EntityUiUtil.selectEntities(EntityTableModel lookupModel, Window owner, boolean singleSelection, String dialogTitle)
           
static List<Entity> EntityUiUtil.selectEntities(EntityTableModel lookupModel, Window owner, boolean singleSelection, String dialogTitle, Dimension preferredSize)
           
 

Methods in org.jminor.framework.client.ui with parameters of type Entity
protected  InputProvider EntityTablePanel.createEntityInputProvider(Property.ForeignKeyProperty foreignKeyProperty, Entity currentValue, EntityEditModel editModel)
          Creates a InputProvider for the given foreign key property
 

Method parameters in org.jminor.framework.client.ui with type arguments of type Entity
static EntityTablePanel EntityTablePanel.createStaticEntityTablePanel(Collection<Entity> entities, EntityConnectionProvider connectionProvider)
          Creates a static entity table panel showing the given entities
static EntityTablePanel EntityTablePanel.createStaticEntityTablePanel(Collection<Entity> entities, EntityConnectionProvider connectionProvider, String entityID)
          Creates a static entity table panel showing the given entities
protected  InputProvider EntityTablePanel.getInputProvider(Property property, List<Entity> toUpdate)
          Provides value input components for multiple entity update, override to supply specific InputValueProvider implementations for properties.
 

Constructors in org.jminor.framework.client.ui with parameters of type Entity
EntityComboProvider(EntityComboBoxModel model, Entity initialValue)
          Instantiates a new input provider based on the EntityComboBoxModel class
EntityLookupProvider(EntityLookupModel lookupModel, Entity initalValue)
          Instantiates a new EntityLookupProvider
 

Uses of Entity in org.jminor.framework.db
 

Methods in org.jminor.framework.db that return Entity
 Entity EntityConnection.selectSingle(Entity.Key key)
          Selects a single entity by key
 Entity EntityConnection.selectSingle(EntitySelectCriteria criteria)
          Selects a single entity according to the specified criteria, throws a DatabaseException if the criteria results in more than one entity
 Entity EntityConnection.selectSingle(String entityID, String propertyID, Object value)
          Selects a single entity
 

Methods in org.jminor.framework.db that return types with arguments of type Entity
 List<Entity> EntityConnection.selectAll(String entityID)
          Selects all the entities of the given type
 Map<String,Collection<Entity>> EntityConnection.selectDependentEntities(Collection<Entity> entities)
          Returns the entities that depend on the given entities via foreign keys, mapped to corresponding entityIDs
 List<Entity> EntityConnection.selectMany(EntitySelectCriteria criteria)
          Selects entities according to the specified criteria
 List<Entity> EntityConnection.selectMany(List<Entity.Key> keys)
          Returns entities according to keys
 List<Entity> EntityConnection.selectMany(String entityID, String propertyID, Object... values)
          Selects entities according to one property (propertyID), using values as a condition
 List<Entity> EntityConnection.update(List<Entity> entities)
          Updates the given entities according to their properties.
 

Method parameters in org.jminor.framework.db with type arguments of type Entity
 List<Entity.Key> EntityConnection.insert(List<Entity> entities)
          Inserts the given entities, returning a list containing the primary keys of the inserted entities in the same order as they were received.
 Map<String,Collection<Entity>> EntityConnection.selectDependentEntities(Collection<Entity> entities)
          Returns the entities that depend on the given entities via foreign keys, mapped to corresponding entityIDs
 List<Entity> EntityConnection.update(List<Entity> entities)
          Updates the given entities according to their properties.
 

Uses of Entity in org.jminor.framework.domain
 

Methods in org.jminor.framework.domain that return Entity
static Entity EntityUtil.createEntity(String entityID, ValueProvider<Property,Object> valueProvider)
           
static Entity EntityUtil.createRandomEntity(String entityID, Map<String,Entity> referenceEntities)
           
static Entity Entities.entity(Entity.Key key)
          Creates a new Entity instance with the given primary key
static Entity Entities.entity(String entityID)
          Creates a new Entity instance with the given entityID
static Entity Entities.entity(String entityID, Map<String,Object> values, Map<String,Object> originalValues)
          Creates a new Entity instance with the given entityID and the given values/originalValues
 Entity Entity.getForeignKeyValue(String foreignKeyPropertyID)
           
static Entity EntityUtil.randomize(Entity entity, boolean includePrimaryKey, Map<String,Entity> referenceEntities)
           
 

Methods in org.jminor.framework.domain that return types with arguments of type Entity
static List<Entity> EntityUtil.copyEntities(List<Entity> entities)
           
static Deserializer<Entity> EntityUtil.getEntityDeserializer()
           
static Serializer<Entity> EntityUtil.getEntitySerializer()
           
static List<Entity> EntityUtil.getModifiedEntities(Collection<Entity> entities)
           
static Map<String,Collection<Entity>> EntityUtil.hashByEntityID(Collection<Entity> entities)
          Returns a Map containing the given entities hashed by their entityIDs
static Map<Entity.Key,Entity> EntityUtil.hashByPrimaryKey(List<Entity> entities)
          Hashes the given entities by their primary key
static Map<Object,Collection<Entity>> EntityUtil.hashByPropertyValue(String propertyID, Collection<Entity> entities)
          Returns a Map containing the given entities hashed by the value of the property with ID propertyID
 

Methods in org.jminor.framework.domain with parameters of type Entity
 int Entity.Comparator.compare(Entity entity, Entity entityToCompare)
          Compares the given entities.
 int Entity.Definition.compareTo(Entity entity, Entity entityToCompare)
          Compares the given entities.
 Color Entity.BackgroundColorProvider.getBackgroundColor(Entity entity, Property property)
           
 Color Entity.Definition.getBackgroundColor(Entity entity, Property property)
           
 void Entity.Validator.performNullValidation(Entity entity, Property property, int action)
          Performs a null validation on the given property
 void Entities.Validator.performNullValidation(Entity entity, Property property, int action)
          Performs a null validation on the given property
 void Entity.Validator.performRangeValidation(Entity entity, Property property)
          Performs a range validation on the given property
 void Entities.Validator.performRangeValidation(Entity entity, Property property)
          Performs a range validation on the given property
 boolean Entity.propertyValuesEqual(Entity entity)
           
static Entity EntityUtil.randomize(Entity entity, boolean includePrimaryKey, Map<String,Entity> referenceEntities)
           
 String Entity.Definition.toString(Entity entity)
           
 void Entity.Validator.validate(Entity entity, int action)
          Validates the values in the given entity
 void Entities.Validator.validate(Entity entity, int action)
          Validates the values in the given entity
 void Entity.Validator.validate(Entity entity, String propertyID, int action)
          Validates the given property in the given entity
 void Entities.Validator.validate(Entity entity, String propertyID, int action)
          Validates the given property in the given entity
 

Method parameters in org.jminor.framework.domain with type arguments of type Entity
static List<Entity> EntityUtil.copyEntities(List<Entity> entities)
           
static Entity EntityUtil.createRandomEntity(String entityID, Map<String,Entity> referenceEntities)
           
static Collection<Object> EntityUtil.getDistinctPropertyValues(String propertyID, List<Entity> entities)
          Returns a Collection containing the distinct values of propertyID from the given entities.
static List<Entity> EntityUtil.getModifiedEntities(Collection<Entity> entities)
           
static List<Entity.Key> EntityUtil.getPrimaryKeys(Collection<Entity> entities)
           
static List<Entity.Key> EntityUtil.getPrimaryKeys(Collection<Entity> entities, boolean originalValue)
           
static List<Object> EntityUtil.getPropertyValues(Property property, List<Entity> entities)
           
static List<Object> EntityUtil.getPropertyValues(Property property, List<Entity> entities, boolean includeNullValues)
           
static List<Object> EntityUtil.getPropertyValues(String propertyID, List<Entity> entities)
           
static List<Object> EntityUtil.getPropertyValues(String propertyID, List<Entity> entities, boolean includeNullValues)
           
static Object EntityUtil.getRandomValue(Property property, Map<String,Entity> referenceEntities)
           
static Map<String,Collection<Entity>> EntityUtil.hashByEntityID(Collection<Entity> entities)
          Returns a Map containing the given entities hashed by their entityIDs
static Map<Entity.Key,Entity> EntityUtil.hashByPrimaryKey(List<Entity> entities)
          Hashes the given entities by their primary key
static Map<Object,Collection<Entity>> EntityUtil.hashByPropertyValue(String propertyID, Collection<Entity> entities)
          Returns a Map containing the given entities hashed by the value of the property with ID propertyID
static boolean EntityUtil.isPrimaryKeyModified(Collection<Entity> entities)
           
static Entity EntityUtil.randomize(Entity entity, boolean includePrimaryKey, Map<String,Entity> referenceEntities)
           
static Map<Entity.Key,Object> EntityUtil.setPropertyValue(String propertyID, Object value, Collection<Entity> entities)
          Sets the value of the property with ID propertyID to value in the given entities
 void Entity.Validator.validate(Collection<Entity> entities, int action)
          Validates the given Entity objects.
 void Entities.Validator.validate(Collection<Entity> entities, int action)
          Validates the given Entity objects.
 

Uses of Entity in org.jminor.framework.server
 

Methods in org.jminor.framework.server that return Entity
 Entity RemoteEntityConnection.selectSingle(Entity.Key key)
          Selects a single entity by key
 Entity RemoteEntityConnection.selectSingle(EntitySelectCriteria criteria)
          Selects a single entity according to the specified criteria, throws a DatabaseException if the criteria results in more than one entity
 Entity RemoteEntityConnection.selectSingle(String entityID, String propertyID, Object value)
          Selects a single entity
 

Methods in org.jminor.framework.server that return types with arguments of type Entity
 List<Entity> RemoteEntityConnection.selectAll(String entityID)
          Selects all the entities of the given type
 Map<String,Collection<Entity>> RemoteEntityConnection.selectDependentEntities(Collection<Entity> entities)
          Returns the entities that depend on the given entities via foreign keys, mapped to corresponding entityIDs
 List<Entity> RemoteEntityConnection.selectMany(EntitySelectCriteria criteria)
          Selects entities according to the specified criteria
 List<Entity> RemoteEntityConnection.selectMany(List<Entity.Key> keys)
          Returns entities according to keys
 List<Entity> RemoteEntityConnection.selectMany(String entityID, String propertyID, Object... values)
          Selects entities according to one property (propertyID), using values as a condition
 List<Entity> RemoteEntityConnection.update(List<Entity> entities)
          Updates the given entities according to their properties.
 

Method parameters in org.jminor.framework.server with type arguments of type Entity
 List<Entity.Key> RemoteEntityConnection.insert(List<Entity> entities)
          Inserts the given entities, returning a list containing the primary keys of the inserted entities in the same order as they were received.
 Map<String,Collection<Entity>> RemoteEntityConnection.selectDependentEntities(Collection<Entity> entities)
          Returns the entities that depend on the given entities via foreign keys, mapped to corresponding entityIDs
 List<Entity> RemoteEntityConnection.update(List<Entity> entities)
          Updates the given entities according to their properties.
 

Uses of Entity in org.jminor.framework.tools
 

Method parameters in org.jminor.framework.tools with type arguments of type Entity
static void EntityDataUtil.batchInsert(EntityConnection connection, List<Entity> entities, List<Entity.Key> committed, int batchSize, ProgressReporter progressReporter)
          Inserts the given entities, performing a commit after each batchSize number of inserts.
 

Uses of Entity in org.jminor.framework.tools.testing
 

Methods in org.jminor.framework.tools.testing that return Entity
protected  Entity EntityTestUnit.getReferenceEntity(String entityID)
           
protected  Entity EntityTestUnit.initializeReferenceEntity(String entityID)
          Initializes a new Entity of the given type, by default this method creates a Entity filled with random values.
protected  Entity EntityTestUnit.initializeTestEntity(String entityID)
          This method should return an instance of the entity specified by entityID
 

Methods in org.jminor.framework.tools.testing with parameters of type Entity
protected  void EntityTestUnit.modifyEntity(Entity testEntity)
          This method should return testEntity in a modified state
protected  void EntityTestUnit.setReferenceEntity(String entityID, Entity entity)
          Maps the given reference entity to the given entityID