Class SqlQuerySettings
- java.lang.Object
-
- com.jalios.jcms.taglib.settings.BasicSettings<SqlQuerySettings>
-
- com.jalios.jcms.taglib.settings.impl.SqlQuerySettings
-
- All Implemented Interfaces:
ControlSettings<SqlQuerySettings>
,java.lang.Cloneable
public class SqlQuerySettings extends BasicSettings<SqlQuerySettings>
SQL Query Settings- Author:
- Nicolas Dos Santos
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DATA_SOURCE
static java.lang.String
MAX_ROWS
-
Fields inherited from class com.jalios.jcms.taglib.settings.BasicSettings
APPEND, ARIA_ATTR_PREFIX, ARIA_ATTRIBUTES, AUTOFOCUS, CLEAR_BUTTON, CSS, DATA_ATTR_PREFIX, DATA_ATTRIBUTES, DISABLED, HIDE_CLEAR_BUTTON, HTML_ATTRIBUTES, ID, LANGUAGE_CHOOSER, MAX_LENGTH, NAME, PLACEHOLDER, PREPEND, READONLY, REQUIRED, TITLE, TRIGGER_ACTION, TRIGGER_EVENT, VALUE
-
-
Constructor Summary
Constructors Constructor Description SqlQuerySettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlQuerySettings
dataSource(java.lang.String dataSource)
Set the DataSource.protected SqlQuerySettings
getThis()
Returns the exact type of the this reference.
It's a way to recover the type of thethis
object in a class hierarchy (cf.ControlType
getType()
Returns theControlType
related to the currentControlSettings
implementation.SqlQuerySettings
maxRows(int maxRow)
Specify the maximum rows to retrieve.void
resolveOptions(TypeFieldEntry tfe)
Set options from the specifiedTypeFieldEntry
.-
Methods inherited from class com.jalios.jcms.taglib.settings.BasicSettings
addOption, append, aria, aria, autofocus, clearOption, clone, css, dataAttribute, dataAttributes, disable, getOption, getOptionNames, htmlAttributes, htmlAttributes, id, isChannelReady, maxLength, merge, name, onChange, onFocusOut, placeholder, prepend, readonly, removeOption, require, showLanguageChooser, sortSet, title, toStringArray, toStringArray, toStringArray, toStringArray, toStringArray, trigger, value
-
-
-
-
Field Detail
-
DATA_SOURCE
public static final java.lang.String DATA_SOURCE
- See Also:
- Constant Field Values
-
MAX_ROWS
public static final java.lang.String MAX_ROWS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public ControlType getType()
Description copied from interface:ControlSettings
Returns theControlType
related to the currentControlSettings
implementation.- Returns:
ControlType
-
getThis
protected SqlQuerySettings getThis()
Description copied from class:BasicSettings
Returns the exact type of the this reference.
It's a way to recover the type of thethis
object in a class hierarchy (cf. getThis "trick").- Specified by:
getThis
in classBasicSettings<SqlQuerySettings>
- Returns:
- The exact type of the this reference
-
resolveOptions
public void resolveOptions(TypeFieldEntry tfe)
Description copied from interface:ControlSettings
Set options from the specifiedTypeFieldEntry
.- Specified by:
resolveOptions
in interfaceControlSettings<SqlQuerySettings>
- Overrides:
resolveOptions
in classBasicSettings<SqlQuerySettings>
- Parameters:
tfe
-TypeFieldEntry
-
dataSource
public SqlQuerySettings dataSource(java.lang.String dataSource)
Set the DataSource.- Parameters:
dataSource
- the name of the data source (eg. "jdbc/TestDB")- Returns:
- a reference to this object - used to chain calls
-
maxRows
public SqlQuerySettings maxRows(int maxRow)
Specify the maximum rows to retrieve.- Parameters:
maxRow
- Number of maximum rows- Returns:
- a reference to this object - used to chain calls
-
-