@UrlBinding(value="/actions/admin/tables/{databaseName}/{schemaName}/{tableName}/{columnName}") public class TablesAction extends AbstractActionBean
Modifier and Type | Field and Description |
---|---|
static String |
BASE_ACTION_PATH |
protected Column |
column |
protected Form |
columnForm |
protected String |
columnName |
protected TableForm |
columnsTableForm |
static String |
copyright |
protected String |
databaseName |
protected DatabaseSelectionProvider |
databaseSelectionProvider |
protected Form |
dbSelectionProviderForm |
protected List<ColumnForm> |
decoratedColumns |
protected Map<String,String> |
fkManyPropertyNames |
protected Map<String,String> |
fkOnePropertyNames |
static org.slf4j.Logger |
logger |
Persistence |
persistence |
protected String |
returnUrl |
protected String |
schemaName |
protected String |
selectedTabId |
protected String |
selectionProviderName |
protected String |
shortName |
protected Field |
shortNameField |
protected List<String> |
sortedColumnNames |
protected Table |
table |
protected Form |
tableForm |
protected String |
tableName |
context
Constructor and Description |
---|
TablesAction() |
getContext, setContext
public static final String copyright
public static final String BASE_ACTION_PATH
public Persistence persistence
protected String databaseName
protected String schemaName
protected String tableName
protected String columnName
protected String returnUrl
protected String shortName
protected String selectionProviderName
protected Table table
protected Column column
protected List<ColumnForm> decoratedColumns
protected DatabaseSelectionProvider databaseSelectionProvider
protected Form tableForm
protected TableForm columnsTableForm
protected Form columnForm
protected Field shortNameField
protected Form dbSelectionProviderForm
protected String selectedTabId
public static final org.slf4j.Logger logger
@DefaultHandler public Resolution execute()
public Resolution search()
public Resolution getTables()
public Resolution editTable()
public Resolution editColumn()
public Resolution saveTable()
protected boolean validateTableForm()
public Resolution returnToTables()
public Resolution saveColumn()
public Resolution returnToTable()
public Resolution addSelectionProvider()
public Resolution removeSelectionProvider()
public Resolution editSelectionProvider()
protected Resolution doEditSelectionProvider(DatabaseSelectionProviderForm databaseSelectionProviderForm)
protected DatabaseSelectionProviderForm setupDbSelectionProviderForm(Mode mode)
public Resolution saveSelectionProvider()
protected void saveModel() throws IOException, JAXBException
IOException
JAXBException
protected boolean saveToColumnForm(Form columnForm, ColumnForm cf)
protected void setupColumnsForm(Mode mode)
protected ColumnForm setupColumnForm()
protected void configureTypesSelectionProvider(DefaultSelectionProvider typesSP, ColumnForm columnForm)
protected ColumnForm decorateColumn(Column column, PropertyAccessor columnAccessor, Type[] types)
public Table findTable()
public Column findColumn()
public Resolution returnToPages()
public String getBaseActionPath()
public String getActionPath()
public Model getModel()
public String getDatabaseName()
public void setDatabaseName(String databaseName)
public String getSchemaName()
public void setSchemaName(String schemaName)
public String getTableName()
public void setTableName(String tableName)
public String getColumnName()
public void setColumnName(String columnName)
public Table getTable()
public Column getColumn()
public Form getTableForm()
public TableForm getColumnsTableForm()
public Form getColumnForm()
public String getShortName()
public void setShortName(String shortName)
public Field getShortNameField()
public String getSelectedTabId()
public void setSelectedTabId(String selectedTabId)
public DatabaseSelectionProvider getDatabaseSelectionProvider()
public Form getDbSelectionProviderForm()
public String getSelectionProviderName()
public void setSelectionProviderName(String selectionProviderName)
public Persistence getPersistence()
public List<ColumnForm> getDecoratedColumns()