public class InferRelationshipsControllerBase extends CayenneController
| Modifier and Type | Field and Description |
|---|---|
protected InferredRelationship |
currentEntity |
protected DataMap |
dataMap |
protected List<DbEntity> |
entities |
protected Integer |
entityNumber |
protected int |
index |
protected List<InferredRelationship> |
inferredRelationships |
static String |
SELECTED_PROPERTY |
protected Set<InferredRelationship> |
selectedEntities |
protected ObjectNameGenerator |
strategy |
application, parent, propertyChangeSupport| Constructor and Description |
|---|
InferRelationshipsControllerBase(CayenneController parent,
DataMap dataMap) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createJoins() |
protected void |
createNames() |
protected void |
createRelationships(DbEntity entity) |
void |
createReversRelationship(DbEntity eSourse,
DbEntity eTarget) |
InferredRelationship |
getCurrentEntity() |
DataMap |
getDataMap() |
List |
getEntities() |
protected ExportedKey |
getExportedKey(String pkTable,
String pkColumn,
String fkTable,
String fkColumn) |
String |
getJoin(InferredRelationship irItem) |
protected DbAttribute |
getJoinAttribute(DbEntity sEntity,
DbEntity tEntity) |
List<InferredRelationship> |
getSelectedEntities() |
int |
getSelectedEntitiesSize() |
String |
getToMany(InferredRelationship irItem) |
Component |
getView()
Returns the vie wassociated with this Controller.
|
boolean |
isSelected() |
void |
setCurrentEntity(InferredRelationship currentEntity) |
void |
setNamingStrategy(ObjectNameGenerator namestr) |
void |
setRelationships() |
void |
setSelected(boolean selectedFlag) |
boolean |
updateSelection(org.apache.commons.collections.Predicate predicate) |
addPropertyChangeListener, bindingUpdated, centerView, firePropertyChange, getApplication, getFrame, getLastDirectory, getParent, getViewPreferences, getWindow, makeCloseableOnEscape, reportErrorpublic static final String SELECTED_PROPERTY
protected DataMap dataMap
protected List<InferredRelationship> inferredRelationships
protected Set<InferredRelationship> selectedEntities
protected int index
protected ObjectNameGenerator strategy
protected transient InferredRelationship currentEntity
protected transient Integer entityNumber
public InferRelationshipsControllerBase(CayenneController parent, DataMap dataMap)
public void setRelationships()
protected void createRelationships(DbEntity entity)
public String getJoin(InferredRelationship irItem)
public String getToMany(InferredRelationship irItem)
protected DbAttribute getJoinAttribute(DbEntity sEntity, DbEntity tEntity)
protected void createJoins()
protected void createNames()
protected ExportedKey getExportedKey(String pkTable, String pkColumn, String fkTable, String fkColumn)
public List<InferredRelationship> getSelectedEntities()
public boolean updateSelection(org.apache.commons.collections.Predicate predicate)
public boolean isSelected()
public void setSelected(boolean selectedFlag)
public int getSelectedEntitiesSize()
public List getEntities()
public InferredRelationship getCurrentEntity()
public void setCurrentEntity(InferredRelationship currentEntity)
public DataMap getDataMap()
public Component getView()
CayenneControllergetView in interface BoundComponentgetView in class CayenneControllerpublic void setNamingStrategy(ObjectNameGenerator namestr)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.