
/*
 * Isomorphic Smart GWT web presentation layer
 * Copyright 2000 and beyond Isomorphic Software, Inc.
 *
 * OWNERSHIP NOTICE
 * Isomorphic Software owns and reserves all rights not expressly granted in this source code,
 * including all intellectual property rights to the structure, sequence, and format of this code
 * and to all designs, interfaces, algorithms, schema, protocols, and inventions expressed herein.
 *
 *  If you have any questions, please email <sourcecode@isomorphic.com>.
 *
 *  This entire comment must accompany any portion of Isomorphic Software source code that is
 *  copied or moved from this file.
 */
/* sgwtgen */
package com.smartgwt.client.docs.serverds;

import com.smartgwt.client.types.*;
import com.smartgwt.client.data.DSRequest;
import com.smartgwt.client.data.DSResponse;
import com.smartgwt.client.docs.*;
import com.smartgwt.client.callbacks.*;
import com.smartgwt.client.widgets.form.fields.FormItem;
import java.util.List;
import java.util.Map;

/**
 * A DataSource is data-provider-independent description of a set of objects that will be loaded,
 * edited and saved within the user interface of your application.<p>
 * <b>This class is not meant to be created and used, it is actually documentation of settings
 * allowed in a DataSource descriptor (.ds.xml file), for use with Smart GWT Pro Edition and
 * above.
 * See {@link com.smartgwt.client.docs.serverds} for how to use this documentation.</b>
 * <p>
 * <P> Each DataSource consists of a list of {@link
 * com.smartgwt.client.docs.serverds.DataSource#fields fields} that make up a DataSource
 * <code>record</code>, along with {@link com.smartgwt.client.docs.serverds.DataSourceField#type
 * field types},  {@link com.smartgwt.client.docs.serverds.DataSourceField#validators validation
 * rules},  {@link com.smartgwt.client.docs.serverds.DataSourceField#foreignKey relationships} to
 * other DataSources, and other metadata. <P> The abstract object description provided by a
 * DataSource is easily mapped to a variety of backend object models and storage schemes.  The
 * following table shows analogous terminology across systems. <table border=1 class="normal">
 * <tr>   <td>Isomorphic Smart GWT</td>   <td>Relational Database</td>   <td>Enterprise Java Beans
 * (EJB)</td>   <td>Entity/Relationship Modeling</td>   <td>OO/UML</td>   <td>XML Schema/WSDL</td>
 * <td>LDAP</td> </tr><tr>   <td>DataSource</td>   <td>Table</td>   <td>EJB class</td>  
 * <td>Entity</td>   <td>Class</td>   <td>Element Schema (ComplexType)</td>   <td>Objectclass</td>
 * </tr><tr>   <td>Record</td>   <td>Row</td>   <td>EJB instance</td>   <td>Entity instance</td>  
 * <td>Class instance/Object</td>   <td>Element instance (ComplexType)</td>   <td>Entry</td>
 * </tr><tr>   <td>Field</td>   <td>Column</td>   <td>Property</td>   <td>Attribute</td>  
 * <td>Property/Attribute</td>   <td>Attribute or Element (SimpleType)</td>   <td>Attribute</td>
 * </tr></table> <P> DataSources can be {@link com.smartgwt.client.docs.DataSourceDeclaration
 * declared} in either JavaScript or XML format, and can also be {@link metadataImport imported}
 * from existing metadata formats, including XML Schema. <P> <i>Data Binding</i> is the process by
 * which {@link com.smartgwt.client.widgets.DataBoundComponent Data Binding-capable UI components}
 * can automatically configure themselves for viewing, editing and saving data described by
 * DataSources.  DataBinding is covered in the 'QuickStart Guide', Chapter 6, <i>Data Binding</i>.
 * <P> {@link com.smartgwt.client.docs.ClientServerIntegration Data Integration} is the process by
 * which a DataSource can be connected to server systems such as SQL DataBases, Java Object
 * models, WSDL web services and other data providers.  Data Integration comes in two variants:
 * client-side and server-side.  {@link com.smartgwt.client.docs.ServerDataIntegration Server-side
 * integration} uses the Smart GWT Java-based server to connect to data represented by Java
 * Objects or JDBC-accessible databases.  {@link com.smartgwt.client.docs.ClientDataIntegration
 * Client-side integration} connects Smart GWT DataSources to XML, JSON or other formats
 * accessible via HTTP. <P> DataSources have a concept of {@link
 * com.smartgwt.client.docs.DataSourceOperations 4 core operations} ("fetch", "add", "update" and
 * "remove") that can be performed on the set of objects represented by a DataSource.  Once a
 * DataSource has been integrated with your data store, databinding-capable  UI components can
 * leverage the 4 core DataSource operations to provide many complete user interactions without
 * the need to configure how each individual component loads and saves data. <P> These
 * interactions include {@link com.smartgwt.client.widgets.grid.ListGrid grid views}, {@link
 * com.smartgwt.client.widgets.tree.TreeGrid tree views},  {@link
 * com.smartgwt.client.widgets.viewer.DetailViewer detail views}, {@link
 * com.smartgwt.client.widgets.form.DynamicForm form}-based  {@link
 * com.smartgwt.client.widgets.form.DynamicForm#editRecord editing} and {@link
 * com.smartgwt.client.widgets.form.DynamicForm#saveData saving}, grid-based {@link
 * com.smartgwt.client.widgets.grid.ListGrid#getCanEdit editing} and {@link
 * com.smartgwt.client.widgets.grid.ListGrid#getSaveByCell saving}, and custom interactions
 * provided by <a
 * href="http://www.smartclient.com/smartgwt/showcase/#pattern_reuse_grid_form_category"
 * target="examples">Pattern Reuse Example</a> custom databinding-capable components.
 * @see com.smartgwt.client.widgets.DataBoundComponent
 * @see com.smartgwt.client.docs.FileSource FileSource Operations
 */
public class DataSource {

    /**
     * By default, all DataSources are assumed to be capable of handling  {@link
     * com.smartgwt.client.docs.ServerSummaries} on fetch or filter type operations.  This property
     * may be set to <code>false</code> to indicate that this dataSource does not support 
     * serverSummaries. <p> <b>NOTE:</b> If you specify this property in a DataSource descriptor 
     * (<code>.ds.xml</code> file), it is enforced on the server.  This means that if you run  a
     * request containing serverSummaries against a DataSource that advertises itself as 
     * <code>canAggregate:false</code>, it will be rejected.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerSummaries Server Summaries
     */
    public Boolean canAggregate;

    /**
     * If explicitly set true or left null, causes the server to use a "hint" in the SQL we  generate
     * for paged queries.  If explicitly set false, forces off the use of hints.  This property can be
     * overridden per operationBinding - see  {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#sqlUsePagingHint
     * OperationBinding.sqlUsePagingHint}. <p> Note this property is only applicable to {@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType SQL} DataSources,  only when a {@link
     * com.smartgwt.client.docs.serverds.DataSource#sqlPaging paging strategy} of "sqlLimit" is in
     * force, and it only has an effect for those specific database products where we employ a native
     * hint in the generated SQL in an attempt to improve performance.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.OperationBinding#sqlUsePagingHint
     */
    public Boolean sqlUsePagingHint;

    /**
     * Applies to RestConnector dataSources ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only, and is
     * overridable per operationBinding (see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#requestTemplate
     * OperationBinding.requestTemplate}). <p> By default, if you have a {@link
     * com.smartgwt.client.docs.serverds.DataSource#requestFormat requestFormat} of "params", 
     * <code>RestConnector</code> will add your values or criteria as standard HTTP parameters to  the
     * the URL it generates for hitting the target REST server - this is described in more  detail in
     * the {@link com.smartgwt.client.types.RESTRequestFormat} documentation. <p> With a
     * <code>requestFormat</code> of "json", <code>RestConnector</code> will generate a  block of JSON
     * from your criteria or values, again as described in the  <code>RESTRequestFormat</code> docs
     * <p> You can switch off both of these behaviors by setting this property true
     *
     * <p>Default value is false
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public Boolean suppressAutoMappings;

    /**
     * Very advanced: for servers that do not support paging, and must return large numbers of XML
     * records in one HTTP response, Smart GWT breaks up the processing of the response in order to
     * avoid the "script running slowly" dialog appearing for an end user. <P> If you have a
     * relatively small number of records with a great deal of properties or subobjects on each
     * record, and you have not set {@link
     * com.smartgwt.client.docs.serverds.DataSource#dropExtraFields dropExtraFields} to eliminate
     * unused data, and you see the "script running slowly" dialog, you may need to set this number
     * lower.
     *
     * <p>Default value is 150
     */
    public int resultBatchSize;

    /**
     * This property has different meanings depending on the {@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType}: <p> <b>For SQL DataSources
     * (DataSources with serverType "sql")</b><br> If set, results from the database will be used to
     * create one instance of the indicated Java bean per database row.  Otherwise a Map is used to
     * represent each row retrieved from SQL. <P> With this feature active, a DSResponse from this
     * DataSource will contain a Collection of instances of the indicated <code>beanClassName</code>,
     * available via DSResponse.getData(). This creates a couple of possibilities: <P> <dl> <dt>Add
     * business logic for derived properties, such as computed formulas</dt> <dd>For example, declare
     * a DataSourceField named "revenueProjection".  By default this field will call
     * getRevenueProjection() on your bean to retrieve the value to send to the client.  Your
     * implementation of getRevenueProjection() could apply some kind of formula to other values
     * loaded from the database.</dd> <dt>Call business logic on retrieved beans via DMI</dt> <dd>By
     * adding a {@link com.smartgwt.client.docs.DmiOverview DMI} method that calls DSRequest.execute()
     * to retrieve a DSResponse, you have an opportunity to call business logic methods on the beans
     * representing each row affected by the DSRequest.  For example, notify a related BPEL process of
     * changes to certain fields.</dd> </dl> <P> By using <code>beanClassName</code> on a specific
     * {@link com.smartgwt.client.docs.serverds.OperationBinding}, you can: <ul> <li>Use a bean to
     * represent your data only when it matters; for example, avoid the overhead     of using a bean
     * for "fetch" operations, but do use a bean for "update" operations so     that you can execute
     * relevant business logic after the update completes.</li> <li>Skip the use of beans for complex
     * reporting queries that produce results unrelated to     your persistent object model.  Set
     * beanClassName to blank ("") on a specific     operationBinding to override
     * DataSource.beanClassName for that specific operation.</li> <li>For SQL joins that produce
     * additional data fields, use a special, operation-specific     bean that represents a join of
     * multiple entities and contains business logic specific     to that joined dataset</li> </ul>
     * <P> Note that <code>beanClassName</code> affects what numeric field types will be used for 
     * inbound DSRequest data. For fields with numeric types, the {@link
     * com.smartgwt.client.data.DSRequest#getData record data}  in DSRequests will automatically be
     * converted to the type of the target field, before the  request is received in a DMI.  For
     * details, see {@link com.smartgwt.client.docs.DsRequestBeanTypes}. <p> Note that {@link
     * com.smartgwt.client.docs.DmiOverview DMI} also has a built-in facility for populating a bean 
     * with the inbound {@link com.smartgwt.client.data.DSRequest#getData DSRequest.data} - just
     * declare the bean as a method argument. <p> <b>For generic DataSources (DataSources with
     * serverType "generic")</b><br> {@link com.smartgwt.client.docs.Reify Reify} sets this property
     * when it creates a generic  DataSource using the Javabean Wizard.  It has no built-in
     * server-side effects. <p> <b>For Hibernate DataSources (DataSources with serverType
     * "hibernate")</b><br> The name of the Java bean or POJO class that is mapped in Hibernate.  This
     * will typically  be the fully-qualified class name - eg <code>com.foo.MyClass</code> - but it
     * may be the  simple class name - just <code>MyClass</code> - or it may be some other value.  It
     * all  depends on how your classes have been mapped in Hibernate. <p> The declared Java bean will
     * affect how its properties will be mapped to built-in numeric  types, see {@link
     * com.smartgwt.client.docs.HibernateIntegration Hibernate Integration overview} for details. <p>
     * Note:  If you are intending to use Hibernate as a data-access layer only,  you do not need to
     * create Hibernate mappings or Java objects: Smart GWT will generate everything it needs on the
     * fly. <p> <b>For JPA DataSources (DataSources with serverType "jpa" or "jpa1")</b><br> The fully
     * qualified class name of the JPA annotated entity. <p> <b>NOTE for Hibernate and JPA users:</b>
     * When you use JPA, or use Hibernate as a full ORM system (ie, not just allowing Smart GWT Server
     * to drive Hibernate as a data access layer), the beans returned on the server-side are
     * <b>live</b>.  This means that if you make any  changes to them, the ORM system will persist
     * those changes.  This is true even if the beans were created as part of a fetch operation. <p>
     * This causes a problem in the common case where you want to use a DMI or custom DataSource 
     * implementation to apply some post-processing to the beans fetched from the persistent  store. 
     * If you change the values in the beans directly, those changes will be persisted. <p> If you
     * want to alter the data returned from a JPA or Hibernate persistent store as part of a fetch
     * request just so you can alter what gets sent to the client, you can use the  server-side
     * <code>DSResponse</code>'s <code>getRecords()</code> method.  This will return your bean data in
     * "record" format - ie, as a List of Maps.  You can alter these records  without affecting your
     * persistent store, and then call <code>setData()</code> on the  <code>DSResponse</code>),
     * passing the altered list of records.  See the server-side Javadocs for <code>DSResponse</code>
     * for details of these two methods.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.OperationBinding#beanClassName
     */
    public String beanClassName;

    /**
     * For DataSources with {@link com.smartgwt.client.docs.serverds.DataSource#audit auditing
     * enabled}, optionally specifies the ID of the audit DataSource.  If this property is not
     * specified, the ID of the audit DataSource will be <code>audit_[OriginalDSID] </code>
     *
     * <p>Default value is null
     */
    public String auditDataSourceID;

    /**
     * This property allows you to write and use custom DataSource subclasses on the server, by 
     * specifying either <ul> <li>the fully-qualified name of the DataSource subclass that should be
     * instantiated server-side for this dataSource, or</li> <li>the token "spring:" followed by a
     * valid Spring bean ID, if you wish to instantiate  your custom dataSource object using Spring
     * dependency injection.  For example,  <code>"spring:MyDataSourceBean"</code>.  See also {@link
     * com.smartgwt.client.docs.ServerInit} for special concerns with framework initialization when
     * using Spring.  It is also particularly important that you read the discussion of caching and
     * thread-safety linked to below, as there are  special considerations in this area when using
     * Spring.</li> <li>the token "cdi:" followed by a valid CDI bean name, if you wish to instantiate
     * your custom dataSource object using CDI dependency injection.  For example, 
     * <code>"cdi:MyDataSourceBean"</code>.</li> </ul> <p> One reason you might wish to do this would
     * be to override the validate() method to provide  some arbitrary custom validation (such as
     * complex database lookups, validation embedded in  legacy applications, etc).  It is also
     * possible - though obviously a more substantial task - to override the execute() method in your
     * custom DataSource.  This is one way of creating  a completely customized DataSource
     * implementation. <p> <b>Note:</b> If you use this property, you are responsible for making sure
     * that it refers to a valid server-side class that extends
     * <code>com.isomorphic.datasource.BasicDataSource</code>, or to a Spring bean of the same
     * description. If your implementation relies on methods or state only present in certain
     * specialized  subclasses of DataSource (for example, you want the normal behavior and features
     * of a  HibernateDataSource, but with a specialized validate() method), then you should extend
     * the  subclass rather than the base class. <P> NOTE: Please take note of the points made in 
     * {@link com.smartgwt.client.docs.ServerDataSourceImplementation this discussion} of caching and
     * thread-safety issues in server-side DataSources.
     *
     * <p>Default value is null
     */
    public String serverConstructor;

    /**
     * Indicates the format to be used for HTTP requests and responses when fulfilling DSRequests (eg,
     * when {@link com.smartgwt.client.data.DataSource#fetchData fetchData()} is called).
     *
     * <p>Default value is "iscServer"
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public DSDataFormat dataFormat;

    /**
     * Allows you to specify an arbitrary suffix string to apply to all json format responses  sent
     * from the server to this application. <P> The inclusion of such a suffix ensures your code is
     * not directly executable outside of your application, as a preventative measure against <a
     * href='http://www.google.com/search?q=javascript+hijacking' target='_blank'>javascript
     * hijacking</a>. <P> Only applies to responses formatted as json objects. Does not apply to
     * responses returned via scriptInclude type transport.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.data.OperationBinding#getDataFormat
     * @see com.smartgwt.client.data.OperationBinding#getDataTransport
     */
    public String jsonSuffix;

    /**
     * For fields of {@link com.smartgwt.client.docs.serverds.DataSourceField#type type} "sequence" in
     * a dataSource of 
     * {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "sql", indicates the
     * 
     * {@link com.smartgwt.client.types.SequenceMode} to use.  This property has no effect for fields
     * or dataSources of 
     *  other types.
     *  <p>
     *  You can set a default sequenceMode for all DataSources of a given database type by setting
     *  property "sql.{database_type}.default.sequence.mode" in <code>server.properties</code>.  
     *  You set a global default sequenceMode that applies to all database types by setting property
     *  "sql.default.sequence.mode".  For example:<pre>
     *    sql.mysql.default.sequence.mode: jdbcDriver
     *  </pre>
     *  <P>
     *
     * <p>Default value is "native"
     */
    public SequenceMode sequenceMode;

    /**
     * The paging strategy to use for this DataSource.  If this property is not set, the  default
     * paging strategy, specified with the {@link com.smartgwt.client.docs.Server_properties
     * server.properties} setting <code>sql.defaultPaging</code>, is used.   <p> This setting can be
     * overridden with the {@link com.smartgwt.client.docs.serverds.OperationBinding#sqlPaging
     * OperationBinding.sqlPaging} property. <P> <b>NOTE:</b> Operations that involve a {@link
     * com.smartgwt.client.data.OperationBinding#getCustomSQL customSQL}  clause ignore this property,
     * because customSQL operations usually need to be treated as special cases.  For these
     * operations, the paging strategy comes from the  {@link
     * com.smartgwt.client.docs.Server_properties server.properties} setting
     * <code>sql.defaultCustomSQLPaging</code> or  <code>sql.defaultCustomSQLProgressivePaging</code>,
     * depending on whether or not  {@link
     * com.smartgwt.client.docs.serverds.DataSource#progressiveLoading progressiveLoading} is in
     * force.  Note that these can always be overridden by a <code>sqlPaging</code> setting on the
     * OperationBinding.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.OperationBinding#sqlPaging
     */
    public SQLPagingStrategy sqlPaging;

    /**
     * Default scriptlet to be executed on the server for each operation. If {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#script OperationBinding.script} is
     * specified, it will be executed for the operation binding in question instead of running this
     * scriptlet.
     *  <P>
     * Scriptlets are used similarly to DMIs configured via {@link
     * com.smartgwt.client.docs.serverds.DataSource#serverObject serverObject} or
     * {@link com.smartgwt.client.docs.serverds.OperationBinding#serverObject
     * OperationBinding.serverObject} -
     *  they can add business logic by modifying the DSRequest before it's executed, modifying the
     *  default DSResponse, or taking other, unrelated actions.  
     *  <P>
     *  For example:
     *  <pre>
     *     &lt;DataSource&gt;
     *        &lt;script language="groovy"&gt;
     *           ... Groovy code ...
     *        &lt;/script&gt;
     *       ... other DataSource properties
     *     &lt;/DataSource&gt;
     *  </pre>
     *  <P>
     *  Scriptlets can be written in any language supported by the "JSR 223" standard, including Java
     * itself.  See the {@link com.smartgwt.client.docs.DmiOverview DMI Script Overview} for rules on
     * how to return data,
     *  add additional imports, and other settings.
     *  <P>
     *  The following variables are available for DMI scriptlets:
     *  <ul>
     *  <li><i>requestContext</i>: RequestContext (from com.isomorphic.servlet)</li>
     *  <li><i>dataSource</i>: the current DataSource (same as DSRequest.getDataSource())</li>
     *  <li><i>dsRequest</i>: the current DSRequest</li>
     *  <li><i>criteria</i>: shortcut to DSRequest.getCriteria() (a Map)</li>
     *  <li><i>values</i>: shortcut to DSRequest.getValues() (a Map)</li>
     *  <li><i>oldValues</i>: shortcut to DSRequest.getOldValues() (a Map)</li>
     *  <li><i>log</i>: an instance of <code>com.isomorphic.log.Logger</code>, so your scripts
     *  can log in the same manner as regular Java code</li>
     *  <li><i>config</i>: an instance of <code>com.isomorphic.base.Config</code>, so your scripts
     *  have access to your <code>server.properties</code> settings</li>
     *  <li><i>sqlConnection</i>: <b>SQLDataSource only</b>: the current SQLConnection object.  If
     * using {@link com.smartgwt.client.data.DataSource#getAutoJoinTransactions automatic
     * transactions} are enabled, this
     *  SQLConnection is in the context of the current transaction</li>
     *  <li><i>rpcManager</i>: the current RPCManager</li>
     *  <li><i>applicationContext</i>: the Spring ApplicationContext (when applicable)</li>
     *  <li><i>beanFactory</i>: the Spring BeanFactory (when applicable)</li>
     *  </ul>
     *  <P>
     *  Scriptlets also have access to a set of contextual variables related to the Servlets
     *  API, as follows:
     *  <ul>
     *  <li><i>servletRequest</i>: the current ServletRequest
     *  <li><i>session</i>: the current HttpSession
     *  <li><i>servletResponse</i>: the current ServletResponse <b>(advanced use only)</b>
     *  <li><i>servletContext</i>: the current ServletContext<b>(advanced use only)</b>
     *  </ul>
     * As with DMI in general, be aware that if you write scriptlets that depend upon these variables,
     *  you preclude your DataSource from being used in the widest possible variety of
     *  circumstances.  For example, adding a scriptlet that relies on the <code>HttpSession</code>
     *  prevents your DataSource from being used in a command-line process.
     *  <P>
     *  <i>Note that if a dataSource configuration has both a <code>&lt;script&gt;</code> block and
     * a specified {@link com.smartgwt.client.docs.serverds.OperationBinding#serverObject
     * serverObject} for some operation, the
     *  script block will be executed, and the serverObject ignored.</i>
     *
     * <p>Default value is null
     */
    public String script;

    /**
     * The native field name used by this DataSource on the server to represent the
     * <code>fileName</code> for {@link com.smartgwt.client.docs.FileSource FileSource Operations}
     * operations. Any extensions to the fileName to indicate type or format (e.g. ".ds.xml") are
     * stored in the {@link com.smartgwt.client.docs.serverds.DataSource#fileTypeField fileTypeField}
     * and {@link com.smartgwt.client.docs.serverds.DataSource#fileFormatField fileFormatField}, if
     * specified for this DataSource. <p>If not specified for a DataSource, the fileNameField will be
     * inferred on the server as follows: <ul> <!-- <li>f the {@link
     * com.smartgwt.client.docs.serverds.DataSource#fileContentsField fileContentsField} is binary,
     * then we use     the filename field which corresponds to the binary field,     if it exists.
     * TODO: Not implemented yet.</li> --> <li>If there is a field named "fileName", "name", or
     * "title",     then that field is used.</li> <li>Otherwise, if there is a single primary key, and
     * it has the type "text",     then that field is used.</li> <li>Otherwise, an error is
     * logged</li> </ul>
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.FileSource FileSource Operations
     */
    public String fileNameField;

    /**
     * For DataSources with {@link com.smartgwt.client.docs.serverds.DataSource#audit auditing
     * enabled}, specifies the field name used to store the user who performed the operation.  If
     * empty string is specified as the field name, the audit DataSource will not store this field.
     *
     * <p>Default value is "audit_modifier"
     */
    public String auditUserFieldName;

    /**
     * Optional array of OperationBindings, which provide instructions to the DataSource about how
     * each
     *  DSOperation is to be performed.
     *  <P>
     *  When using the Smart GWT Server, OperationBindings are specified in your DataSource
     *  descriptor (.ds.xml file) and control server-side behavior such as what Java object to route
     * DSRequest to ({@link com.smartgwt.client.docs.serverds.OperationBinding#serverObject
     * OperationBinding.serverObject}) or customizations to SQL, JQL and HQL queries
     * ({@link com.smartgwt.client.data.OperationBinding#getCustomSQL OperationBinding.customSQL},
     * {@link com.smartgwt.client.data.OperationBinding#getCustomJQL OperationBinding.customJQL} and
     * {@link com.smartgwt.client.data.OperationBinding#getCustomHQL OperationBinding.customHQL}).
     * See the @see <a href="http://www.smartclient.com/smartgwtee/showcase/#javaDataIntegration"
     * target="examples">Java Integration samples</a>.
     *  <P>
     *  For DataSources bound to WSDL-described web services using
     * {@link com.smartgwt.client.docs.serverds.DataSource#serviceNamespace serviceNamespace},
     * OperationBindings are used to bind each DataSource
     *  {@link com.smartgwt.client.docs.serverds.OperationBinding#operationType operationType} to an
     * {@link com.smartgwt.client.data.OperationBinding#getWsOperation operation} of a WSDL-described 
     * {@link com.smartgwt.client.data.WebService web service}, so that a DataSource can both fetch
     * and save data to a web
     *  service.
     *  <P>
     *  For example, this code accomplishes part of the binding to the 
     * <a href='http://www.google.com/search?q=sforce+partner+wsdl' target='_blank'>SalesForce partner
     * web services</a>
     *  
     *  
     *  <pre>
     *       DataSource dataSource = new DataSource();
     *       dataSource.setServiceNamespace("urn:partner.soap.sforce.com");
     *       OperationBinding fetch = new OperationBinding();
     *       fetch.setOperationType(DSOperationType.FETCH);
     *       fetch.setWsOperation("query");
     *       fetch.setRecordName("sObject");
     *       OperationBinding add = new OperationBinding();
     *       add.setOperationType(DSOperationType.ADD);
     *       add.setWsOperation("create");
     *       add.setRecordName("SaveResult");
     *       OperationBinding update = new OperationBinding();
     *       update.setOperationType(DSOperationType.UPDATE);
     *       update.setWsOperation("update");
     *       update.setRecordName("SaveResult");
     *       OperationBinding remove = new OperationBinding();
     *       remove.setOperationType(DSOperationType.REMOVE);
     *       remove.setWsOperation("delete");
     *       remove.setRecordName("DeleteResult");
     *       dataSource.setOperationBindings(fetch, add, update, remove);
     *  </pre>
     *  
     *  NOTE: additional code is required to handle authentication and other details, see the
     *  complete code in smartclientSDK/examples/databinding/SalesForce.
     *  <P>
     *  For DataSources that contact non-WSDL-described XML or JSON services, OperationBindings can
     *  be used to separately configure the URL, HTTP method, input and output processing for each
     *  operationType.  This makes it possible to fetch JSON data from one URL for the "fetch"
     *  operationType and save to a web service for the "update" operationType, while appearing as a
     * single integrated DataSource to a {@link com.smartgwt.client.widgets.DataBoundComponent} such
     * as an
     *  {@link com.smartgwt.client.widgets.grid.ListGrid#getCanEdit editable ListGrid}.
     *  <P>
     *  If no operationBinding is defined for a given DataSource operation, all of the properties
     *  which are valid on the operationBinding are checked for on the DataSource itself.  
     *  <P>
     *  This also means that for a read-only DataSource, that is, a DataSource only capable of fetch
     *  operations, operationBindings need not be specified, and instead all operationBinding
     * properties can be set on the DataSource itself. In the <a
     * href="http://www.smartclient.com/smartgwtee/showcase/#data_integration_server_rss"
     * target="examples">RSS Feed</a>
     *  sample, you can see an example of using OperationBinding properties directly on the 
     *  DataSource in order to read an RSS feed.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.data.OperationBinding
     */
    public OperationBinding[] operationBindings;

    /**
     * Allows you to specify {@link com.smartgwt.client.types.DSOperationType "remove" operation} SQL
     * query execution  time threshold in milliseconds, which if exceeded query is identified as
     * "slow" and  may be logged under specific logging category. <p> See {@link
     * com.smartgwt.client.docs.serverds.DataSource#logSlowSQL logSlowSQL} for more details.
     *
     * <p>Default value is null
     */
    public Integer logSlowRemove;

    /**
     * The native field name used by this DataSource on the server to represent the
     * <code>fileType</code> for {@link com.smartgwt.client.docs.FileSource FileSource Operations}. 
     * <p>If the fileTypeField is not configured, then a field named "fileType" will be used, if it
     * exists. Otherwise, the DataSource will not track fileTypes -- this may be acceptable if, for
     * instance, you use a separate DataSource for each fileType. <p>The fileType is specified
     * according to the extension that would have been used in the filesystem -- for instance, the
     * fileType for employees.ds.xml would be "ds".
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.FileSource FileSource Operations
     */
    public String fileTypeField;

    /**
     * Like {@link com.smartgwt.client.widgets.DataBoundComponent#getUseFlatFields
     * DataBoundComponent.useFlatFields}, but applies to all DataBound components that bind to this
     * DataSource.
     *
     * <p>Default value is null
     */
    public Boolean useFlatFields;

    /**
     * Name of the field that has the second most pertinent piece of textual information in the
     * record, for use when a {@link com.smartgwt.client.widgets.DataBoundComponent} needs to show a
     * short summary of a record. <p> For example, for a DataSource of employees, a "job title" field
     * would probably be the second most pertinent text field aside from the employee's "full name".
     * <p> Unlike {@link com.smartgwt.client.docs.serverds.DataSource#titleField titleField},
     * infoField is not automatically determined in the absence of an explicit setting.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.DsSpecialFields DsSpecialFields overview and related methods
     */
    public String infoField;

    /**
     * Sets the XML namespace prefixes available for XPaths on a DataSource-wide basied.  See {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#xmlNamespaces
     * OperationBinding.xmlNamespaces} for details.
     *
     * <p>Default value is See below
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public Map xmlNamespaces;

    /**
     * For dataSources of {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType}
     * "sql" only, this property sets the multi-insert "non matching" strategy for add requests on
     * this  {@link com.smartgwt.client.docs.serverds.DataSource dataSource}. Only has an effect if
     * the  {@link com.smartgwt.client.data.DataSource#addData add request} specifies a list of
     * records as the data, and only  if {@link
     * com.smartgwt.client.docs.serverds.DataSource#multiInsertStrategy multiInsertStrategy} is set to
     * "multipleValues"  either globally or at the {@link com.smartgwt.client.data.DSRequest
     * DSRequest},  {@link com.smartgwt.client.docs.serverds.OperationBinding OperationBinding}, or
     * {@link com.smartgwt.client.docs.serverds.DataSource DataSource} level. See the docs for {@link
     * com.smartgwt.client.types.MultiInsertNonMatchingStrategy MultiInsertNonMatchingStrategy} for
     * more information. <p> Note that this setting (along with the other multi-insert properties, 
     * {@link com.smartgwt.client.docs.serverds.DataSource#multiInsertStrategy multiInsertStrategy}
     * and  {@link com.smartgwt.client.docs.serverds.DataSource#multiInsertBatchSize
     * multiInsertBatchSize}) can be  overridden at the {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#multiInsertNonMatchingStrategy
     * operationBinding level} and the {@link
     * com.smartgwt.client.data.DSRequest#getMultiInsertNonMatchingStrategy dsRequest level}.  If you
     * wish to configure multi-insert setting globally, see the documentation for  {@link
     * com.smartgwt.client.docs.serverds.DataSource#multiInsertStrategy multiInsertStrategy}.
     *
     * <p>Default value is "padWithNulls"
     * @see com.smartgwt.client.docs.serverds.DataSource#multiInsertStrategy
     * @see com.smartgwt.client.docs.serverds.DataSource#multiInsertBatchSize
     */
    public MultiInsertNonMatchingStrategy multiInsertNonMatchingStrategy;

    /**
     * Indicates that the specified {@link com.smartgwt.client.docs.VelocityExpression} must evaluate
     * to true for a user  to access this DataSource. <P> See also {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#requires OperationBinding.requires}.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.DeclarativeSecurity Declarative Security
     */
    public VelocityExpression requires;

    /**
     * Unique identifier for this DataSource.  Required for all DataSources.
     *
     * <p>Default value is null
     */
    public Identifier ID;

    /**
     * If {@link com.smartgwt.client.docs.serverds.DataSource#fileVersionField automatic file
     * versioning} is enabled for a FileSource DataSource, this property configures the maximum number
     * of versions to retain.
     *
     * <p>Default value is 20
     * @see com.smartgwt.client.docs.serverds.DataSource#fileVersionField
     * @see com.smartgwt.client.docs.FileSource FileSource Operations
     */
    public Integer maxFileVersions;

    /**
     * By default, custom dataSource implementations are assumed to be unable to support {@link
     * com.smartgwt.client.data.DataSource#supportsDynamicTreeJoins dynamic tree joins}.  If you
     * create a custom dataSource that can support such joins, set this flag to true
     *
     * <p>Default value is null
     */
    public Boolean allowDynamicTreeJoins;

    /**
     * Tag name to use when serializing to XML.  If unspecified, the <code>dataSource.ID</code> will
     * be used.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public String tagName;

    /**
     * For an {@link com.smartgwt.client.docs.serverds.DataSource#audit audited} DataSource, controls
     * whether the Framework will attempt to auto-generate the audit DataSource.  Note that this
     * property is independent of {@link
     * com.smartgwt.client.docs.serverds.DataSource#auditDataSourceID auditDataSourceID} so that, by
     * default, even when the audit DataSource is given a non-default ID, the Framework will still
     * attempt to auto-generate it.
     *
     * <p>Default value is true
     */
    public boolean generateAuditDS;

    /**
     * If a {@link com.smartgwt.client.data.DSRequest} arrives from the client that requests {@link
     * com.smartgwt.client.docs.ServerSummaries server-calculated summaries}, should it be allowed?
     * <p> Note this setting <b>only</b> affects <code>dsRequests</code> that come from the browser
     * (or another client).  This setting has no effect on server summaries declared in .ds.xml files
     * or summaries configured in DSRequests created programmatically on the server side, which are
     * always allowed. <p> Default value of null means this DataSource will use the system-wide
     * default, which is set via <code>datasources.allowClientRequestedSummaries</code> in {@link
     * com.smartgwt.client.docs.Server_properties server.properties}, and defaults to allowing
     * client-requested summaries. <p> If client-requested summarization is allowed, but the
     * server-side &lt;operationBinding&gt; provides specific summarization settings, the
     * client-requested summarization is ignored.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSourceField#allowClientRequestedSummaries
     * @see com.smartgwt.client.docs.ServerSummaries Server Summaries
     */
    public Boolean allowClientRequestedSummaries;

    /**
     * Applies to RestConnector dataSources ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only,
     * and is overridable per operationBinding (see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#responseTemplate
     * OperationBinding.responseTemplate}).
     *  <p>
     * If you have a {@link com.smartgwt.client.docs.serverds.DataSource#responseFormat
     * responseFormat} of "json" or "xml", this 
     *  property allows you to specify a template for <code>RestConnector</code> to use in order 
     *  to construct response data for the client, from the response data sent by the REST server.
     *  This allows you to use the full power of the Velocity Templating Language to perform mappings
     *  and other transformations, all declaratively.  The process involves the following steps:<ol>
     *  <li>We parse the REST response text as either JSON or XML, depending on the 
     *  <code>responseFormat</code></li>
     * <li>If a {@link com.smartgwt.client.docs.serverds.DataSource#recordXPath record-level XPath} is
     * declared, it is applied to the 
     *  parsed REST response data</li>
     *  <li>We parse the template as JSON and convert it into an internal object structure</li>
     *  <li>Velocity templating is now performed on this structure, with the processed REST response
     *  data provided as context variables.  Templates intended for use with multi-record datasets 
     *  should be framed in terms of a single record - if the REST response data consists of multiple
     *  records, each record will be put through the template in turn</li>
     *  <li>If the original request came from a remote client (eg, a browser-based UI), the same 
     *  downstream serialization logic as used for all other DataSource types will serialize this 
     * processed structure in accordance with the {@link
     * com.smartgwt.client.docs.serverds.DataSource#dataFormat client-server dataFormat} 
     *  in use; this is completely separate from the <code>responseFormat</code> used to process the 
     *  response from the REST server</li>
     *  </ol>
     *  Note, if you provide a <code>responseTemplate</code>, it serves as the basis for the entire
     * JSON or XML structure sent back the client, so you can include, omit, rename or transform
     * values 
     *  from the client request as required.
     *  <p>
     *  <h3>Example template</h3>
     *  Consider a case where the REST server sends back this structure:<pre>
     *  {
     *       "ID": 1234,
     *       "FOO": 27,
     *       "BAR": "TRUE",
     *       "ABC": "String Value"
     *  }</pre>
     *  Or, equivalently for a <code>responseFormat</code> of XML (note, this would also require
     * a {@link com.smartgwt.client.docs.serverds.DataSource#recordXPath recordXPath} of "/ITEM" to
     * navigate to the subvalues):<pre>
     *  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
     *  &lt;ITEM&gt;
     *      &lt;ID&gt;1234&lt;/ID&gt;
     *      &lt;FOO&gt;27&lt;/FOO&gt;
     *      &lt;BAR&gt;TRUE&lt;/BAR&gt;
     *      &lt;ABC&gt;String value&lt;/ABC&gt;
     *  &lt;/ITEM&gt;</pre>
     *  You need to transform this into the record format required by your local dataSource, which 
     *  looks like this:<pre>
     *  {
     *       id: 1234, // ID from the REST response
     *       zoo: 27,  // FOO from the REST response
     *       baz: true,  // BAR from the REST response
     *       def: "String value"  // abc from the REST response
     *       isTBD: false  // should be true if "def" == "TBD", otherwise false
     *  }</pre>
     *  The following template would declaratively handle the necessary mappings from one format 
     *  to the other:<pre>
     *  &lt;responseTemplate&gt;
     *  { 
     *       id: $restResponseData.ID,
     *       zoo: $restResponseData.FOO,
     *       baz: #if($restResponseData.BAR == "TRUE") true #else false #end,
     *       def: "$restResponseData.ABC",
     *       isTBD: #if($restResponseData.ABC == "TBD") true #else false #end
     *  }
     *  &lt;/responseTemplate&gt;</pre>
     *  Logically, it makes sense to express the template in JSON: XML is only the format of the
     *  data sent back by the remote REST server; by the time we come to apply the template, that
     *  XML has already been parsed into an internal memory structure based on Java Lists and Maps,
     *  and JSON is the simplest text-based analog of that data structure.  
     *  <p>
     * However, if you have a {@link com.smartgwt.client.docs.serverds.DataSource#requestFormat
     * requestFormat} of "xml", you will be expressing your
     * {@link com.smartgwt.client.docs.serverds.DataSource#requestTemplate requestTemplate} in XML;
     * again, this makes sense because
     *  the <code>requestTemplate</code> is a representation of the actual text we are going to send
     *  to the remote REST server, whereas the <code>responseTemplate</code> is not a direct 
     *  representation of anything (post-templating, it will be serialized in the format that the 
     *  <i>client</i> requires, which unrelated to the format required by the remote REST server).
     *  <p>
     *  Even though this difference makes sense, it may seem confusing or inconsistent to express 
     *  the <code>requestTemplate</code> as XML and the <code>responseTemplate</code> as JSON, so
     *  when <code>requestFormat</code> is "xml", we support expressing the 
     *  <code>responseTemplate</code> in either JSON or XML.  So if you prefer, you could write 
     *  this template in XML:<pre>
     *  &lt;responseTemplate&gt;&lt;![CDATA[
     *    &lt;ITEM&gt;
     *       &lt;id&gt;$restResponseData.ID&lt;is/id&gt;
     *       &lt;zoo&gt;$restResponseData.FOO&lt;/zoo&gt;
     *       &lt;baz&gt;#if($restResponseData.BAR == "TRUE") true #else false #end&lt;/baz&gt;
     *       &lt;def&gt;$restResponseData.ABC&lt;/def&gt;
     *       &lt;isTBD&gt;#if($restResponseData.ABC == "TBD") true #else false #end&lt;isTBD&gt;
     *    &lt;/ITEM&gt;
     *  ]]&gt;&lt;/responseTemplate&gt;</pre>
     * See the <a href='https://velocity.apache.org/engine/2.3/user-guide.html'
     * target='_blank'>Velocity User Guide</a>
     *  for full details of Velocity's templating features
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.OperationBinding#responseTemplate
     * @see com.smartgwt.client.docs.serverds.DataSource#transformResponseScript
     * @see com.smartgwt.client.docs.serverds.DataSource#requestTemplate
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public String responseTemplate;

    /**
     * Whether to attempt validation on the client at all for this DataSource.  If unset (the
     * default), client-side validation is enabled. <p> Disabling client-side validation entirely is a
     * good way to test server-side validation.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.Validation Validation overview and related methods
     */
    public Boolean useLocalValidators;

    /**
     * Sets the strategy this DataSource uses to translate Java enumerated types (objects of type
     * enum) to and from Javascript.  This property is only applicable if you are using the Smart GWT
     * server
     *
     * <p>Default value is null
     */
    public EnumTranslateStrategy enumTranslateStrategy;

    /**
     * A clientOnly DataSource simulates the behavior of a remote data store by manipulating a static
     * dataset in memory as {@link com.smartgwt.client.data.DSRequest DSRequests} are executed on it. 
     * Any changes are lost when the user reloads the page or navigates away. <P> A clientOnly
     * DataSource will return responses asynchronously, just as a DataSource accessing remote data
     * does.  This allows a clientOnly DataSource to be used as a temporary placeholder while a real
     * DataSource is being implemented - if a clientOnly DataSource is replaced by a DataSource that
     * accesses a remote data store, UI code for components that used the clientOnly DataSource will
     * not need be changed. <P> A clientOnly DataSource can also be used as a shared cache of
     * modifiable data across multiple UI components when immediate saving is not desirable.  In this
     * case, several components may interact with a clientOnly DataSource and get the benefit of
     * {@link com.smartgwt.client.data.ResultSet} behaviors such as automatic cache sync and
     * in-browser data filtering and sorting.  When it's finally time to save, {@link
     * com.smartgwt.client.data.DataSource#getCacheData cacheData} can be inspected for changes and
     * data can be saved to the original DataSource via {@link
     * com.smartgwt.client.data.DataSource#addData addData()}, {@link
     * com.smartgwt.client.data.DataSource#updateData updateData()} and {@link
     * com.smartgwt.client.data.DataSource#removeData removeData()}, possibly in a {@link
     * com.smartgwt.client.rpc.RPCManager#startQueue transactional queue}.  Note that {@link
     * com.smartgwt.client.data.DataSource#getClientOnlyDataSource getClientOnlyDataSource()} lets you
     * easily obtain a <code>clientOnly</code> DataSource representing a subset of the data available
     * from a normal DataSource.   <P> See also {@link
     * com.smartgwt.client.data.DataSource#getCacheAllData cacheAllData} - a <code>cacheAllData</code>
     * behaves like a write-through cache, performing fetch and filter operations locally while still
     * performing remote save operations immediately. <P> ClientOnly DataSources can be populated
     * programmatically via {@link com.smartgwt.client.data.DataSource#getCacheData cacheData} - see
     * {@link com.smartgwt.client.docs.ClientOnlyDataSources this discussion} for other ways to
     * populate a client-only DataSource with data.
     *
     * <p>Default value is false
     * @see com.smartgwt.client.docs.ClientOnlyDataSources Client Only DataSources
     */
    public Boolean clientOnly;

    /**
     * For fields on this dataSource that specify  {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#ignoreTextMatchStyle ignoreTextMatchStyle}
     * true, the prevailing textMatchStyle is ignored and Smart GWT matches exact values.  This
     * property dictates whether that match is case-sensitive like the "exactCase" textMatchStyle, or 
     * case-insensitive like the "exact" textMatchStyle (the default).  Please see the  {@link
     * com.smartgwt.client.types.TextMatchStyle TextMatchStyle documentation} for a discussion of the
     * nuances of case-sensitive matching.
     *
     * <p>Default value is false
     */
    public Boolean ignoreTextMatchStyleCaseSensitive;

    /**
     * For a {@link com.smartgwt.client.docs.ServerRestConnector RestConnector DataSource}, the
     * response format to  use.  Can be overridden at operationBinding level, see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#responseFormat
     * OperationBinding.responseFormat} Note, if <code>responseFormat</code> is not specified at
     * either the DataSource or  OperationBinding level, response processing will throw an exception.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public RESTResponseFormat responseFormat;

    /**
     * Decides under what conditions the {@link com.smartgwt.client.data.ResultSet} cache should be
     * dropped when the {@link com.smartgwt.client.data.ResultSet#getCriteria ResultSet.criteria}
     * changes.
     *
     * <p>Default value is "dropOnShortening"
     * @see com.smartgwt.client.data.DataSource#compareCriteria
     */
    public CriteriaPolicy criteriaPolicy;

    /**
     * Applies to {@link com.smartgwt.client.docs.ServerRestConnector RestConnector dataSources} 
     * ({@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only, and
     * is overridable per 
     * operationBinding (see {@link com.smartgwt.client.docs.serverds.OperationBinding#requestTemplate
     * OperationBinding.requestTemplate}).
     *  <p>
     * If you have a {@link com.smartgwt.client.docs.serverds.DataSource#requestFormat requestFormat}
     * of "json" or "xml", 
     *  <code>RestConnector</code> will generate a block of JSON or XML, as appropriate, from your
     * criteria or values, as described in the {@link com.smartgwt.client.types.RESTRequestFormat}
     * docs.  You can also
     *  specify a <code>requestTemplate</code>, and <code>RestConnector</code> will use the template
     *  to drive the generation of the JSON or XML, so you can use the full power of the Velocity 
     *  Templating Language to perform mappings and other transformations, all declaratively.  The
     *  process involves the following steps:<ol>
     *  <li>We parse the template as JSON or XML, as appropriate, and convert it into an internal 
     *  object structure</li>
     * <li>Velocity templating is now performed on this structure, with the {@link
     * com.smartgwt.client.data.DSRequest}
     *  values and criteria as context variables</li>
     *  <li>We serialize the result of this process back to JSON or XML</li>
     *  </ol>
     *  Note, if you provide a <code>requestTemplate</code>, it serves as the basis for the entire
     *  JSON or XML structure sent to the REST server, so you can include, omit, rename or transform
     * values from the client request as required.  Also note, if the {@link
     * com.smartgwt.client.data.DSRequest dsRequest} 
     *  has multiple valueSets (records), we will apply the template to each valueSet in turn, to 
     *  construct a list for sending to the remote REST service (but note, this only works if the
     *  <code>requestFormat</code> is "json").
     *  <p>
     *  <h3>Example templates</h3>
     *  Templates can make use of all of the conditional and iteration features of the Velocity 
     *  Template Language, so can be used to perform some fairly sophisticated transformations.  
     *  Consider a case where we have an update request with data like this sent from the client:<pre>
     *  {
     *       pk: 1234,
     *       foo: 27,
     *       bar: true,
     *       abc: "String Value"
     *  }</pre>
     *  This record contains all the information you need to send an update request to the remote 
     *  REST server, but that server requires things in a different format, with different field 
     *  names, different representations of boolean values, and an additional field whose value 
     *  is derived.  This record looks like this:<pre>
     *  {
     *       id: 1234, // pk from our client record
     *       FOO: 27,  // foo from our client record
     *       BAR: 1,  // bar from our client record, true == 1, false == 0
     *       def: "String value"  // abc from our client record
     *       isTBD: 0  // should be 1 if "def" == "TBD", otherwise 0
     *  }</pre>
     *  The following template would declaratively handle the necessary mappings from one format 
     *  to the other:<pre>
     *  &lt;requestTemplate&gt;
     *  { 
     *       "id": $values.pk,
     *       "FOO": $values.foo,
     *       "BAR": #if($values.bar) 1 #else 0 #end,
     *       "def": "$values.abc",
     *       "isTBD": #if($values.abc == "TBD") 1 #else 0 #end
     *  }
     *  &lt;/requestTemplate&gt;</pre>
     * And the same thing in XML (this may require setting an {@link
     * com.smartgwt.client.docs.serverds.DataSource#xmlTag xmlTag} 
     *  and/or providing additional levels of containment to match the target server's structure - 
     *  XML often requires more boilerplate than JSON):<pre>
     *  &lt;requestTemplate&gt;
     *    &lt;record&gt;
     *       &lt;id&gt;$values.pk&lt;/id&gt;
     *       &lt;FOO&gt;$values.foo&lt;/FOO&gt;
     *       &lt;BAR&gt;#if($values.bar)1#else0#end&lt;/BAR&gt;
     *       &lt;def&gt;$values.abc&lt;/def&gt;
     *       &lt;isTBD&gt;#if($values.abc == "TBD")1#else0#end&lt;/isTBD&gt;
     *    &lt;/record&gt;
     *  &lt;/requestTemplate&gt;</pre>
     *  Templates can also be used to flatten structured data.  Say we have this incoming record:<pre>
     *  {
     *       customerId: 2770
     *       name: "Snape Networks Inc",
     *       contacts: [
     *           {name: "Isaura Lopez", title: "IT Manager"},
     *           {name: "Ngozi Okoduwa", title: "VP Procurement"},
     *           {name: "Andrew Jenkins", title: "Buyer"}
     *       ]
     *  }</pre>
     * The target REST server does not support a list of contact details, just two contact names:<pre>
     *  {
     *       Id: 2770, 
     *       Name: "Snape Networks Inc",  
     *       Contact1: "Isaura Lopez",
     *       Contact2: "Ngozi Okoduwa"
     *  }</pre>
     *  This transformation could be achieved with the following template:<pre>
     *  &lt;requestTemplate&gt;
     *  { 
     *       Id: $values.customerId,
     *       Name: "$values.name",
     *       #foreach ($contact in $values.contacts)
     *         #if ($foreach.count > 2) #break  #end
     *       Contact$foreach.count: "$contact.name"
     *       #end
     *  }
     *  &lt;/requestTemplate&gt;</pre>
     * See the <a href='https://velocity.apache.org/engine/2.3/user-guide.html'
     * target='_blank'>Velocity User Guide</a>
     *  for full details of Velocity's templating features
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.OperationBinding#requestTemplate
     * @see com.smartgwt.client.docs.serverds.DataSource#transformRequestScript
     * @see com.smartgwt.client.docs.serverds.DataSource#responseTemplate
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public String requestTemplate;

    /**
     * Allows you to specify {@link com.smartgwt.client.types.DSOperationType "add" operation} SQL
     * query execution  time threshold in milliseconds, which if exceeded query is identified as
     * "slow" and  may be logged under specific logging category. <p> See {@link
     * com.smartgwt.client.docs.serverds.DataSource#logSlowSQL logSlowSQL} for more details.
     *
     * <p>Default value is null
     */
    public Integer logSlowAdd;

    /**
     * Applies only to dataFormat: "json" and {@link
     * com.smartgwt.client.docs.serverds.DataSource#dataTransport dataTransport}:"scriptInclude". 
     * Specifies the name of the query parameter that tells your JSON service what function to call as
     * part of the response.
     *
     * <p>Default value is "callback"
     * @see com.smartgwt.client.docs.serverds.DataSource#dataFormat
     * @see com.smartgwt.client.docs.serverds.DataSource#operationBindings
     * @see com.smartgwt.client.docs.serverds.OperationBinding#callbackParam
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public String callbackParam;

    /**
     * For DataSources with {@link com.smartgwt.client.docs.serverds.DataSource#audit auditing
     * enabled}, specifies the field name used to store the timestamp when the operation was performed
     * (in a field of type "datetime").  If empty string is specified as the field name, the audit
     * DataSource will not store this field.
     *
     * <p>Default value is "audit_changeTime"
     */
    public String auditTimeStampFieldName;

    /**
     * When {@link com.smartgwt.client.data.DataSource#getMockMode mockMode} is enabled, criteria to
     * use in an initial "fetch" DSRequest to retrieve sample data.
     *
     * <p>Default value is null
     */
    public Criteria mockDataCriteria;

    /**
     * Indicates the dataset size that will cause Smart GWT Server to automatically switch into {@link
     * com.smartgwt.client.docs.serverds.DataSource#progressiveLoading progressive loading mode} for
     * this DataSource. To prevent automatic switching to progressive loading, set this property to
     * -1. This may also be prevented on a per-request basis by setting {@link
     * com.smartgwt.client.data.DSRequest#getProgressiveLoading DSRequest.progressiveLoading} to
     * <code>false</code>.
     *
     * <p>Default value is 200000
     * @see com.smartgwt.client.docs.serverds.DataSource#progressiveLoading
     * @see com.smartgwt.client.data.DSRequest#getProgressiveLoading
     * @see com.smartgwt.client.docs.ProgressiveLoading Progressive Loading
     */
    public int progressiveLoadingThreshold;

    /**
     * For a DataSource that inherits {@link com.smartgwt.client.docs.serverds.DataSource#fields
     * fields} from another DataSource  (via {@link
     * com.smartgwt.client.docs.serverds.DataSource#inheritsFrom inheritsFrom}), indicates that only
     * the fields listed in this DataSource should be shown.  All other inherited parent fields will
     * be marked "hidden:true".
     *
     * <p>Default value is null
     */
    public Boolean showLocalFieldsOnly;

    /**
     * For an XML DataSource, URN of the WebService to use to invoke operations.  This URN comes from
     * the "targetNamespace" attribute of the &lt;wsdl:definitions&gt; element in a WSDL (Web Service
     * Description Language) document, and serves as the unique identifier of the service. <P> Having
     * loaded a WebService using {@link com.smartgwt.client.data.XMLTools#loadWSDL
     * XMLTools.loadWSDL()}, setting <code>serviceNamespace</code> combined with specifying  {@link
     * com.smartgwt.client.docs.serverds.OperationBinding operationBindings} that set {@link
     * com.smartgwt.client.data.OperationBinding#getWsOperation OperationBinding.wsOperation} will
     * cause a DataSource to invoke web service operations to fulfill DataSource requests ({@link
     * com.smartgwt.client.data.DSRequest DSRequests}). <P> Setting <code>serviceNamespace</code> also
     * defaults {@link com.smartgwt.client.docs.serverds.DataSource#dataURL dataURL} to the service's
     * location, {@link com.smartgwt.client.docs.serverds.DataSource#dataFormat dataFormat} to "xml"
     * and {@link com.smartgwt.client.docs.serverds.OperationBinding#dataProtocol dataProtocol} to
     * "soap".
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public String serviceNamespace;

    /**
     * The native field name used by this DataSource on the server to represent
     * <code>fileVersion</code> for {@link com.smartgwt.client.docs.FileSource FileSource Operations}.
     * <p> Automatic file versioning is configured by the presence of this property: if you want
     * automatic versioning for a FileSource DataSource, it is sufficient to simply define a 
     * <code>fileVersionField</code>.  When automatic versioning is on:<ul> <li>Calls to {@link
     * com.smartgwt.client.data.DataSource#saveFile saveFile()} will save a new version of the file,
     * retaining previous  versions up to the maximum configured by {@link
     * com.smartgwt.client.docs.serverds.DataSource#maxFileVersions maxFileVersions}; when that
     * maximum is reached, the oldest version is overwritten</li> <li>The {@link
     * com.smartgwt.client.data.DataSource#getFile getFile()} API always returns the most recent
     * version</li> <li>The {@link com.smartgwt.client.data.DataSource#listFiles listFiles()} API only
     * includes the most recent version of any file</li> <li>You can view and retrieve earlier
     * versions of a file with the  {@link com.smartgwt.client.data.DataSource#listFileVersions
     * listFileVersions()} and {@link com.smartgwt.client.data.DataSource#getFileVersion
     * getFileVersion()} APIs.  Note that retrieving a previous version of a file and then calling
     * <code>saveFile()</code> goes through the normal process of saving a new version</li> </ul> <p>
     * The <code>fileVersion</code> field is expected to be of type "datetime", and automatic 
     * versioning will not work otherwise.  Note, to minimize the possibility of version  timestamp
     * collisions, we recommend that <code>fileVersion</code> fields specify  {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#storeMilliseconds storeMilliseconds}: true.
     * <p> If the fileVersionField is not configured, no automatic file versioning will be done.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#maxFileVersions
     * @see com.smartgwt.client.data.DataSource#listFileVersions
     * @see com.smartgwt.client.data.DataSource#getFileVersion
     * @see com.smartgwt.client.data.DataSource#removeFileVersion
     * @see com.smartgwt.client.docs.FileSource FileSource Operations
     */
    public String fileVersionField;

    /**
     * Indicates the mode to use for resolving templated references in this DataSource's 
     *  configuration file.  A "templated reference" is a reference that makes use of a special 
     *  token to indicate it is a placeholder that should be replaced with a value derived from 
     *  the <code>server.properties</code> file - in "<code>all</code>" mode, other relatively 
     *  static context available to the Velocity engine can also be used - during DataSource 
     *  initialization.  You can place a templated reference inside any string property, anywhere
     *  in your <code>.ds.xml</code> file.
     *  <p>
     *  Templated references are a simple, lightweight way to introduce a level of dynamism to 
     *  DataSource configuration.  For example, you could use a templated reference to dynamically
     *  set the {@link com.smartgwt.client.docs.serverds.DataSource#dbName dbName} 
     *  <p>
     *  If you need more extensive support for dynamic DataSources than can be provided with  
     *  templated references, you can completely customize configuration on-the-fly using a Dynamic
     *  DataSource Generator - see the server-side API 
     *  <code>com.isomorphic.datasource.DataSource.addDynamicDSGenerator()</code>
     *  <p>
     *  The default value for this property is generally "<code>configOnly</code>" - any DataSource
     *  that extends <code>BasicDataSource</code>, including the built-in SQL, Hibernate and JPA
     *  DataSource implementations, will default to this setting.  You can override this across the
     *  board by adding a setting like this to your <code>server.properties</code> file:<pre>
     *     dataSource.default.allowTemplateReferences: none
     *     # or dataSource.default.allowTemplateReferences: all
     *  </pre>
     *  For {@link com.smartgwt.client.docs.ServerRestConnector RestConnector} DataSources 
     * ({@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType}s "rest" and
     * "odata"), the default value for this 
     *  property is "<code>all</code>", in keeping with that DataSource's extensive support for 
     *  Velocity templating.
     *
     * <p>Default value is See Below
     * @see com.smartgwt.client.docs.serverds.DataSource#templateConfigToken
     */
    public DataSourceTemplateReferenceMode allowTemplateReferences;

    /**
     * When true, indicates that fields in this DataSource will never be positively updated to the
     * null value; they may arrive at null values by being omitted, but we will  not send actual null
     * values in update requests.  When false (the default), null is  not treated in any special way.
     * <p> Setting this value causes null-assigned fields to be replaced with the field's {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue nullReplacementValue},
     * if one is declared. If no <code>nullReplacementValue</code> is declared for the field, the null
     * assignment is replaced with the DataSource's {@link
     * com.smartgwt.client.docs.serverds.DataSource#nullStringValue nullStringValue},  {@link
     * com.smartgwt.client.docs.serverds.DataSource#nullIntegerValue nullIntegerValue}, {@link
     * com.smartgwt.client.docs.serverds.DataSource#nullFloatValue nullFloatValue}  or {@link
     * com.smartgwt.client.docs.serverds.DataSource#nullDateValue nullDateValue}, depending on the
     * field type. <p> For "add" operations, setting {@link
     * com.smartgwt.client.docs.serverds.DataSource#omitNullDefaultsOnAdd omitNullDefaultsOnAdd}
     * causes null-valued fields to be removed from the request entirely, rather than replaced with
     * default values as described above.
     *
     * <p>Default value is false
     */
    public boolean noNullUpdates;

    /**
     * If set to "false", transformation of values for {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#multiple multiple:true} fields, normally
     * controlled by {@link com.smartgwt.client.docs.serverds.DataSourceField#multipleStorage
     * DataSourceField.multipleStorage}, is instead disabled for this entire DataSource.
     *
     * <p>Default value is null
     */
    public Boolean transformMultipleFields;

    /**
     * For DataSources of {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType}
     * "generic" only, indicates
     *  whether we should suppress automatic aggregation and grouping handling logic.  By 
     *  default, the framework applies a post-fetch in-memory operation to handle aggregation
     * and grouping, as described in the {@link
     * com.smartgwt.client.docs.serverds.DataSource#allowAggregation allowAggregation} 
     *  documentation.  You can suppress this automatic behavior by setting this flag true.
     *  <p>
     *  Note, this is primarily intended as a back-compatibility flag, to allow you to 
     *  compensate for situations where your own custom DataSource implementations have their
     *  own aggregation handling, pre-dating the automatic in-memory aggregation feature.  In
     *  this circumstance, set this flag true to retain the existing behavior.  If you want to
     *  suppress the manual aggregation for <b>all</b> dataSources by default (you can still 
     *  re-enable it per-DataSource if required, using this <code>suppressManualAggregation</code>
     *  flag), add the following to your <code>server.properties</code> file:<pre>
     *      datasource.suppress.manual.aggregation: true
     *  </pre>
     *  Also note, this flag is ignored for SQL, JPA and Hibernate DataSources; those DataSource
     *  types handle aggregation inherently, using the underlying persistence engine's query 
     *  language.  If for some reason you need to suppress inherent aggregation for a given 
     * DataSource, mark it <code>{@link com.smartgwt.client.docs.serverds.DataSource#allowAggregation
     * allowAggregation}:false</code>
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#allowAggregation
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public String suppressManualAggregation;

    /**
     * For {@link com.smartgwt.client.docs.SqlDataSource SQL DataSources} only, this flag indicates
     * that we should
     *  render List-valued criteria elements as a series of simple comparisons linked with "OR"
     *  operators, rather than an SQL "IN" operation.  For example, given any of the following 
     *  simple or advanced criteria definitions (which are equivalent):<pre>
     *     {myField: ["x","y","z"]}
     *     {fieldName: "myField", operator:"equals", value: ["x","y","z"]}
     *     {fieldName: "myField", operator:"inSet", value: ["x","y","z"]}
     *  </pre>We would generate an SQL WHERE clause similar to this:<pre>
     *     WHERE myField="x" OR myField="y" OR myField="z"
     *  </pre>This is as opposed to the default handling of List-valued criteria elements, 
     *  which is to render them as a simple SQL "IN" comparison, if the field is of text or 
     *  numeric type:<pre>
     *     WHERE myField IN("x","y","z") 
     *  </pre>
     *  <b>NOTE:</b> As mentioned above, the use of SQL "IN" by default is only for text and
     *  numeric fields; for any other field type, we always simplify a list in criteria to a 
     *  series of OR comparisons, regardless of the setting of this flag.  Also please note 
     *  that this is intended as a backward-compatibility flag only, in case you have some 
     *  special reason for wanting the OR-clause approach.  The default use of "IN" leads to
     *  functionally equivalent but simpler SQL that may be more efficient or more easily 
     *  optimized by some databases.
     *  <p>
     *  It is possible to apply this setting as the default for all DataSources - just add the
     *  following setting to your <code>server.properties</code> file:<pre>
     *     sql.simplifyCriteriaListsToOrClause: true
     *  </pre>
     *
     * <p>Default value is null
     */
    public Boolean simplifyCriteriaListsToOrClause;

    /**
     * The name of the property this DataSource uses for constant name when translating Java
     * enumerated types to and from Javascript, if the {@link
     * com.smartgwt.client.types.EnumTranslateStrategy} is set to "bean".  Defaults to "_constant" if
     * not set. <p>  This property is only applicable if you are using the Smart GWT server
     *
     * <p>Default value is null
     */
    public String enumConstantProperty;

    /**
     * <b>Applicable to {@link com.smartgwt.client.docs.ServerRestConnector server-side REST
     * DataSources} only</b> <p> A scriptlet to be executed on the server after data has been fetched
     * from the REST service, but before it is processed through templating.   The intention is that
     * this scriptlet transforms the response data in some way, before that transformed data is passed
     * through templating and further downstream transformation steps  such as {@link
     * com.smartgwt.client.docs.serverds.DataSource#transformResponseScript record transformation}. 
     * If your use case  does not involve templating, there is no difference between putting your
     * transformation  logic in this script, or putting it in a <code>transformResponseScript</code> -
     * they are merely pre-templating and post-templating transformation opportunities, so if no
     * templating is involved, they are conceptually the same thing.  Accordingly, exactly the same 
     * variables are available to the <code>transformRawResponseScript</code> as to the  {@link
     * com.smartgwt.client.docs.serverds.DataSource#transformResponseScript transformResponseScript} -
     * see that property's documentation for details. <p> Note, if you prefer a Java solution rather
     * than placing scripts in your <code>.ds.xml</code>  files, you can instead extend the Java
     * <code>RestConnector</code> class and override its  <code>transformRawResponse()</code> method. 
     * If you both override the Java method and  provide a <code>transformRawResponseScript</code>,
     * the Java method runs first and any  transformations it makes will be visible to the script. 
     * See  {@link com.smartgwt.client.docs.serverds.DataSource#serverConstructor serverConstructor}
     * for details of how to use a custom  class to implement a DataSource server-side.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#script
     * @see com.smartgwt.client.docs.serverds.DataSource#transformResponseScript
     * @see com.smartgwt.client.docs.serverds.OperationBinding#transformRawResponseScript
     * @see com.smartgwt.client.docs.ServerScript Server Scripting
     */
    public String transformRawResponseScript;

    /**
     * Provides a default value for {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#recordName OperationBinding.recordName}.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public String recordName;

    /**
     * Applies to {@link com.smartgwt.client.docs.SqlDataSource SQL DataSources} only.
     *  <p>
     *  If this attribute is set to a non-negative value, it acts as a hard safety limit for 
     * client-initiated {@link com.smartgwt.client.data.DSRequest}s for "all rows".  If the server
     * encounters more rows 
     *  in a response than this safety limit, it will abort immediately with an Exception.
     *  <p>
     *  <b>This attribute is not meant to be a regular application facility.</b>  As mentioned 
     *  above, it is a safety mechanism, intended primarily to prevent bugs in development from
     *  causing long delays or server Out Of Memory crashes by unintentionally issuing requests
     *  that fetch huge numbers of rows (eg, by failing to specify filter criteria).
     *  <p>
     *  Note the following:<ul>
     *  <li>This limit only has an effect when "all rows" are requested - ie, when the request
     * does not specify an {@link com.smartgwt.client.data.DSRequest#getEndRow endRow}, or specifies
     * <code>endRow:-1</code>.
     *  If you specify a non-negative <code>endRow</code>, it will be honored even if that 
     *  means we need to return more than <code>clientRequestMaxRows</code> records</li>
     *  <li>If you need to handle very large datasets in a manageable way, consider using 
     *  {@link com.smartgwt.client.docs.ProgressiveLoading} to stream the data progressively</li>
     *  <li>Note that this attribute applies to client-initiated requests only.  If you want to
     *  provide a hard safety limit for all fetches, including requests initiated on the server,
     * set a {@link com.smartgwt.client.docs.serverds.DataSource#requestMaxRows requestMaxRows}
     * instead.  If both properties are specified, 
     *  <code>clientRequestMaxRows</code> wins for client-initiated requests, so it is possible
     *  to configure different limits for client- and server-initiated requests</li>
     *  </ul>
     *  <p>
     *  To set a default <code>clientRequestMaxRows</code> that will apply to all dataSources
     *  that do not specify the attribute, add the following to your <code>server.properties</code>
     *  file:<pre>
     *      # Fail with an error if we try to fetch more than 10000 rows in a client request
     *      sql.clientRequestMaxRows: 10000
     *  </pre>
     *
     * <p>Default value is -1
     * @see com.smartgwt.client.docs.serverds.DataSource#clientRequestMaxRows
     * @see com.smartgwt.client.docs.serverds.DataSource#progressiveLoading
     */
    public int clientRequestMaxRows;

    /**
     * Transport to use for all operations on this DataSource. Defaults to {@link
     * com.smartgwt.client.rpc.RPCManager#defaultTransport defaultTransport}.  This would typically
     * only be set to enable "scriptInclude" transport for contacting {@link
     * com.smartgwt.client.docs.serverds.DataSource#dataFormat JSON} web services hosted on servers
     * other than the origin server. <p> When using the "scriptInclude" transport, be sure to set
     * {@link com.smartgwt.client.docs.serverds.DataSource#callbackParam callbackParam} or {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#callbackParam
     * OperationBinding.callbackParam} to match the name of the query parameter name expected by your
     * JSON service provider.
     *
     * <p>Default value is RPCManager.defaultTransport
     * @see com.smartgwt.client.types.RPCTransport
     * @see com.smartgwt.client.docs.serverds.DataSource#callbackParam
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public RPCTransport dataTransport;

    /**
     * Indicates that for server responses, for any data being interpreted as DataSource records, 
     * only data that corresponds to declared fields should be retained; any extra fields should be
     * discarded. <P> For {@link com.smartgwt.client.docs.serverds.DataSource#dataFormat JSON} data,
     * this means extra properties in selected objects are dropped. <P> By default, for DMI
     * DSResponses, DSResponse.data is filtered on the server to just the set of fields defined on the
     * DataSource (see the overview in {@link com.smartgwt.client.docs.DmiOverview DMI}). <P> This
     * type of filtering can also be enabled for non-DMI DSResponses. By default it is enabled for
     * Hibernate and JPA datasources to avoid unintentional lazy loading too much of a data model. For
     * the rest of datasources this is disabled by default. <P> Explicitly setting this property to
     * <code>false</code> disables (or to <code>true</code> enables) this filtering for this
     * DataSource only. This setting overrides the configuration in {@link
     * com.smartgwt.client.docs.Server_properties server.properties}. This setting can be overridden
     * by {@link com.smartgwt.client.docs.serverds.ServerObject#dropExtraFields
     * ServerObject.dropExtraFields}.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public Boolean dropExtraFields;

    /**
     * For DataSources using the {@link com.smartgwt.client.docs.SqlDataSource Smart GWT SQL engine}
     * for persistence, which database configuration to use.  Database configurations can be created
     * using the {@link com.smartgwt.client.docs.AdminConsole Admin Console}.  If unset, the default
     * database configuration is used (which is also settable using the "Databases" tab).
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public String dbName;

    /**
     * For SQL DataSources, tells the framework whether to surround the associated  {@link
     * com.smartgwt.client.docs.serverds.DataSource#tableName table name} with quotation marks
     * whenever it appears in generated queries.  This is only required if you have to connect to a
     * table with a name that is in breach of your database product's naming conventions.  For
     * example, some  products (eg, Oracle) internally convert all unquoted references to upper case,
     * so if you create a table called <code><b>myTest</b></code>, the database actually calls it 
     * <code><b>MYTEST</b></code> unless you quoted the name in the create command, like this: <p>
     * <code><b>&nbsp;&nbsp;CREATE TABLE "myTest"</b></code> <p> If you <em>do</em> quote the name
     * like this, or if you have to connect to a legacy table that has been named in this way, then
     * you must set this property to tell the SQL engine  that it must quote any references to this
     * table name (this requirement depends on the  database in use - as noted below, some are not
     * affected by this problem).  If you do  not, you will see exceptions along the lines of "Table
     * or view 'myTest' does not exist". <p> Note, other database products (eg, Postgres) convert
     * unquoted names to lower case, which leads to the same issues.  Still others (eg, SQL Server)
     * are not case sensitive and are  not affected by this issue. <p> Generally, we recommend that
     * you avoid using this property unless you have a specific  reason to do so.  It is preferable to
     * avoid the issue altogether by simply not quoting  table names at creation time, if you are able
     * to do so.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#tableName
     * @see com.smartgwt.client.docs.serverds.DataSource#quoteColumnNames
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public Boolean quoteTableName;

    /**
     * The native field name used by this DataSource on the server to represent
     * <code>fileLastModified</code> for {@link com.smartgwt.client.docs.FileSource FileSource
     * Operations}. <p>If the fileLastModifiedField is not configured, then a field named
     * "fileLastModified" will be used, if it exists. <!-- TODO: Binary fields? -->  Otherwise, the
     * server will look for a field with a "modifierTimestamp" type. If that is not found, the
     * DataSource will not keep track of the last modified date.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.FileSource FileSource Operations
     */
    public String fileLastModifiedField;

    /**
     * Name of the field that has a long description of the record, or has the primary text data value
     * for a record that represents an email message, SMS, log or similar. <p> For example, for a
     * DataSource representing employees, a field containing the employee's "bio" might be a good
     * choice, or for an email message, the message body. <p> If descriptionField is unset, it
     * defaults to any field named "description" or "desc" in the record, or the first long text field
     * (greater than 255 characters) in the record, or null if no such field exists.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.DsSpecialFields DsSpecialFields overview and related methods
     */
    public String descriptionField;

    /**
     * For Direct Method Invocation (DMI) binding, declares the ServerObject to use as the default
     * target for all {@link com.smartgwt.client.docs.serverds.DataSource#operationBindings
     * operationBindings}.  Specifying this attribute in an XML DataSource stored on the server
     * enables DMI for this DataSource. <P> <i>Note that if a dataSource configuration has both a
     * {@link com.smartgwt.client.docs.serverds.OperationBinding#script &lt;script&gt;} block and a
     * specified <code>serverObject</code> for some operation, the script block will be executed, and
     * the serverObject ignored.</i>
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public ServerObject serverObject;

    /**
     * Allows you to specify {@link com.smartgwt.client.types.DSOperationType "custom" operation} SQL
     * query execution  time threshold in milliseconds, which if exceeded query is identified as
     * "slow" and  may be logged under specific logging category. <p> See {@link
     * com.smartgwt.client.docs.serverds.DataSource#logSlowSQL logSlowSQL} for more details.
     *
     * <p>Default value is null
     */
    public Integer logSlowCustom;

    /**
     * If set, titles are automatically derived from {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#name field.name} for any  field that does not
     * have a {@link com.smartgwt.client.docs.serverds.DataSourceField#title field.title} and is not
     * marked {@link com.smartgwt.client.docs.serverds.DataSourceField#hidden hidden}:true, by calling
     * the method {@link com.smartgwt.client.data.DataSource#getAutoTitle getAutoTitle()}.
     *
     * <p>Default value is true
     */
    public boolean autoDeriveTitles;

    /**
     * When true, indicates that any updates for this DataSource include only those fields  that have
     * actually changed (and primaryKey fields); when false (the default), all  field values are
     * included in updates, whether they have changed or not
     *
     * <p>Default value is false
     */
    public boolean sparseUpdates;

    /**
     * If set to true, both client and server-side advanced filtering used by Smart GWT will follow
     *  SQL99 behavior for dealing with NULL values, which is often counter-intuitive to users.
     *  Specifically, when a field has NULL value, all of the following expressions are false:
     *  <pre>
     *     field == "someValue"  (normally false)
     *     field != "someValue"  (normally true)
     *     not (field == "someValue")   (normally true)
     *     not (field != "someValue")   (normally false)
     *  </pre>
     *  This property can be overridden per-query by specifying <code>strictSQLFiltering</code>
     *  directly as a property on the {@link com.smartgwt.client.docs.serverds.AdvancedCriteria}.
     *  <p>
     *  <b>NOTE:</b> On the server side, this property is only applicable if you are using the 
     *  SQL DataSource; the other built-in types (Hibernate and JPA/JPA2) do not offer this mode.
     *
     * <p>Default value is false
     */
    public Boolean strictSQLFiltering;

    /**
     * If true, causes Smart GWT Server to use the "progressive loading" pattern for  fetches on this
     * dataSource, as described in the <b>Paging and total dataset length</b> section of the {@link
     * com.smartgwt.client.data.ResultSet ResultSet documentation}.  Essentially, this means that we
     * avoid issuing a row count query and instead advertise total rows as being slightly  more than
     * the number of rows we have already read (see {@link
     * com.smartgwt.client.docs.serverds.DataSource#endGap endGap}).  This  allows users to load more
     * of a dataset by scrolling past the end of the currently-loaded rows, but it prevents them from
     * scrolling directly to the end of the dataset. <p> Generally, progressive loading is appropriate
     * when you have to deal with very large  datasets. Note that by default, a dataSource will switch
     * into progressive loading mode  automatically when it detects that it is dealing with a dataset
     * beyond a certain size -  see {@link
     * com.smartgwt.client.docs.serverds.DataSource#progressiveLoadingThreshold
     * progressiveLoadingThreshold}. <p> This setting can be overridden for individual fetch
     * operations with the  {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#progressiveLoading
     * OperationBinding.progressiveLoading} property, and also at the level of the individual {@link
     * com.smartgwt.client.data.DSRequest#getProgressiveLoading DSRequest}.  You can also specify 
     * <code>progressiveLoading</code> on  {@link
     * com.smartgwt.client.widgets.DataBoundComponent#getProgressiveLoading DataBoundComponents} and
     * certain types of  <code>FormItem</code> - {@link
     * com.smartgwt.client.widgets.form.fields.SelectItem#getProgressiveLoading SelectItem} and 
     * {@link com.smartgwt.client.widgets.form.fields.ComboBoxItem#getProgressiveLoading
     * ComboBoxItem}. <p> Currently, this property only applies to users of the built-in
     * SQLDataSource, but you  could use it in custom DataSource implementations to trigger the server
     * behavior  described in the <code>ResultSet</code> documentation linked to above.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.OperationBinding#progressiveLoading
     * @see com.smartgwt.client.docs.serverds.DataSource#progressiveLoadingThreshold
     * @see com.smartgwt.client.docs.serverds.DataSource#lookAhead
     * @see com.smartgwt.client.docs.serverds.DataSource#endGap
     * @see com.smartgwt.client.docs.ProgressiveLoading Progressive Loading
     */
    public Boolean progressiveLoading;

    /**
     * For DataSources of {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType}
     * "hibernate", the name of a Spring  bean to query to obtain Hibernate Configuration for this
     * particular DataSource.  Note that this is intended for DataSource-specific configuration
     * overrides for unusual  circumstances, such as a DataSource whose physical data store is a
     * completely  different database to that used by other DataSources.  See the  {@link
     * com.smartgwt.client.docs.HibernateIntegration Integration with Hibernate} article for more 
     * information
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public String configBean;

    /**
     * For DataSources that specify {@link
     * com.smartgwt.client.docs.serverds.DataSource#autoDeriveSchema autoDeriveSchema}, this property
     * indicates the name of the Spring bean, Hibernate mapping or fully-qualified Java class to use
     * as parent  schema.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#autoDeriveSchema
     */
    public String schemaBean;

    /**
     * For DataSources with {@link com.smartgwt.client.docs.serverds.DataSource#audit auditing
     * enabled}, optionally specifies the {@link
     * com.smartgwt.client.docs.serverds.DataSource#serverConstructor serverConstructor} for the
     * automatically generated audit DataSource.  The default is to use the same
     * <code>serverConstructor</code> as the DataSource where <code>audit="true"</code> was declared.
     * <p> This property is primarily intended to allow the use of SQLDataSource ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType:"sql"}) as an audit
     * DataSource for a DataSource that might be of another type.  For example, you might have a
     * DataSource that implements all CRUD operations via Java logic in {@link
     * com.smartgwt.client.docs.DmiOverview DMI declaration} methods, and so doesn't provide generic
     * storage; by using SQLDataSource as the type of your audit DataSource, you don't need to
     * implement your own scheme for storing and querying audit data, and the necessary audit tables
     * will be automatically generated in the database. <p> Similarly, even if you do use a reusable
     * DataSource type such as the built-in JPADataSource, using SQLDataSource for audit DataSources
     * means there's no need to write a JPA bean just to achieve storage of an audit trail. <p> To
     * simplify this intended usage, the string "sql" is allowed for <code>auditDSConstructor</code>
     * as a means of specifying that the built-in SQLDataSource class should be used.  For any other
     * type, use the fully qualified Java classname, as is normal for <code>serverConstructor</code>.
     *
     * <p>Default value is null
     */
    public String auditDSConstructor;

    /**
     * The special token to look for when trying to resolve template references when the 
     * {@link com.smartgwt.client.docs.serverds.DataSource#allowTemplateReferences template references
     * mode} is 
     *  "<code>configOnly</code>".  In this mode, the system looks for this token, followed by the
     *  strict pattern <code>["property_name"]</code> (single quotes are allowed instead of double
     *  quotes, but that is the only supoprted variation).  
     *  <p>
     *  By default the template token is "<code>$config</code>" because that is the token used for 
     *  Velocity templating, and is thus familiar.  If you need to use a different token - perhaps 
     *  because the "$" symbol already has special significance in your system - you can do so by 
     *  setting this property.  For example, if you set <code>templateConfigToken="#conf"</code>, 
     *  your templated references would look like this:<pre>
     *     someProperty="#conf['my.property.name']"
     *  </pre>
     *
     * <p>Default value is "$config"
     * @see com.smartgwt.client.docs.serverds.DataSource#allowTemplateReferences
     */
    public String templateConfigToken;

    /**
     * The name of the property this DataSource uses for ordinal number when translating Java
     * enumerated types to and from Javascript, if the {@link
     * com.smartgwt.client.types.EnumTranslateStrategy} is set to "bean".  Defaults to "_ordinal" if
     * not set. <p>  This property is only applicable if you are using the Smart GWT server
     *
     * <p>Default value is null
     */
    public String enumOrdinalProperty;

    /**
     * Applies to RestConnector dataSources ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only, and is
     * overridable per operationBinding (see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#csvDelimiter
     * OperationBinding.csvDelimiter}). <p> This property specifies the character to recognise as the
     * delimiter when parsing REST  service responses where the {@link
     * com.smartgwt.client.docs.serverds.DataSource#responseFormat responseFormat} is "csv"
     *
     * <p>Default value is ","
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public String csvDelimiter;

    /**
     * For DataSources using the {@link com.smartgwt.client.docs.SqlDataSource Smart GWT SQL engine}
     * for persistence, whether to use ANSI-style joins (ie, joins implemented with JOIN directives in
     * the table clause, as opposed to additional join expressions in the where clause). The default
     * value of null has the same meaning as setting this flag to false. <P> Note, outer joins (see
     * {@link com.smartgwt.client.docs.serverds.DataSourceField#joinType joinType}) do not work with
     * all supported database products unless you use ANSI joins.  Other than that, the join 
     * strategies are equivalent. <P> If you wish to switch on ANSI-style joins for every DataSource,
     * without the need to  manually set this property on all of them, set {@link
     * com.smartgwt.client.docs.Server_properties server.properties} flag 
     * <code>sql.useAnsiJoins</code> to true.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.data.OperationBinding#getIncludeAnsiJoinsInTableClause
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public Boolean useAnsiJoins;

    /**
     * Applies to RestConnector dataSources ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only, and is
     * overridable per operationBinding (see  {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#requiresCompleteRESTResponse
     * OperationBinding.requiresCompleteRESTResponse}). <p> If true, this flag indicates that the
     * DataSource requires access to the entire REST response, not just the data part configured by
     * the {@link com.smartgwt.client.docs.serverds.DataSource#recordXPath recordXPath}.  This  is
     * often the case for REST services that send back useful metadata alongside the data itself. For
     * example, some REST services limit the number of records that can be retrieved in one  service
     * call, and will return the total number of records actually available in some kind  of metadata
     * property.   <p> This is useful information that a DataSource can use in custom logic to return
     * a richer  response to the client.  This custom logic can be written in Java in a  {@link
     * com.smartgwt.client.docs.DmiOverview DMI method} or  {@link
     * com.smartgwt.client.docs.serverds.DataSource#serverConstructor custom DataSource
     * implementation}, or in any JSR223 scripting language, as a {@link
     * com.smartgwt.client.docs.serverds.DataSource#script server script} or  {@link
     * com.smartgwt.client.docs.serverds.DataSource#transformResponseScript response transformation
     * script}. <p> When this flag is true, the complete REST response is available to your
     * server-side custom  code as follows:<ul> <li>For a DMI or custom dataSource implementation that
     * invokes the <code>RestConnector</code> built-in logic by calling <code>execute()</code> on
     * either the <code>DSRequest</code> or the <code>DataSource</code> itself (this would be a
     * <code>super()</code> call for a custom impl),  the <code>DSResponse</code> returned to your
     * code will contain a property called  "completeData"</li> <li>For a <code>&lt;script&gt;</code>
     * or <code>&lt;transformResponseScript&gt;</code>, a  variable called "completeData" will be
     * available to your script (completeData is also  available as
     * <code>dsResponse.completeData</code>)</li> </ul> Note, for requests that came originally from a
     * remote client, the "completeData" property of the <code>DSResponse</code> will be serialized
     * and returned to the client.  If you do not  want this, your custom server code should remove
     * that property from the  <code>DSResponse</code> when it has finished with it.
     *
     * <p>Default value is false
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public Boolean requiresCompleteRESTResponse;

    /**
     * Whether RPCRequests sent by this DataSource should enable {@link
     * com.smartgwt.client.rpc.RPCRequest#getShowPrompt RPCRequest.showPrompt} in order to block user
     * interactions until the request completes.   <p> DataSource requests default to blocking UI
     * interaction because, very often, if the user continues to interact with an application that is
     * waiting for a server response, some kind of invalid or ambiguous situation can arise. <p>
     * Examples include pressing a "Save" button a second time before the first save completes, making
     * further edits while edits are still being saved, or trying to initiate editing on a grid that
     * hasn't loaded data. <p> Defaulting to blocking the UI prevents these bad interactions, or
     * alternatively, avoids the developer having to write repetitive code to block invalid
     * interactions on every screen. <p> If an operation should ever be non-blocking, methods that
     * initiate DataSource requests (such as {@link com.smartgwt.client.data.DataSource#fetchData
     * fetchData()}) will generally have a <code>requestProperties</code> argument allowing
     * <code>showPrompt</code> to be set to false for a specific request.
     *
     * <p>Default value is true
     */
    public Boolean showPrompt;

    /**
     * The default textMatchStyle to use for {@link com.smartgwt.client.data.DSRequest}s that do not
     * explicitly state  a {@link com.smartgwt.client.data.DSRequest#getTextMatchStyle
     * textMatchStyle}.    Note, however, that DSRequests  issued by {@link
     * com.smartgwt.client.widgets.grid.ListGrid}s and other {@link
     * com.smartgwt.client.widgets.DataBoundComponent components} will  generally have a setting for
     * textMatchStyle on the component itself (see {@link
     * com.smartgwt.client.widgets.grid.ListGrid#getAutoFetchTextMatchStyle
     * ListGrid.autoFetchTextMatchStyle}, for example).
     *
     * <p>Default value is "exact"
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public TextMatchStyle defaultTextMatchStyle;

    /**
     * When {@link com.smartgwt.client.data.DataSource#getMockMode mockMode} is enabled, number of
     * rows of data to retrieve via an initial "fetch" DSRequest, for use as sample data.  Set to null
     * to retrieve all available rows.
     *
     * <p>Default value is 75
     */
    public Integer mockDataRows;

    /**
     * Whether to convert relative date values to concrete date values before sending to the  server. 
     * Default value is true, which means that the server does not need to understand  how to filter
     * using relative dates - it receives all date values as absolute dates. <p> If the server would
     * receive relative date values from the client, by default they would be unchanged in DMI and
     * automatically converted during the request execution. This may be changed via
     * <code>server.properties</code> setting <code>datasources.autoConvertRelativeDates</code> which
     * can be set to the following values: <ul> <li/><code>postDMI</code> - the default value
     * described above <li/><code>preDMI</code> - relative date values will be converted to absolute
     * date values right away, so they will be already converted in DMI <li/><code>disabled</code> -
     * relative date values will not be automatically converted, so it must be done completely
     * manually or by calling the <code>DSRequest.convertRelativeDates()</code> server-side API. </ul>
     * Normally there is no need to convert relative dates on the server, this is done by default on
     * the client before the request is sent to the server. The primary purpose for converting
     * relative dates on the server is when there is a need to store and use relative dates at a later
     * point such as in an automated job without any involvement from the client. See more details in
     * the javadoc for <code>DataSource.convertRelativeDates(Criterion)</code> server-side API.
     *
     * <p>Default value is true
     */
    public Boolean autoConvertRelativeDates;

    /**
     * User-visible name for this DataSource. <P> For example, for the supplyItem DataSource, "Supply
     * Item". <P> If is unset, <code>getAutoTitle()</code> method will be used with
     * <code>dataSource.ID</code>. value in order to derive a default value for the title. <P> For
     * example "employee" ID will be derived to "Employee", "team_member" ID will be  derived to "Team
     * Member".
     *
     * <p>Default value is dataSource.ID
     */
    public String title;

    /**
     * Namespaces definitions to add to the root element of outbound XML messages sent to a web
     *  service, as a mapping from namespace prefix to namespace URI.
     *  <P>
     *  The default value is:
     *  <pre>
     *    globalNamespaces : {
     *       xsi: "http://www.w3.org/2001/XMLSchema-instance",
     *       xsd: "http://www.w3.org/2001/XMLSchema"
     *    },
     *  </pre>
     *  This default value allows the use of the xsi:type and xsi:nil attributes without further
     *  declarations.
     *  <P>
     *  Note that some web services will only accept specific revisions of the XML Schema URI.
     *  If xsi-namespaced attributes seem to be ignored by an older webservice, try the URI
     *  "http://www.w3.org/1999/XMLSchema-instance" instead.
     *
     * <p>Default value is ...
     */
    public Map globalNamespaces;

    /**
     * Analogous to {@link com.smartgwt.client.docs.serverds.DataSource#dropExtraFields
     * dropExtraFields}, for data sent to the server.  Setting this attribute to false ensures that
     * for any records in the data object, only fields that correspond to declared dataSource fields
     * will be present on the dsRequest data object passed to {@link
     * com.smartgwt.client.data.DataSource#transformRequest transformRequest()} and ultimately sent to
     * the server.
     *
     * <p>Default value is true
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public Boolean sendExtraFields;

    /**
     * Criteria that are implicitly applied to all fetches made through this DataSource.  These
     * criteria are never shown to or edited by the user and are cumulative with any other  criteria
     * provided on the DSRequest. <P> For example, a DataSource might *always* implicitly limit its
     * fetch results to records  owned by the current user's department.  Components and ResultSets
     * requesting data  from the DataSource can then apply further implicitCriteria of their own,
     * separately  from their regular, user-editable criteria. <P> For instance, a grid bound to this
     * dataSource might be further limited to  implicitly show only the subset of records created by
     * the current user.  See  {@link
     * com.smartgwt.client.widgets.DataBoundComponent#getImplicitCriteria
     * DataBoundComponent.implicitCriteria} and {@link
     * com.smartgwt.client.data.ResultSet#getImplicitCriteria ResultSet.implicitCriteria} for  more on
     * these localized options. <P> Note that, while <code>implicitCriteria</code> can be declared in
     * a server DataSource  file using {@link com.smartgwt.client.docs.ComponentXML Component XML}, it
     * is an entirely client-side  feature, added by client-side components.  So it does not affect
     * server-side requests,  and will not be added to client-side requests that don't come from a
     * Smart GWT UI  (eg RestHandler).
     *
     * <p>Default value is null
     */
    public Criteria implicitCriteria;

    /**
     * User-visible plural name for this DataSource. <P> For example, for the supplyItem DataSource,
     * "Supply Items". <P> Defaults to <code>dataSource.title</code> + "s".
     *
     * <p>Default value is dataSource.ID
     */
    public String pluralTitle;

    /**
     * For DataSources using the {@link com.smartgwt.client.docs.SqlDataSource Smart GWT SQL engine}
     * for persistence, what database table name to use.  The default is to use the DataSource ID as
     * the table name.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#quoteTableName
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public String tableName;

    /**
     * See {@link com.smartgwt.client.docs.serverds.OperationBinding#recordXPath
     * OperationBinding.recordXPath}.  <code>recordXPath</code> can be specified directly on the
     * DataSource for a simple read-only DataSource only capable of "fetch" operations, on clientOnly
     * DataSources using  String, or on {@link com.smartgwt.client.docs.ServerRestConnector
     * RestConnector} dataSources
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public XPathExpression recordXPath;

    /**
     * This property is only applicable to {@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType SQL} DataSources, and  only for {@link
     * com.smartgwt.client.docs.serverds.OperationBinding operations} that express a  {@link
     * com.smartgwt.client.data.OperationBinding#getCustomSQL customSQL} clause.  In these
     * circumstances, we  generally switch off paging because we are unable to generate a "row count"
     * query that tells the framework the size of the complete, unpaged resultset. <p> The
     * <code>useSubselectForRowCount</code> flag causes the framework to derive a rowcount query by
     * simply wrapping the entire customSQL clause in a subselect, like so:<code><br>
     * &nbsp;&nbsp;&nbsp;&nbsp;SELECT COUNT(*) FROM ({customSQL clause here})</code> <p> However, this
     * is not guaranteed to give good results.  Because the customSQL clause can contain anything that
     * you can write in SQL, running it inside a subselect in order to  count the rows might not work,
     * might have unintended side-effects (if, for example, it  is a stored procedure call that
     * performs updates as part of its function), or it might  just be a bad idea - for example, if
     * the customSQL query is slow-running, you'll make  it twice as slow with this flag, simply
     * because you'll be running it twice.  We  recommend using this flag with care. <p> NOTE: This
     * setting can be overridden per-operation - see  {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#useSubselectForRowCount
     * OperationBinding.useSubselectForRowCount}.  You can also set a global default for this setting,
     * so you don't have to specify it in every dataSource - define 
     * <code>useSubselectForRowCount</code> as true in your  {@link
     * com.smartgwt.client.docs.Server_properties server.properties} file.
     *
     * <p>Default value is null
     */
    public Boolean useSubselectForRowCount;

    /**
     * The native field name used by this DataSource on the server to represent the
     * <code>fileContents</code> for {@link com.smartgwt.client.docs.FileSource FileSource
     * Operations}. <p>If the fileContentsField is not configured, then a field named "fileContents"
     * or "contents" will be used, if it exists. <!-- If not found, the first field with a "binary"
     * type will be used. TODO: Binary field support not working yet. --> If not found, the longest
     * text field which is not the {@link com.smartgwt.client.docs.serverds.DataSource#fileNameField
     * fileNameField}, {@link com.smartgwt.client.docs.serverds.DataSource#fileTypeField
     * fileTypeField} or {@link com.smartgwt.client.docs.serverds.DataSource#fileFormatField
     * fileFormatField} will be used. <p>Note that the only method which will actually return the
     * fileContents is {@link com.smartgwt.client.data.DataSource#getFile getFile()} -- the other
     * {@link com.smartgwt.client.docs.FileSource FileSource} methods omit the fileContents for the
     * sake of efficiency.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.FileSource FileSource Operations
     */
    public String fileContentsField;

    /**
     * For a DataSource stored in .xml format on the Smart GWT server, indicates what server-side
     * connector to use to execute requests, that is, what happens if you call dsRequest.execute() in
     * server code.
     *
     * <p>Default value is "generic"
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public DSServerType serverType;

    /**
     * Applies to {@link com.smartgwt.client.docs.SqlDataSource SQL DataSources} only.
     *  <p>
     * The same as {@link com.smartgwt.client.docs.serverds.DataSource#clientRequestMaxRows
     * clientRequestMaxRows}, but applies 
     *  to all requests, not just client-initiated ones.  See the documentation for 
     *  <code>clientRequestMaxRows</code> for details.  To reiterate the warning given for 
     *  that property, this is a safety limit that results in an Exception being thrown: <b>it
     *  is not intended to be used as a regular application facility</b>
     *  <p>
     *  To set a default <code>requestMaxRows</code> that will apply to all dataSources that do
     *  not specify the attribute, add the following to your <code>server.properties</code>
     *  file:<pre>
     *      # Fail with an error if we try to fetch more than 50000 rows in any request
     *      sql.clientRequestMaxRows: 50000
     *  </pre>
     *
     * <p>Default value is -1
     * @see com.smartgwt.client.docs.serverds.DataSource#clientRequestMaxRows
     * @see com.smartgwt.client.docs.serverds.DataSource#progressiveLoading
     */
    public int requestMaxRows;

    /**
     * For a {@link com.smartgwt.client.docs.ServerRestConnector RestConnector DataSource}, the
     * request format to  use when contacting the remote REST service.  Can be overridden at
     * operationBinding level,  see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#requestFormat
     * OperationBinding.requestFormat}.  Note, if <code>requestFormat</code> is not  specified at
     * either the DataSource or OperationBinding level, the request will be rejected.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public RESTRequestFormat requestFormat;

    /**
     * If set, the DataSource will ensure that it never uses a cached HTTP response, even if the
     * server marks the response as cacheable. <P> Note that this does not disable caching at higher
     * levels in the framework, for example, the caching performed by {@link
     * com.smartgwt.client.data.ResultSet}.
     *
     * <p>Default value is true
     */
    public Boolean preventHTTPCaching;

    /**
     * When true, indicates that this DataSource supports multi-level sorting.
     *
     * <p>Default value is true
     */
    public boolean canMultiSort;

    /**
     * Whether a user must be authenticated in order to access this DataSource.  This establishes a
     * default for the DataSource as a whole; individual {@link
     * com.smartgwt.client.docs.serverds.DataSource#operationBindings operationBindings} within the
     * DataSource may still override this setting by explicitly setting {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#requiresAuthentication
     * OperationBinding.requiresAuthentication}. <P> Whether the user is authenticated is determined
     * by calling <code>httpServletRequest.getRemoteUser()</code>, hence works with both simple J2EE
     * security (realms and form-based authentication) and JAAS (Java Authentication & Authorization
     * Service). <P> If you wish to use an authentication scheme that does not make use of the servlet
     * API's  standards, Smart GWT Server also implements the <code>setAuthenticated</code> method on
     * <code>RPCManager</code>.  You can use this API to tell Smart GWT that all the  requests in the
     * queue currently being processed are associated with an authenticated user; in this case, Smart
     * GWT will not attempt to authenticate the user via 
     * <code>httpServletRequest.getRemoteUser()</code> <P> You can set the default value for this
     * property via setting "authentication.defaultRequired" in {@link
     * com.smartgwt.client.docs.Server_properties server.properties}.  This allows you to, for
     * example, cause all DataSources to require authentication for all operations by default. <P>
     * Note that setting this property does not automatically cause an authentication mechanism to
     * appear - you still need to separately configure an authentication system.  Likewise, setting
     * requiresAuthentication="false" does not automatically allow users to bypass your authentication
     * mechanism - you need to set up a URL that will accept DSRequests and process them similar to
     * the default "IDACall" servlet, and which is not protected by the authentication system.  See
     * {@link com.smartgwt.client.docs.ServletDetails Deploying Smart GWT} for details on the IDACall
     * servlet.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.DeclarativeSecurity Declarative Security
     */
    public Boolean requiresAuthentication;

    /**
     * Allows you to specify {@link com.smartgwt.client.types.DSOperationType "fetch" operation} SQL
     * query execution  time threshold in milliseconds, which if exceeded query is identified as
     * "slow" and  may be logged under specific logging category. <p> See {@link
     * com.smartgwt.client.docs.serverds.DataSource#logSlowSQL logSlowSQL} for more details.
     *
     * <p>Default value is null
     */
    public Integer logSlowFetch;

    /**
     * This property indicates whether this DataSource supports referencees to related fields in
     * criteria, either using qualified field names, or subqueries.  See the  {@link
     * com.smartgwt.client.docs.serverds.AdvancedCriterionSubquery subquery filtering overview} for
     * details.  Note, only  {@link com.smartgwt.client.docs.serverds.AdvancedCriteria} can contain
     * related fields. <p> All server-side DataSource implementations provide a level of support for
     * related  fields in criteria, but only {@link com.smartgwt.client.docs.SqlDataSource SQL
     * DataSources} can handle  cases that require conditions to be considered simultaneously with a
     * join to the outer dataSource. <p>
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#allowRelatedFieldsInCriteria
     */
    public Boolean allowRelatedFieldsInCriteria;

    /**
     * Best field to use for a user-visible title for an individual record from this dataSource. <p>
     * For example, for a DataSource of employees, a "full name" field would probably most clearly
     * label an employee record. <p> If not explicitly set, the titleField is determined by looking
     * for fields named "name", "<i>dataSourceId</i>Name", "title", "<i>dataSourceId</i>Title",
     * "label", "<i>dataSourceId</i>Label", "id" and "<i>dataSourceId</i>Id".  For example, for a
     * DataSource with ID "customer", a field called <i>customerName</i> would be found if there were
     * no "name" field.  Search is case insensitive, and an underscore is allowed after
     * <i>dataSourceId</i> (so that, for example, "CUSTOMER_NAME" would also be found and preferred).
     * <p> For purposes of this search, any trailing numerals in the DataSource ID are discarded, so a
     * DataSource with ID "office2" will search for title fields as if the ID were just "office". <p>
     * If no field is found that matches any of the names above, then the first field is designated as
     * the titleField.
     *
     * <p>Default value is see below
     * @see com.smartgwt.client.docs.DsSpecialFields DsSpecialFields overview and related methods
     */
    public String titleField;

    /**
     * For dataSources of {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType}
     * "sql" only, this property sets the multi-insert batch size for add requests on this {@link
     * com.smartgwt.client.docs.serverds.DataSource dataSource}.  Only has an effect if the {@link
     * com.smartgwt.client.data.DataSource#addData add request} specifies a list of  records as the
     * data, and only if {@link com.smartgwt.client.docs.serverds.DataSource#multiInsertStrategy
     * multiInsertStrategy} is set to "multipleValues", either globally or at the {@link
     * com.smartgwt.client.data.DSRequest DSRequest},  {@link
     * com.smartgwt.client.docs.serverds.OperationBinding OperationBinding}, or {@link
     * com.smartgwt.client.docs.serverds.DataSource DataSource} level. <p> The multi-insert batch size
     * determines the maximum number of <code>VALUES</code> clauses Smart GWT Server will generate for
     * a single <code>INSERT</code> operation.  The optimum value for this setting depends on the
     * underlying database, but typically larger batches  yield better performance.  if the number of
     * records in the request exceeds the batch size, we break it up into however many batches are
     * required.  For example, if the batch size is  55 and the request contains 200 records, we would
     * create 4 database <code>INSERT</code> operations - 3 with 55 <code>VALUES</code> clauses, and a
     * final one with the remaining 35. <p> Note that this setting (along with the other multi-insert
     * properties,  {@link com.smartgwt.client.docs.serverds.DataSource#multiInsertStrategy
     * multiInsertStrategy} and  {@link
     * com.smartgwt.client.docs.serverds.DataSource#multiInsertNonMatchingStrategy
     * multiInsertNonMatchingStrategy}) can be  overridden at the {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#multiInsertBatchSize operationBinding level}
     * and  the {@link com.smartgwt.client.data.DSRequest#getMultiInsertBatchSize dsRequest level}. 
     * If you wish to configure  multi-insert setting globally, see the documentation for  {@link
     * com.smartgwt.client.docs.serverds.DataSource#multiInsertStrategy multiInsertStrategy}.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#multiInsertStrategy
     * @see com.smartgwt.client.docs.serverds.DataSource#multiInsertNonMatchingStrategy
     */
    public Integer multiInsertBatchSize;

    /**
     * This property indicates whether this DataSource supports aggregation/summarization and 
     * grouping of field values using the {@link
     * com.smartgwt.client.data.DSRequest#getSummaryFunctions summaryFunction}  mechanism.  All the
     * {@link com.smartgwt.client.docs.serverds.DataSource#serverType built-in DataSource types}
     * support  aggregation by default:  SQL, Hibernate and JPA DataSources support aggregation 
     * inherently, using the underlying persistence engine's query language.  Other server-side 
     * implementations support aggregation and grouping as a post-fetch, in-memory operation;  and
     * because this in-memory aggregation happens after the DataSource has fetched data,  and is
     * transparent to the DataSource, it will also automatically apply to your own  custom DataSource
     * implementations without any effort, unless you switch it off (see  {@link
     * com.smartgwt.client.docs.serverds.DataSource#suppressManualAggregation
     * suppressManualAggregation}). <p> {@link com.smartgwt.client.docs.serverds.DataSource#clientOnly
     * clientOnly} DataSources also support aggregation and  grouping, using a similar approach to the
     * server-side post-fetch aggregation described  above (but running on the client, obviously). <p>
     * This property is intended as a means of preventing attempts to run aggregations on a  given
     * DataSource.  For example, if you know that running aggregations on a particular DataSource can
     * cause performance problems, you can set this flag false to disallow all aggregations on that
     * DataSource.  The only meaningful place to specify this property is in a DataSource descriptor
     * (<code>.ds.xml</code> file), which will cause it to be  enforced on the server.  This means
     * that if you run a fetch involving summaryFunctions at the {@link
     * com.smartgwt.client.data.DSRequest#getSummaryFunctions DSRequest},  {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#summaryFunctions OperationBinding} or 
     * {@link com.smartgwt.client.docs.serverds.DataSourceField#includeSummaryFunction field} level,
     * against a DataSource that  advertises itself as <code>allowAggregation:false</code>, it will be
     * rejected.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#suppressManualAggregation
     */
    public Boolean allowAggregation;

    /**
     * Applies to RestConnector dataSources ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only,
     * and is overridable per operationBinding (see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#csvQuoteCharacter
     * OperationBinding.csvQuoteCharacter}).
     *  <p>
     *  This property specifies the character to treat a string quotation mechanism when parsing
     * REST service responses where the {@link
     * com.smartgwt.client.docs.serverds.DataSource#responseFormat responseFormat} is "csv".  Text in
     * CSV 
     *  responses does not have to quote string data, but many uses of CSV do quote strings because
     * it allows text in the data to contain occurences of the {@link
     * com.smartgwt.client.docs.serverds.DataSource#csvDelimiter csvDelimiter}.  For
     *  example, if the <code>csvDelimiter</code> is the default value of ",", quoting allows the 
     *  following text, which would otherwise be ambiguous:<pre>
     *    1,ABC,"This is a text string, with a comma in the middle"</pre>
     *
     * <p>Default value is '"'
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public String csvQuoteCharacter;

    /**
     * Indicates that declarative security rules are waived for rows that were created by the  current
     * user.  Practically, this means that when a security check fails, instead of a  security
     * exception being thrown, we alter the criteria to ensure that the request can  only return or
     * affect rows that were created by the current authenticated user.  This  allows you to create
     * security regimes whereby users can see and edit data they created,  but have access to other
     * users' data forbidden or limited. <p> In order for this to work, we require two things:<ul>
     * <li>The DataSource must specify a field of type "creator" - this field type is described     
     * on {@link com.smartgwt.client.types.FieldType this page}</li> <li>The authentication regime in
     * use must include the idea of a "current user".  The      authentication provided by the Servlet
     * API is an example of such a regime.</li> </ul> This setting can be overridden at
     * operationBinding and field level, allowing extremely fine-grained control.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.OperationBinding#creatorOverrides
     * @see com.smartgwt.client.docs.serverds.DataSourceField#creatorOverrides
     * @see com.smartgwt.client.docs.FieldLevelAuth Field-Level Security
     */
    public Boolean creatorOverrides;

    /**
     * Class for ResultSets used by this datasource.  If null, defaults to using {@link
     * com.smartgwt.client.data.ResultSet}. <P> This can be set to a custom subclass of ResultSet
     * that, for example, hangs onto to extra information necessary for integration with web services.
     *
     * <p>Default value is null
     */
    public Map resultSetClass;

    /**
     * Allows you to specify SQL query execution time threshold in milliseconds, which if exceeded 
     * query is identified as "slow" and may be logged under specific logging category. <p> This
     * setting applies to all SQL queries, unless more specific thresholds are set using  {@link
     * com.smartgwt.client.docs.serverds.DataSource#logSlowFetch logSlowFetch}, {@link
     * com.smartgwt.client.docs.serverds.DataSource#logSlowAdd logSlowAdd},  {@link
     * com.smartgwt.client.docs.serverds.DataSource#logSlowUpdate logSlowUpdate}, {@link
     * com.smartgwt.client.docs.serverds.DataSource#logSlowRemove logSlowRemove},  {@link
     * com.smartgwt.client.docs.serverds.DataSource#logSlowCustom logSlowCustom} or even more specific
     * affecting just the  operationBinding it is configured in your DS XML as
     * operationBinding.logSlowSQL. <p> If none of the thresholds above are set, global
     * <i>sql.log.queriesSlowerThan</i>  {@link com.smartgwt.client.docs.SqlSettings server.properties
     * SQL setting} will be used. <p> For the details on how to setup the logging part see the  {@link
     * com.smartgwt.client.docs.ServerLogging Special logging category: com.isomorphic.SLOW_SQL}
     *
     * <p>Default value is null
     */
    public Integer logSlowSQL;

    /**
     * If {@link com.smartgwt.client.docs.serverds.DataSource#ownerIdField ownerIdField} is in force,
     * specifies the access that  is allowed to records with a null <code>ownerIdField</code>.  This
     * property has no  effect if <code>ownerIdField</code> is not specified. <p> This property can be
     * used in conjunction with {@link com.smartgwt.client.docs.serverds.DataSource#ownerIdNullRole
     * ownerIdNullRole} to  create the concept of shared, or public, records.  For example, if you set
     * <code>ownerIdNullRole</code> to "administrator", any users with the "administrator"  role will
     * be allowed to write records with a null <code>ownerIdField</code>.  If you  also set
     * <code>ownerIdNullAccess</code> to "view", all those records with a null owner will be viewable
     * by all, in addition to their own records.  We use this functionality  with the {@link
     * com.smartgwt.client.data.SavedSearches Saved Searches feature}, to enable precisely this: 
     * users can save their own searches, which are private to them, but administrators can  also save
     * searches with a null <code>ownerIdField</code>, which become standard, shared searches that
     * appear to all users, in addition to their own private searches.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#ownerIdField
     * @see com.smartgwt.client.docs.serverds.DataSource#ownerIdNullRole
     */
    public NullAccessType ownerIdNullAccess;

    /**
     * Designates a field of {@link com.smartgwt.client.types.FieldType type}:"image" as the field to
     * use when rendering a record as an image, for example, in a {@link
     * com.smartgwt.client.widgets.tile.TileGrid}. <p> For example, for a DataSource of employees, a
     * "photo" field of type "image" should be designated as the iconField. <p> If not explicitly set,
     * iconField looks for fields named "picture", "thumbnail", "icon", "image" and "img", in that
     * order, and will use any of these fields as the iconField if it exists and has type "image". 
     * <P> To avoid any field being used as the iconField, set iconField to <code>null</code>.
     *
     * <p>Default value is see below
     * @see com.smartgwt.client.docs.DsSpecialFields DsSpecialFields overview and related methods
     */
    public String iconField;

    /**
     * For DataSources of {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType}
     * "sql" only, indicates whether we should automatically add a sort field for {@link
     * com.smartgwt.client.data.ResultSet#getFetchMode paged fetches} on  this DataSource.  If left
     * unset, this property defaults to the one of the global values  described in the {@link
     * com.smartgwt.client.docs.serverds.DataSource#defaultSortField defaultSortField} documentation. 
     * Also note, this property can be overridden  {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#forceSort per-operationBinding}. <p> Note,
     * the ability to set this property per-DataSource is only provided to allow for complete
     * configurability in unusual cases.  See the <code>defaultSortField</code> docs for details of
     * why use of this property should be considered a red flag.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public String forceSort;

    /**
     * The list of extra manually managed fields that will be added to the {@link
     * com.smartgwt.client.docs.serverds.DataSource#fields fields} of the
     *  {@link com.smartgwt.client.docs.serverds.DataSource#audit Audit DataSource}.
     *  <p>
     * This feature enables the storage of additional information in the <code>Audit DataSource</code>
     * alongside the
     * standard audit data. In order to do that the audited DataSource needs to declare {@link
     * com.smartgwt.client.docs.serverds.DataSource#auditDSConstructor auditDSConstructor}
     * referring custom {@link com.smartgwt.client.docs.serverds.DataSource#serverConstructor
     * serverConstructor}, so that all requests to add data to the Audit DataSource
     * could be intercepted allowing to make changes to the new records (obtained using
     * <code>DSRequest.getValues()</code>
     * server-side API). In this particular use case values for the <code>addedAuditFields</code> need
     * to be provided.
     *  <p>
     *  Example of an audited DataSource (schematically):
     *  <pre>
     *  &lt;DataSource audit="true" auditDSConstructor="package.AuditDS"&gt;
     *  &lt;fields&gt;....&lt;/fields&gt;
     *  &lt;addedAuditFields&gt;
     *       &lt;addedAuditField name="altitude" type="float" /&gt;
     *       &lt;addedAuditField name="longitude" type="float" /&gt;
     *       &lt;addedAuditField name="logCorrelationId" type="text" /&gt;
     *  &lt;/addedAuditFields&gt;
     *  &lt;/DataSource&gt;
     *  </pre>
     *  An example implementation of AuditDS could be as follows:
     *  <pre>
     *  public class AuditDS extends SQLDataSource {
     *      public DSResponse executeAdd(DSRequest req) throws Exception {
     *          // populate additional fields
     *          Map values = req.getValues();
     *          values.put("altitude", 54.685);
     *          values.put("longitude", 25.286);
     *          values.put("logCorrelationId", "foobar");
     *          // execute "add" request
     *          return super.executeAdd(req);
     *      }
     *  }
     *  </pre>
     *
     * <p>Default value is null
     * @see com.smartgwt.client.data.DataSourceField
     */
    public DataSourceField[] addedAuditFields;

    /**
     * The list of fields that compose records from this DataSource. <P> Each DataSource field can
     * have type, user-visible title, validators, and other metadata attached.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.data.DataSourceField
     */
    public DataSourceField[] fields;

    /**
     * If {@link com.smartgwt.client.docs.serverds.DataSource#ownerIdField ownerIdField} is in force,
     * specifies a role that will allow the <code>ownerIdField</code> to take a null value.  Any user
     * that has that role  is allowed to create client-initiated "add" and "update" operations that
     * specify a null value for the <code>ownerIdField</code>, and the system will persist the null
     * value  rather than forcing in the currently authenticated user's user id as it normally would.
     * If any client-initiated "add" or "update" request specifies <i>any</i> non-null value  for the
     * <code>ownerIdField</code>, the normal behavior of the system will reassert and  the current
     * user's user id will be forced into the <code>ownerIdField</code>.  This  allows authorised
     * users (ie, those with the necessary role) to choose between saving  public or private records,
     * just by sending a null or non-null value for the  <code>ownerIdField</code>. <p> This property
     * has no effect if <code>ownerIdField</code> is not specified. <p> This property can be used in
     * conjunction with {@link com.smartgwt.client.docs.serverds.DataSource#ownerIdNullAccess
     * ownerIdNullAccess} to  create the concept of shared, or public, records - see that property's
     * documentation  for an example.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#ownerIdField
     * @see com.smartgwt.client.docs.serverds.DataSource#ownerIdNullAccess
     */
    public String ownerIdNullRole;

    /**
     * If we are {@link com.smartgwt.client.docs.serverds.DataSource#progressiveLoading loading
     * progressively}, indicates the number of  extra records Smart GWT Server will advertise as being
     * available, if it detects that  there are more records to view (see {@link
     * com.smartgwt.client.docs.serverds.DataSource#lookAhead lookAhead}).  This property has no 
     * effect if we are not progressive-loading. <P> Note that when viewing DataSource data in a
     * ListGrid, it is not recommended to have  the endGap be larger than the {@link
     * com.smartgwt.client.data.ResultSet#getResultSize ResultSet.resultSize}. This can result in a
     * situation where the entire range requested by the ResultSet is beyond the true end of the data
     * set,  with unpredictable results.
     *
     * <p>Default value is 20
     * @see com.smartgwt.client.docs.serverds.DataSource#progressiveLoading
     * @see com.smartgwt.client.docs.serverds.DataSource#lookAhead
     * @see com.smartgwt.client.docs.ProgressiveLoading Progressive Loading
     */
    public int endGap;

    /**
     * When true, and {@link com.smartgwt.client.docs.serverds.DataSource#noNullUpdates noNullUpdates}
     * is also true, indicates that "add"  requests on this DataSource will have null-valued fields
     * removed from the request  entirely before it is sent to the server, as opposed to the default
     * behavior of  replacing such null values with defaults.
     *
     * <p>Default value is false
     * @see com.smartgwt.client.docs.serverds.DataSource#noNullUpdates
     */
    public boolean omitNullDefaultsOnAdd;

    /**
     * If {@link com.smartgwt.client.docs.serverds.DataSource#noNullUpdates noNullUpdates} is set, the
     * value to use for any text field that has a null value assigned on an update operation, and does
     * not specify an explicit {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue nullReplacementValue}.
     *
     * <p>Default value is ""
     * @see com.smartgwt.client.docs.serverds.DataSource#noNullUpdates
     * @see com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue
     */
    public String nullStringValue;

    /**
     * Whether we store server responses for this DataSource into  {@link
     * com.smartgwt.client.util.Offline browser-based offline storage}, and then use those stored
     * responses at a later time if we are offline (ie, the application cannot connect to the server).
     *   Note that by default we do NOT use offline storage for a dataSource.
     *
     * <p>Default value is null
     */
    public Boolean useOfflineStorage;

    /**
     * Applies to RestConnector dataSources ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only,
     * and is overridable per operationBinding (see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#params OperationBinding.params}).
     *  <p>
     *  A list of key/value pairs to pass as URL parameters when constructing the query part of the
     *  REST service URL.  These can include templating, as described in the 
     * {@link com.smartgwt.client.docs.ServerRestConnector RestConnector overview}.  For example:<pre>
     *     &lt;params&gt;
     *       &lt;customParam&gt;$arbitraryVarInTemplateContext&lt;/customParam&gt;
     *       &lt;userIdentifier&gt;$config['rest.service.user.identifier']&lt;/userIdentifier&gt;
     *     &lt;/params&gt;</pre>
     * Bear in mind that {@link com.smartgwt.client.docs.serverds.DataSource#requestFormat
     * requestFormat} "params" implies by default
     *  a behavior that automatically adds parameters corresponding to values and/or criteria (see 
     * the {@link com.smartgwt.client.types.RESTRequestFormat} docs for details), so you would not
     * normally use this 
     *  property to specify parameters based on request values.  Any params explicitly specified 
     *  with the <code>params</code> property at DataSource of operationBinding level will be added
     *  to the auto-created list of params implied if <code>requestFormat</code> is "params".
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public Map params;

    /**
     * For DataSources with type {@link com.smartgwt.client.types.DSServerType
     * <code>projectFile</code>}, looks up the locations to use as {@link
     * com.smartgwt.client.docs.serverds.DataSource#projectFileLocations projectFileLocations} from
     * the project's configuration (i.e. project.properties, {@link
     * com.smartgwt.client.docs.Server_properties server.properties} etc.). <p>For instance, to look
     * up the value of project.datasources and use it for <code>projectFileLocations</code>, use
     * "datasources" as the  <code>projectFileKey</code>. <p>If you specify both
     * <code>projectFileKey</code> and  <code>projectFileLocations</code>, then both with be used,
     * with the <code>projectFileLocations</code> applied last.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#projectFileLocations
     * @see com.smartgwt.client.docs.FileSource FileSource Operations
     */
    public String projectFileKey;

    /**
     * Allows you to specify {@link com.smartgwt.client.types.DSOperationType "update" operation} SQL
     * query execution  time threshold in milliseconds, which if exceeded query is identified as
     * "slow" and  may be logged under specific logging category. <p> See {@link
     * com.smartgwt.client.docs.serverds.DataSource#logSlowSQL logSlowSQL} for more details.
     *
     * <p>Default value is null
     */
    public Integer logSlowUpdate;

    /**
     * A scriptlet to be executed on the server after running any operation on this dataSource. The
     * intention is that this scriptlet transforms the response data in some way.   It is provided to
     * allow complex, programmatic transformations without having to handle the operation in a  DMI or
     * {@link com.smartgwt.client.docs.serverds.DataSource#script handler script}.  To avoid 
     * confusion, it should be noted that, in many cases, you could instead write response
     * transformation logic in a {@link com.smartgwt.client.docs.serverds.DataSource#script script}
     * that first invokes execute() on the DSRequest to run the default behavior.  The advantage of
     * <code>transformResponseScript</code> is that it allows you partition any script logic
     * appropriately, and is more self-documenting. <p> If {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#transformResponseScript
     * OperationBinding.transformResponseScript} is also specified, it will be executed  for the
     * operation binding in question <i>in addition to</i> and <i>after</i> the  DataSource-level
     * script.   <p> All of the variables available in a normal {@link
     * com.smartgwt.client.docs.serverds.DataSource#script script} are available to a
     * <code>transformResponseScript</code>, but the framework also provides somes additional
     * variables useful in the specific context of transforming response data:<ul>
     * <li><b>dsResponse</b>The actual <code>DSResponse</code> object</li> <li><b>responseObjects</b>
     * is the response data as a list of objects, either Maps or Javabeans, depending on what data
     * model you are using - see {@link com.smartgwt.client.docs.serverds.DataSource#beanClassName
     * beanClassName}.  If the underlying response data is actually a single object, this is just that
     * single  object wrapped in a List</li> <li><b>responseObject</b> is the response data as a
     * single object.  If the underlying response data is not a single object - ie, it is a list of
     * objects - this will just be the first item in the list</li> </ul> Additionally, if the
     * dataSource is a {@link com.smartgwt.client.docs.ServerRestConnector server-side RestConnector},
     * a number of additional variables are made available:<ul> <li><b>responseText</b> is the actual
     * XML or JSON text returned by the REST service</li> <li><b>completeData</b> is the entire REST
     * response converted into a structure of Java Lists and Maps by parsing the JSON or XML text
     * (note, only if the  {@link
     * com.smartgwt.client.docs.serverds.DataSource#requiresCompleteRESTResponse
     * requiresCompleteRESTResponse} flag is true)</li> <li><b>responseRecords</b> is the REST
     * response converted into a list of records, either by:<ul>  <li>Parsing a list-type response
     * from the JSON or XML text returned by the REST service, or</li>  <li>Parsing the response and
     * then applying the {@link com.smartgwt.client.docs.serverds.DataSource#recordXPath recordXPath},
     * if a recordXPath is declared</li>  </ul> <code>responseRecords</code> is provided to the script
     * as a List of Maps.  If the dataSource  expresses a responseTemplate, it is the list of records 
     * <i>after</i> templating has been processed</li> <li><b>responseRecordsBeforeTemplating</b> is
     * the <code>responseRecords</code> as they were before the <code>responseTemplate</code> was
     * applied.  It is only present if the dataSource declares a <code>responseTemplate</code></li>
     * </ul> Normally, both <code>responseObjects</code>  and (for RESTDataSource only)
     * <code>responseRecords</code> are "live". This means that any changes you make to them in your
     * script will affect the underlying objects in the response data and be seen in downstream
     * processing.  This means  that your script can modify things in place and does not need to
     * return a value; this is  the recommended approach. <p> If your script <i>does</i> return a
     * value, we will assign that value as the response data on return from the script. <p>
     * <b>Warning:</b> It is advisable to explicitly return null if you do not wish to return a 
     * value.  See the section "Returning values and JavaScript", which also applies to Groovy and
     * some other JSR223 languages, in the {@link com.smartgwt.client.docs.ServerScript server
     * scripting overview}. <p> Note, if you prefer a Java solution rather than placing scripts in
     * your <code>.ds.xml</code>  files, you can instead extend the Java <code>BasicDataSource</code>
     * class and override its  <code>transformResponse()</code> method.  If you both override the Java
     * method and  provide a <code>transformResponseScript</code>, the Java method runs first and any 
     * transformations it makes will be visible to the script.  See  {@link
     * com.smartgwt.client.docs.serverds.DataSource#serverConstructor serverConstructor} for details
     * of how to use a custom  class to implement a DataSource server-side.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#script
     * @see com.smartgwt.client.docs.serverds.DataSource#transformRequestScript
     * @see com.smartgwt.client.docs.serverds.OperationBinding#transformResponseScript
     * @see com.smartgwt.client.docs.serverds.DataSourceField#fieldValueScript
     * @see com.smartgwt.client.docs.ServerScript Server Scripting
     */
    public String transformResponseScript;

    /**
     * A scriptlet to be executed on the server prior to running any operation on this dataSource. The
     * intention is that this scriptlet transforms the DSRequest in some way - probably its {@link
     * com.smartgwt.client.data.DSRequest#getData criteria} and/or {@link
     * com.smartgwt.client.data.DSRequest#getData values}, but maybe something less obvious, such as
     * adding to its templateContext Map - prior to running the operation proper.   It is provided to
     * allow more complex, programmatic transformations than is possible with  declarative {@link
     * com.smartgwt.client.docs.serverds.DSRequestModifier}s, without having to handle the operation
     * in a   DMI or {@link com.smartgwt.client.docs.serverds.DataSource#script handler script}.  To
     * avoid confusion, it  should be noted that, in many cases, you could instead write request
     * transformation logic  in a {@link com.smartgwt.client.docs.serverds.DataSource#script script}
     * and then have that script invoke execute() on the  DSRequest to proceed with default behavior. 
     * The advantage of <code>transformRequestScript</code> is that it allows you partition any script
     * logic appropriately, and is more self-documenting. <p> If {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#transformRequestScript
     * OperationBinding.transformRequestScript} is also specified, it will be executed  for the
     * operation binding in question <i>in addtion to</i> and <i>after</i> the  DataSource-level
     * script. <p> All of the variables available in a normal {@link
     * com.smartgwt.client.docs.serverds.DataSource#script script} are available to a
     * <code>transformRequestScript</code>, including the three you are most likely to use: 
     * <code>dsRequest</code>, <code>criteria</code> and <code>values</code>.  All three of these 
     * variables are "live" - any changes you make to them will affect the underlying object and be
     * seen in downstream processing.  This means that your script can modify things in place and does
     * not need to return a value; this is the recommended approach.   <p> If your script <i>does</i>
     * return a value, we will assign that value to criteria for a  fetch or remove operation, and to
     * values for an add or update operation.  This may well be what you want, but it may not - this
     * is why we recommend modifying in place and not  returning a value. <p> <b>Warning:</b> It is
     * advisable to explicitly return null if you do not wish to return a  value.  See the section
     * "Returning values and JavaScript", which also applies to Groovy and some other JSR223
     * languages, in the {@link com.smartgwt.client.docs.ServerScript server scripting overview}.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#script
     * @see com.smartgwt.client.docs.serverds.DataSource#transformResponseScript
     * @see com.smartgwt.client.docs.serverds.OperationBinding#transformRequestScript
     * @see com.smartgwt.client.docs.ServerScript Server Scripting
     */
    public String transformRequestScript;

    /**
     * For {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType:"sql"}
     * DataSources, sets the default {@link
     * com.smartgwt.client.data.DataSourceField#getSqlStorageStrategy sqlStorageStrategy} to use for
     * boolean fields where no <code>sqlStorageStrategy</code> has been declared on the field. <P> Can
     * also be set system-wide via the {@link com.smartgwt.client.docs.Server_properties} setting
     * <code>sql.defaultBooleanStorageStrategy</code>, or for a particular database configuration by
     * setting <code>sql.<i>dbName</i>.defaultBooleanStorageStrategy</code> (see {@link
     * com.smartgwt.client.docs.AdminConsole Admin Console overview} for more information on SQL
     * configuration). <p> Note that when this property is unset, the default {@link
     * com.smartgwt.client.data.DataSourceField#getSqlStorageStrategy
     * DataSourceField.sqlStorageStrategy} strategy is effectively "string".
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public String defaultBooleanStorageStrategy;

    /**
     * Controls when primary keys are required for "update" and "remove" server operations, when
     * allowMultiUpdate  has not been explicitly configured on either the {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#allowMultiUpdate
     * operationBinding.allowMultiUpdate} or via the server-side API
     * <code>DSRequest.setAllowMultiUpdate()</code>. <p> Default value of null means this DataSource
     * will use the system-wide default, which is set via
     * <code>datasources.defaultMultiUpdatePolicy</code> in {@link
     * com.smartgwt.client.docs.Server_properties server.properties}, and defaults to not allowing
     * multi updates for  requests associated with an RPCManager, see {@link
     * com.smartgwt.client.types.MultiUpdatePolicy} for details.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.OperationBinding#allowMultiUpdate
     */
    public MultiUpdatePolicy defaultMultiUpdatePolicy;

    /**
     * For a DataSource that inherits {@link com.smartgwt.client.docs.serverds.DataSource#fields
     * fields} from another DataSource  (via {@link
     * com.smartgwt.client.docs.serverds.DataSource#inheritsFrom inheritsFrom}), indicates that the
     * parent's field order should be used instead of the order of the fields as declared in this
     * DataSource.  New fields, if any, are placed at the end.
     *
     * <p>Default value is null
     */
    public Boolean useParentFieldOrder;

    /**
     * For JPA and Hibernate DataSources this property indicates, that data source has composite
     * primary key and specifies fully-qualified Java class:<ul> <li>with
     * <b><code>@EmbeddedId</code></b> you have to specify class name of declared id</li> <li>with
     * <b><code>@IdClass</code></b> you have to specify class specified in annotation
     * declaration</li></ul>
     *
     * <p>Default value is null
     */
    public String idClassName;

    /**
     * For DataSources with {@link com.smartgwt.client.docs.serverds.DataSource#audit auditing
     * enabled}, specifies the field name used to store the names of the fields which were updated. 
     * If empty string is specified as the field name, the audit DataSource will not store this field.
     * <P> Note that this field will only be set for {@link com.smartgwt.client.types.DSOperationType
     * update} operations.
     *
     * <p>Default value is "audit_changedFields"
     */
    public String auditChangedFieldsFieldName;

    /**
     * For DataSources of {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType}
     * "sql" only, the name of a field to 
     *  include in the <code>ORDER BY</code> clause as a means of enforcing a stable sort 
     * order, <i>for {@link com.smartgwt.client.data.ResultSet#getFetchMode paged fetches} only</i>. 
     * This property has no
     *  effect for non-SQL dataSources, or for non-paged fetches.
     *  <p>
     *  Generally speaking, databases make no guarantee about the order of rows in a
     *  resultset unless an <code>ORDER BY</code> clause was provided.  This is not usually a
     *  problem if you actually don't care about the row order, but there is a catch if you 
     *  are using paged fetching: because the pages are fetched using completely different 
     *  queries, the database is at liberty to use different orderings from one fetch to another,
     *  and in some cases, with some databases, that is what actually happens.  This leads to 
     *  broken paging behavior, with some records duplicated and others omitted.
     *  <p>
     *  Note that it is unusual for a database to change strategies between queries like this;
     *  generally speaking, rows are ordered in some kind of natural ordering in the absence of
     *  an explicit order - typically insertion order, or by primary key value.  However, it 
     *  does happen, and is more likely with some database products than others.
     *  <p>
     *  This property only has an effect if <code>forceSort</code> is in effect for the fetch 
     *  operation.  See below for DataSource- and operation-level options, but ordinarily this
     *  is arranged by setting the <code>forceSort</code> property for the current database 
     *  configuration in your <code>server.properties</code> file:<pre>
     *    # Given this database definition
     *    sql.MyDB.database.type: mysql
     * 
     *    # Either of these settings will enable automatic sorting
     *    sql.MyDB.forceSort: true
     *    # Or
     *    sql.mysql.forceSort: true
     *  </pre>
     *  Note, the <code>defaultSortField</code> should ideally provide a unique ordering: so
     *  for an employee table, payroll number would be preferable to employee name.  A 
     *  non-unique ordering will usually be sufficient to ensure stablity of ordering from one
     *  query to the next, because it will usually ensure that the database is forced to use the
     *  same index in each case.  However, the database may still choose to order rows 
     *  differently within the confines of the non-unique ordering, so only a unique ordering 
     *  is guaranteed to ensure stability.
     *  <p>
     * Fields of {@link com.smartgwt.client.types.FieldType type} <code>creatorTimestamp</code> are
     * also good 
     *  candidates for this purpose - assuming you have a suitable index in place, and assuming
     *  sorting by temporal values does not introduce performance problems with your database of
     *  choice - as they are often unique or near-to-unique, and they reflect the insertion 
     *  order, which is the "natural ordering" in some (not all) databases.
     *  <p>
     *  Note that this automatic sorting does not interfere with the ordinary sorting that your
     *  application may do: it is applied <i>in addition to</i> any application sort order.  So
     * if your application imposes no {@link com.smartgwt.client.widgets.grid.ListGrid#setSort sort
     * order}, the resultset will 
     *  be sorted by the <code>defaultSortField</code>; if your application requests a sort 
     *  order of, eg, "state" then "city", the resultset will be ordered by "state", then 
     *  "city", and then the <code>defaultSortField</code>
     *  <p>
     *  If <code>forceSort</code> is enabled and you do not provide a 
     *  <code>defaultSortField</code> for a given database, Smart GWT will instead use the
     * {@link com.smartgwt.client.docs.serverds.DataSourceField#primaryKey primaryKey} field(s).  If
     * the dataSource does not 
     *  define a <code>primaryKey</code>, we will just use the dataSource's first defined 
     *  field.  <b>Recommendation</b>: Unless you have a reason to explicitly declare a 
     *  <code>defaultSortField</code>, we recommend that you leave it undefined for any 
     *  DataSource that declares a <code>primaryKey</code> (and we recommend that all
     *  dataSources declare a <code>primaryKey</code>).  The <code>primaryKey</code> field is
     *  usually the ideal candidate for this purpose, because it is unique and almost certainly
     *  indexed.
     *  <p>
     *  Note that <code>forceSort</code> is enabled by default for PostgreSQL, because this 
     *  product is known to be less likely to retain a stable sort order between two similar,
     *  unordered queries.
     *  <h3>DataSource- and OperationBinding-level forceSort flag</h3>
     *  As well as the above-mentioned global settings, it is possible to configure automatic
     *  sorting behavior for paged fetches at both the individual
     *  {@link com.smartgwt.client.docs.serverds.DataSource#forceSort DataSource level} and 
     * {@link com.smartgwt.client.docs.serverds.OperationBinding#forceSort operationBinding level}. 
     * However, this facility is 
     *  only provided to allow complete configurability in unusual cases.  Generally speaking, 
     *  if a database requires ordering for correct behavior with paged fetches, it 
     *  <i>always</i> requires ordering for correct behavior with paged fetches; you can't 
     *  ordinarily pick and choose which tables or which individual fetches need to be ordered.
     *  <p>
     *  That said, there may be real world cases where a database that normally requires 
     *  ordering for correct behavior, nevertheless has individual cases where that is not 
     *  required - maybe on tables that have only a single index, or in cases where there are
     *  no joins involved, or maybe in other circumstances related to how that specific database
     *  product works internally.  Or again, there may be unusual individual cases where a 
     *  database that ordinarily works fine for paged fetches without requiring ordering, needs
     *  to apply an ordering.
     *  <p>
     *  We provide the DataSource- and operation-level <code>forceSort</code> flags to allow 
     *  you to work around or take advantage of these database-specific quirks.  However, use of
     *  them should be considered a red flag because they might cause problems if things change
     *  in the future (new database release, change in the underlying query, addition of a 
     *  foreignKey relation at the database level, etc).
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public String defaultSortField;

    /**
     * This property allows you to specify that your DataSource's schema (field definitions) should
     *  be automatically derived from some kind of metadata.  This causes Smart GWT to create 
     *  a special super-DataSource, which is used purely as a source of default schema for this 
     *  DataSource; this is arranged by causing the autoDerived DataSource to automatically 
     * {@link com.smartgwt.client.docs.serverds.DataSource#inheritsFrom inherit from} the special
     * super-DataSource.  This allows you to 
     *  auto-derive schema from existing metadata, whilst still being able to override any or all
     *  of it as required. By default additional derived field definitions are placed at the end,
     * but that can be changed by {@link
     * com.smartgwt.client.docs.serverds.DataSource#useParentFieldOrder useParentFieldOrder} flag.
     * Also, derived field
     * definitions may be hidden using {@link
     * com.smartgwt.client.docs.serverds.DataSource#showLocalFieldsOnly showLocalFieldsOnly}.<p>
     *  This property has a different implementation depending upon the 
     * {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType} of the
     * DataSource:<ul>
     *  <li>For a DataSource with serverType: "sql", automatically derive the dataSource's schema 
     * from the Spring bean or Java class specified in {@link
     * com.smartgwt.client.docs.serverds.DataSource#schemaBean schemaBean}.  If 
     *  <code>schemaBean</code> is not specified, derive the schema from the columns in the SQL 
     * table specified in {@link com.smartgwt.client.docs.serverds.DataSource#tableName tableName}. 
     * More information on SQL DataSources 
     *  is {@link com.smartgwt.client.docs.SqlDataSource here}</li>  
     *  <li>For a DataSource with serverType: "hibernate", automatically derive the dataSource's
     *  schema from the Spring bean, Hibernate mapping or Java class named in the 
     * {@link com.smartgwt.client.docs.serverds.DataSource#schemaBean schemaBean} property.  If no
     * such thing exists, derive the schema from
     * the Hibernate mapping or Java class specified in the {@link
     * com.smartgwt.client.docs.serverds.DataSource#beanClassName beanClassName}
     *  property (this allows you to specify schema and mapping separately, in the unusual 
     *  circumstance that you have a need to do so).  Note that the "mappings" referred to here
     *  can mean either <code>.hbm.xml</code> files or annotated classes; both are supported.
     *  If neither of these is successful, derive the schema from the underlying SQL table 
     * specified in {@link com.smartgwt.client.docs.serverds.DataSource#tableName tableName}.  More
     * information on Hibernate DataSources is
     *  {@link com.smartgwt.client.docs.HibernateIntegration here}</li>  
     *  <li>For a DataSource with serverType: "jpa1" or "jpa", automatically derive the 
     * dataSource's schema from the annotated JPA class named in the {@link
     * com.smartgwt.client.docs.serverds.DataSource#schemaBean schemaBean} 
     *  property.  If the schemaBean property is not defined, derive the schema from the 
     * annotated JPA class named in the {@link
     * com.smartgwt.client.docs.serverds.DataSource#beanClassName beanClassName} property (as with 
     *  Hibernate, this allows you to specify schema and mapping separately if you need to do 
     *  so).  JPA DataSource generation relies on annotations (the orm.xml mapping file is not 
     * supported).  More information on JPA DataSources is {@link
     * com.smartgwt.client.docs.JpaIntegration here}</li>  
     *  <li>For other DataSource types, attempt to find a Spring bean with the name specified in
     * the {@link com.smartgwt.client.docs.serverds.DataSource#schemaBean schemaBean} property.  If no
     * such bean is found (or Spring is not 
     *  present), attempt to instantiate an object whose fully-qualified class name is the value
     *  in the <code>schemaBean</code> property.  If one of these approaches succeeds, we derive
     *  the schema from the discovered object (by treating it as a Java Bean and assuming that 
     *  each one of its getters corresponds to a like-named field in the DataSource).  More 
     * information on custom DataSource implementations is {@link
     * com.smartgwt.client.docs.WriteCustomDataSource here}.</li>
     *  </ul>
     *  Note that when dataSource schema is derived by introspecting the Java class or Spring bean the
     * derived fields are sorted alphabetically, but with {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#primaryKey primary key}
     *  fields at the top.
     *  <h4>Field types</h4>
     *  The following table shows how SQL types are derived into 
     * {@link com.smartgwt.client.types.FieldType DataSource types} when we use an SQL table as a
     * source of metadata
     *  for a SQL or Hibernate DataSource:
     *  <table border="1" class="normal">
     * <tr><th>SQL type</th><th>{@link com.smartgwt.client.docs.serverds.DataSourceField#type
     * DataSource type}</th></tr>
     *  <tr><td>CHAR, VARCHAR, LONGVARCHAR, TEXT, CLOB</td><td>text</td></tr>
     * <tr><td>BIT, TINYINT, SMALLINT, INTEGER, BIGINT, DECIMAL<sup>*</sup>,
     * NUMBER<sup>**</sup></td><td>integer</td></tr>
     *  <tr><td>REAL, FLOAT, DOUBLE, DECIMAL<sup>*</sup>, NUMBER<sup>**</sup></td><td>float</td></tr>
     *  <tr><td>DATE</td><td>date</td></tr>
     *  <tr><td>TIME</td><td>time</td></tr>
     *  <tr><td>TIMESTAMP</td><td>datetime</td></tr>
     *  <tr><td>BLOB, BINARY, VARBINARY, LONGVARBINARY</td><td>binary</td></tr>
     *  </table>
     *  <sup>*</sup>For DECIMAL types, we inspect the "DECIMAL_DIGITS" attribute of the JDBC 
     *  metadata and designate the field type "integer" if that attribute is 0, or "float" if
     *  it is some other value.<br>
     *  <sup>**</sup>NUMBER is an Oracle-only type that appears in the JDBC metadata as DECIMAL
     *  and is handled exactly the same way as DECIMAL
     *  <p>
     *  The following table shows how Java types are derived into DataSource types when we use
     *  an unannotated Java class (Spring bean, Hibernate mapping or POJO) as a source of 
     *  metadata for a SQL, Hibernate or custom DataSource:
     *  <table border="1" class="normal">
     * <tr><th>Java type</th><th>{@link com.smartgwt.client.docs.serverds.DataSourceField#type
     * DataSource type}</th></tr>
     *  <tr><td>boolean, Boolean</td><td>boolean</td></tr>
     *  <tr><td>char, Character, String, Reader</td><td>text</td></tr>
     * <tr><td>byte, short, int, long, Byte, Short, Integer, Long,
     * BigInteger</td><td>integer</td></tr>
     *  <tr><td>float, double, Float, Double, BigDecimal</td><td>float</td></tr>
     *  <tr><td>Enum</td><td>enum (see discussion below)</td></tr>
     *  <tr><td>InputStream</td><td>binary</td></tr>
     *  <tr><td>java.sql.Date, java.util.Date, java.util.Calendar</td><td>date</td></tr>
     *  <tr><td>java.sql.Time</td><td>time</td></tr>
     *  <tr><td>java.sql.Timestamp</td><td>datetime</td></tr>
     *  </table>
     *  <p>
     *  Finally, this table shows how Java types are derived into DataSource types when we use an 
     *  annotated class as a source of metadata.  Note annotated classes are necessary for JPA
     *  DataSources, but you can choose to use them for other types of DataSource as well.  
     *  For Hibernate DataSources, this is very worthwhile because Hibernate will also make use
     *  of the annotations as config, meaning you don't need to specify <code>.hbm.xml</code> 
     *  files.  For SQL and custom DataSources, there is no benefit at the persistence level, 
     *  but it may still be worthwhile because the use of an annotated class gives us better 
     *  metadata and allows us to generate a better, closer-fitting autoDerive DataSource than 
     *  we can from examination of SQL schema or plain Java Beans:
     *  <table border="1" class="normal">
     * <tr><th>Java type</th><th>{@link com.smartgwt.client.docs.serverds.DataSourceField#type
     * DataSource type}</th></tr>
     *  <tr><td>boolean, Boolean</td><td>boolean</td></tr>
     *  <tr><td>char, Character, String, Reader</td><td>text</td></tr>
     * <tr><td>byte, short, int, long, Byte, Short, Integer, Long,
     * BigInteger</td><td>integer</td></tr>
     *  <tr><td>float, double, Float, Double, BigDecimal</td><td>float</td></tr>
     *  <tr><td>InputStream</td><td>binary</td></tr>
     *  <tr><td>java.util.Date (with Temporal set to DATE), java.sql.Date</td><td>date</td></tr>
     *  <tr><td>java.util.Date (with Temporal set to TIME), java.sql.Time</td><td>time</td></tr>
     * <tr><td>java.util.Date (with Temporal set to TIMESTAMP), java.util.Calendar,
     * java.sql.Timestamp</td><td>datetime</td></tr>
     *  <tr><td>Enum (with Enumerated set to STRING)</td><td>enum (see discussion below)</td></tr>
     *  <tr><td>Enum (with Enumerated set to ORDINAL)</td><td>intEnum (see discussion below)</td></tr>
     *  <tr><td>Field with Lob annotation</td><td>binary</td></tr>
     * <tr><td>Field with GeneratedValue annotation</td><td>sequence, if the field is an integer type
     * (see discussion below)</td></tr>
     *  </table>
     *  <p>
     *  <h4>Primary keys, sequences and identity columns</h4>
     *  We attempt to derive information about primary keys from the metadata we have.
     *  <p>
     *  If the metadata source is an SQL table:
     *  <ul>
     *  <li>If the table does not have a native primary key constraint, no attempt is made to 
     *      identify primary key fields.  Otherwise:
     *  <li>The column or columns that make up the table's native primary key constraint are 
     *      identified using the JDBC <code>DatabaseMetaData.getPrimaryKeys()</code> API</li>
     *  <li>Each DataSource field that corresponds to one of these native primary key columns 
     *      is marked <code>primaryKey: true</code></li>
     *  <li>For each of these columns, the metadata returned by 
     *      <code>DatabaseMetaData.getColumns()</code> is inspected.  If the metadata includes
     *      <code>IS_AUTOINCREMENT=YES</code>, we mark the corresponding field as 
     *      <code>type="sequence"</code>.  This information should be reliably provided by 
     *      databases that implement "auto-increment" or "identity" column types, such as MySQL
     *      or Microsoft SQL Server</li>
     *  <li>If the previous step does not identify a column as a sequence, we inspect the 
     *      <code>ResultSetMetaData</code> obtained by running a dummy query on the table.  If 
     *      the <code>isAutoIncrement()</code> API returns true for that column, we mark the 
     *      corresponding field as <code>type="sequence"</code></li>
     *  <li>If the previous steps have not identified the column as a sequence, we check the 
     *      <code>TYPE_NAME</code> in the column metadata.  If it is "serial", this means the 
     *      column is a PostgreSQL "serial" or "serial8" type column.  Postgres does not 
     *      transparently implement auto-increment columns, but it does provide this serial 
     *      type, which causes the column to be implicitly bound to an underlying sequence.  So
     *      this type causes us to mark the field <code>type="sequence"</code>, and we also set
     * {@link com.smartgwt.client.docs.serverds.DataSourceField#implicitSequence implicitSequence}
     * true</li>
     *  <li>If the previous steps have not identified the column as a sequence, we check the 
     *      <code>COLUMN_DEF</code> in the column metadata.  If this contains the token "$$ISEQ"
     *      and ends with "NEXTVAL", this means the column is an Oracle "GENERATED AS IDENTITY" 
     *      column.  This type of column was introduced in Oracle 12c and is conceptually 
     *      exactly the same thing as the Postgres "serial" column described above.  We treat 
     *      it the same way: mark it <code>type="sequence"</code> and 
     *      <code>implicitSequence="true"</code></li>
     *  <li>If the previous steps have not identified the column as a sequence, then you may
     *      be using a pure sequence database, such as an Oracle version earlier than 12c, or 
     *      you may be using a database where both sequences and identity columns are available
     *      (Oracle, Postgres, DB2), and a sequence is being used either by design or because 
     *      the table was created before the database product supported identity columns.  In 
     *      this case, we cannot determine if the column should be a sequence or not.  However,
     *      in many applications, the fact that the column is an integer and is a primary key
     *      would imply that it is also a sequence.  Therefore, if the column is an integer and
     *     the <code>server.properties</code> flag <code>auto.derive.integer.pk.always.sequence</code>
     *      is true, we mark the field as <code>type="sequence"</code></li>
     *  <li>If, after all this, Smart GWT ends up incorrectly marking a primary key field as 
     *      a sequence (or vice versa), you can always override it on a per-field basis by 
     *      simply redeclaring the field with the correct type in your <code>.ds.xml</code> 
     *      file:<pre>
     *   &lt;DataSource serverType="sql" tableName="myTable" autoDeriveSchema="true"&gt;
     *     &lt;fields&gt;
     *       &lt;!-- This field was incorrectly marked as a sequence --&gt;
     *       &lt;field name="notASeq" type="integer" /&gt;
     *       &lt;!-- This field was incorrectly marked as an integer when it should be a sequence --&gt;
     *       &lt;field name="isASeq" type="sequence" /&gt;
     *     &lt;/fields&gt;
     *   &lt;/DataSource&gt;</pre></li>
     *  </ul>
     *  <p>  
     *  If the metadata source is Hibernate mappings described in a <code>.hbm.xml</code> file:
     *  <ul>
     *  <li>The first field we encounter that is described in the mapping with an &lt;id&gt; tag
     *      is marked as a primaryKey</li>
     *  <li>If that field is marked as being generated, we set its type to "sequence"</li>
     *  </ul>
     *  <p>  
     *  If the metadata source is an annotated object (whether JPA, Hibernate or just an 
     *  annotated POJO):
     *  <ul>
     *  <li>Any field with an <code>@Id</code> annotation is is marked as a primaryKey (this 
     *      differs from the Hibernate <code>.hbm.xml</code> file case because that is specific 
     *      to Hibernate, which does support composite keys, but not by specifying multiple 
     *      &lt;id&gt; tags.  Annotations are supported, via annotated POJOs, for any kind of 
     *      persistence strategy, so multiple <code>@Id</code> fields are perfectly valid)</li>
     *  <li>Any field with a <code>@GeneratedValue</code> annotation is either marked as 
     *      <code>type="sequence"</code> (if it is an integer type) or as 
     * <code>{@link com.smartgwt.client.docs.serverds.DataSourceField#autoGenerated
     * autoGenerated}="true"</code> (for other 
     *      field types)</li>
     *  </ul>
     *  Finally, if the metadata is a plain, unannotated Java object, no attempt is made to
     *  derive primary key fields.
     *  <h4>enums and valueMaps</h4>
     *  When we come across Java <code>Enum</code> properties in plain or annotated classes, 
     *  as well as setting the field type as noted in the above tables, we also generate a 
     *  valueMap for the field, based on the <code>Enum</code> members.  
     *  <p>
     *  For cases where we generate a field of Smart GWT type "enum" (see the above tables), 
     *  the keys of the valueMap are the result of calling <code>name()</code> on each member
     *  of the underlying Java Enum (in other words, its value exactly as declared in its 
     *  enum declaration).  For cases where we generate a field of Smart GWT type "intEnum",
     *  the keys of the valueMap are strings representing the ordinal number of each member 
     *  in the Java Enum - "0", "1", etc. Note that this behavior will be overriden by 
     * {@link com.smartgwt.client.docs.serverds.DataSource#enumTranslateStrategy
     * DataSource.enumTranslateStrategy} if both are set.
     *  <p>
     *  In both of these case, the display values generated for the valueMap are the result 
     *  of calling <code>toString()</code> on each Enum member.  If that gives the same 
     *  value as calling <code>name()</code>, the value is passed through 
     *  <code>DataTools.deriveTitleFromName()</code>, which applies the same processing rules
     * as {@link com.smartgwt.client.data.DataSource#getAutoTitle getAutoTitle()} to derive a more
     * user-friendly display value.
     *  <h4>Further notes</h4>
     *  <code>schemaBean</code> implies <code>autoDeriveSchema</code>, because it has no other 
     *  purpose than to name the bean to use for auto-derived schema.  Thus, if you specify
     *  <code>schemaBean</code> you do not need to specify <code>autoDeriveSchema</code> as well
     *  (though it does no harm to do so).  However, <code>tableName</code> and 
     *  <code>beanClassName</code> can be validly specified without implying 
     *  <code>autoDeriveSchema</code>, so in those cases you must explicitly specify 
     *  <code>autoDeriveSchema</code>.
     *  <p>
     *  The underlying super-DataSource is cached in server memory, so that it does 
     *  not have to be derived and created each time you need it.  However, the cache manager 
     *  will automatically refresh the cached copy if it detects that the deriving DataSource 
     *  has changed.  Thus, if you change the metadata your DataSource is deriving (if, for 
     *  example, you add a column to a table), all you need to do is touch the 
     *  <code>.ds.xml</code> file (ie, update its last changed timestamp - you don't actually
     *  have to change it) and the cached copy will be refreshed next time it is needed.
     *  <p>
     *  When autoDeriveSchema is set, SQLDataSource will automatically discover foreignKeys and
     *  deliver table and column name information to the client in hashed form so that two
     *  DataSources that are linked by native SQL foreign keys will automatically discover each
     *  other if loaded into the same application, and set 
     * {@link com.smartgwt.client.docs.serverds.DataSourceField#foreignKey foreignKey} automatically. 
     * Because the table and column 
     *  names are delivered as cryptohashes, there is no information leakage, but regardless,
     *  the feature can be disabled via setting <code>datasource.autoLinkFKs</code> to false in
     * {@link com.smartgwt.client.docs.Server_properties server.properties}.  This hashed linkage
     * information is
     * delivered to the client in properties {@link
     * com.smartgwt.client.docs.serverds.DataSource#tableCode tableCode} and
     * {@link com.smartgwt.client.docs.serverds.DataSourceField#fkTableCode
     * DataSourceField.fkTableCode}/{@link
     * com.smartgwt.client.docs.serverds.DataSourceField#fkColumnCode fkColumnCode}
     *
     * <p>Default value is null
     */
    public Boolean autoDeriveSchema;

    /**
     * Configuration settings that will be used purely on the the server-side.  Any properties
     *  declared within a <code>serverConfig</code> block will be overlaid onto the regular dataSource
     *  configuration, such that any property declared in <code>serverConfig</code> takes priority, 
     *  <b>but only on the server</b>; the client never sees the <code>serverConfig</code> block.
     *  <p>
     *  <code>serverConfig</code> is primarily intended for use with the 
     * {@link com.smartgwt.client.docs.ServerRestConnector RestConnector}, and is used for two related
     * purposes.  
     *  Firstly, it is a mechanism for declaring properties that only the server should see, to 
     *  avoid information leakage to the client.  Typical usages of this type would be things like 
     * {@link com.smartgwt.client.docs.serverds.DataSource#headers headers} and {@link
     * com.smartgwt.client.docs.serverds.DataSource#params params} - things that are 
     *  specific to <code>restConnector</code>'s communication with the remote REST server, and no 
     *  business of the client's.  
     *  <p>
     *  Secondly, <code>serverConfig</code> is used in cases where you need the client and server 
     *  to use different values for a property.  The only property for which this definitely arises
     *  is {@link com.smartgwt.client.docs.serverds.DataSource#dataURL dataURL} (and the 
     * {@link com.smartgwt.client.docs.serverds.OperationBinding#dataURL same property on the
     * OperationBinding}), because 
     *  <code>dataURL</code> is used both on the client, to configure the endpoint for server 
     *  requests, and by <code>RestController</code> on the server to configure the target URL(s)
     *  for REST request(s).  Thus, you should <b>always</b> specify a <code>dataURL</code> inside
     *  <code>serverConfig</code> if it is intended for use on the server-side by a 
     *  <code>RestConnector</code> DataSource; failure to do so will cause the client to send its 
     *  <code>DSRequest</code>s directly to the remote REST server, which obviously will not know 
     *  how to handle them.
     *  <p>
     *  Sub-objects will be merged such that properties declared in <code>serverConfig</code> 
     *  replace the same properties declared in the regular sub-object, but properties that are
     *  missing in the <code>serverConfig</code> remain in the merged sub-object.  For example:<pre>
     *  &lt;DataSource ... &gt;
     * 
     *    &lt;operationBindings&gt;
     *      &lt;operationBinding operationType="fetch" dataURL="specialIDACallURL" outputs="some,list,of,fields" /&gt; 
     *      &lt;!-- the browser can see this, so this works for the extremely rare case that a DataSource should
     *              contact different versions of the IDACall servlet for different operations.  The browser is
     *               also aware of the limited outputs --&gt;
     *      &lt;/operationBindings&gt;
     * 
     *      &lt;serverConfig&gt;
     *        &lt;operationBindings&gt;
     *          &lt;operationBinding operationType="fetch" dataURL="restServiceURL" /&gt; 
     *          &lt;!-- this is the actual URL of the REST service to contact from the server.  The browser never sees this
     *                so its version of "dataURL" is retained.  At the same time, the "outputs" from the browser-visible 
     *                definition still apply, because the configs were merged --&gt;
     *        &lt;/operationBindings&gt;
     *      &lt;serverConfig&gt;
     *  </pre>
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public DataSource serverConfig;

    /**
     * For a DataSource with {@link com.smartgwt.client.docs.serverds.DataSource#serverType
     * serverType:"sql"}, this flag indicates  whether any fields of {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#type type} "sequence" should be backed by a 
     * native database sequence (if the flag is true) or an auto-increment/identity column (if it is
     * false).  It is only applicable in cases where the database in use supports both  approaches,
     * <i>and</i> Smart GWT supports both strategies with that particular database. For most
     * databases, even those that natively support either approach, Smart GWT uses  one or the other,
     * and this cannot be configured. <P> Right now, the only supported database is Microsoft SQL
     * Server.  If you specify this flag  on a non-SQL DataSource or if any database other than SQL
     * Server is in use, the flag is simply ignored. <P> If not set, this flag defaults to the
     * <code>server.properties</code> setting  <code>sql.{dbName}.use.sequences</code>, which in turn
     * defaults to false.
     *
     * <p>Default value is null
     */
    public Boolean useSequences;

    /**
     * By default, all DataSources are assumed to be capable of handling  {@link
     * com.smartgwt.client.docs.serverds.AdvancedCriteria} on fetch or filter type operations.  This
     * property may be set to <code>false</code> to indicate that this dataSource does not support 
     * advancedCriteria. See {@link com.smartgwt.client.data.DataSource#supportsAdvancedCriteria
     * supportsAdvancedCriteria()} for further information on this. <p> <b>NOTE:</b> If you specify
     * this property in a DataSource descriptor  (<code>.ds.xml</code> file), it is enforced on the
     * server.  This means that if you run  a request containing AdvancedCriteria against a DataSource
     * that advertises itself as  <code>allowAdvancedCriteria:false</code>, it will be rejected.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.OperationBinding#allowAdvancedCriteria
     */
    public Boolean allowAdvancedCriteria;

    /**
     * <b>This property only applies to the built-in SQL DataSource provided in Pro and better 
     *  editions of Smart GWT</b>
     *  <p>
     * Defines the name of the schema we use to qualify the {@link
     * com.smartgwt.client.docs.serverds.DataSource#tableName tableName} in
     *  generated SQL.  If you do not provide this property, we will try to use the Smart GWT
     * default schema for this {@link com.smartgwt.client.docs.DbConfigTool dbName}; you specify this
     * for a given
     *  <code>dbName</code> in your <code>server.properties</code> file like this:<pre>
     *     sql.the_dbName.default.schema: myDefaultSchema
     *  </pre>
     *  If there is no DataSource-specific schema and no Smart GWT default schema, table
     *  names will not be qualified in generated SQL, and thus the database default schema will
     *  be used.  Support for multiple schemas (or schemata) varies quite significantly across
     *  the supported databases, as does the meaning of the phrase "default schema".  In
     *  addition, some databases allow you to override the default schema in the JDBC connection
     *  URL, which is a preferable approach if all your tables are in the same (non-default)
     *  schema, because it makes the generated SQL simpler (no need to qualify every table)
     *  <p>
     *  The following table provides information by product:
     *  <p>
     *  <table border="1" class="normal" width="90%">
     *  <tr><td> Product</td><td width="90%"> Notes</td></tr>
     *  <tr><td> DB2</td><td>
     *  Arbitrarily named schemas are supported.  The default schema is named after the connecting
     *  user, though this can be overridden by specifying the "currentSchema" property on the JDBC
     *  connection URL</td></tr>
     *  <tr><td> DB2 for iSeries</td><td>
     *  Arbitrarily named schemas are supported.  "Schema" is synonymous with "library".  The 
     *  default schema depends on the setting of the "naming" connection property.  When this is 
     *  set to "sql", behavior is similar to other DB2 editions: the default schema is named after
     *  the connecting user, unless overridden by specifying a library name in the JDBC connection 
     *  URL.  When "naming" is set to "system", the schema of an unqualified table is resolved 
     *  using a traditional search of the library list; the library list can be provided in the 
     *  "libraries" property</td></tr>
     *  <tr><td> Firebird</td><td>
     *  Firebird does not support the concept of schema at all - all "schema objects" like tables 
     *  and indexes belong directly to the database.  In addition, Firebird actively rejects 
     *  qualified table names in queries as syntax errors; therefore, you should <b>not</b> set
     *  the <code>schema</code> property for a DataSource that will be backed by a Firebird database
     *  </td></tr>
     *  <tr><td> HSQLDB</td><td>
     *  Arbitrarily named schemas are supported.  The default schema is auto-created when the
     *  database is created; by default it is called "PUBLIC", but can be renamed.  It is not 
     *  possible to set the default schema in the JDBC connection URL</td></tr>
     *  <tr><td> Informix</td><td>
     *  Informix databases can be flagged as "ANSI mode" at creation time.  ANSI-mode databases 
     *  behave similarly to DB2 for schema support: arbitrarily named schemas are supported, and
     *  the default schema is the one named after the connected user.  Non-ANSI databases have no
     *  real schema support at all. It is not possible to set the default schema in the JDBC 
     *  connection URL with either type of database</td></tr>
     *  <tr><td> Microsoft SQL Server</td><td>
     *  Prior to SQL Server 2005, schema support is similar to Oracle: "schema" is synonymous with 
     *  "owner".  As of SQL Server 2005, schema is supported as a separate concept, and a user's 
     *  default schema can be configured (though it still defaults to a schema with the same name
     * as the user).  It is not possible to set the default schema in the JDBC connection
     * URL</td></tr>
     *  <tr><td> MySQL</td><td>
     *  MySQL does not have a separate concept of "schema"; it treats the terms "schema" and 
     *  "database" interchangeably.  In fact MySQL databases actually behave more like schemas, in 
     *  that a connection to database X can refer to a table in database Y simply by qualifying 
     *  the name in the query.  Also, because schema and database are the same concept in MySQL, 
     *  overriding the "default schema" is done implicitly when you specify which database to 
     *  connect to in your JDBC connection URL</td></tr>
     *  <tr><td> Oracle</td><td>
     *  Arbitrarily named schemas are not supported; in Oracle, "schema" is synonymous with "user",
     *  so each valid user in the database is associated implicitly with a schema of the same name,
     *  and there are no other schemas possible.  It is possible to refer to tables in another
     *  user's schema (assuming you have the privileges to do so) by simply qualifying the table name.
     * The default schema is always implied by the connecting user and cannot be overridden.</td></tr>
     *  <tr><td> Postgres</td><td>
     *  Arbitrarily named schemas are supported.
     *  Rather than the concept of a "default schema", Postgres supports the idea of a search path 
     *  of schemas, whereby unqualified table references cause a search of the list of schemas in 
     *  order, and the first schema in the path is the "current" one for creation purposes.  
     *  Unfortunately, there is no way to specify this search path on the JDBC connection URL, so
     *  the default schema comes from the user definition, ultimately defaulting to the default 
     *  "public" schema</td></tr>
     *  </table>
     *
     * <p>Default value is null
     */
    public String schema;

    /**
     * If {@link com.smartgwt.client.docs.serverds.DataSource#noNullUpdates noNullUpdates} is set, the
     * value to use for any integer field that has a null value assigned on an update operation, and
     * does not specify an explicit {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue nullReplacementValue}.
     *
     * <p>Default value is 0
     * @see com.smartgwt.client.docs.serverds.DataSource#noNullUpdates
     * @see com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue
     */
    public int nullIntegerValue;

    /**
     * Applies to RestConnector dataSources ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only, and is
     * overridable per operationBinding (see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#xmlTag OperationBinding.xmlTag}). <p> This
     * property specifies the name of the enclosing tag when we are generating the XML block used to
     * send context to a REST service where the {@link
     * com.smartgwt.client.docs.serverds.DataSource#requestFormat requestFormat} is "xml"
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public String xmlTag;

    /**
     * Enables saving of a log of changes to this DataSource in a second DataSource with the same
     *  fields, called the "audit DataSource".  <b>NOTE</b>: this feature applies to Enterprise
     *  Edition only; for more information on edition-specific features, see
     *  <a href='http://smartclient.com/product' target='_blank'>http://smartclient.com/product</a>.
     *  <p>
     *  When auditing is enabled, every time a DSRequest modifies this DataSource, a Record is added
     *  to the audit DataSource that shows the record as it existed after the change was made (or
     *  for a "remove", the values of the record at the time of deletion).  In addition, the audit
     *  DataSource has the following additional metadata fields:
     *  <ul>
     * <li> {@link com.smartgwt.client.docs.serverds.DataSource#auditTypeFieldName
     * "audit_operationType"}: type of the change ("update", "add" or "remove")
     * <li> {@link com.smartgwt.client.docs.serverds.DataSource#auditUserFieldName "audit_modifier"}:
     * username of the user that made the change.  The username is
     *       determined in the same way that the 
     * {@link com.smartgwt.client.docs.serverds.OperationBinding#requiresRole Declarative Security}
     * subsystem determines the 
     *       current user.
     * <li> {@link com.smartgwt.client.docs.serverds.DataSource#auditTimeStampFieldName
     * "audit_changeTime"}: a field of type "datetime" recording
     *       the timestamp of the change
     * <li> {@link com.smartgwt.client.docs.serverds.DataSource#auditRevisionFieldName
     * "audit_revision"}: a field of type "sequence" recording a
     *       simple increasing integer value
     * <li> {@link com.smartgwt.client.docs.serverds.DataSource#auditChangedFieldsFieldName
     * "audit_changedFields"}: a
     * {@link com.smartgwt.client.docs.serverds.DataSourceField#multiple "multiple"} field of type
     * "string".  For "update"
     *       operations, records which fields have changed; otherwise, null
     *  </ul>
     *  <p>
     *  If any of the field names above collide with field names of the DataSource being audited,
     *  an integer suffix will also be added, starting with 2 (for example, "audit_modifier2", then
     *  "audit_modifier3", etc).
     *  <p>
     *  To omit a data field from the automatically generated audit DataSource, just set
     * {@link com.smartgwt.client.docs.serverds.DataSourceField#audit DataSourceField.audit} to false.
     *  Audit can be disabled for a given DSRequest via
     *  the server-side API <code>DSRequest.setSkipAudit()</code>, or for a specific operation 
     * via the {@link com.smartgwt.client.docs.serverds.OperationBinding#skipAudit
     * operationBinding.skipAudit} setting.
     *  <p>
     * When viewing DataSources in the {@link com.smartgwt.client.docs.DataSourcesTab DataSource
     * Navigator}, a button will
     *  be shown at the top of a DataSource's section if it has an audit DataSource to let you
     *  conveniently open another section to view it.
     *  <p>
     *  Note: The DataSource audit feature works only with single row operations; operations with 
     * {@link com.smartgwt.client.docs.serverds.OperationBinding#allowMultiUpdate allowMultiUpdate}
     * enabled are not supported.
     *  <p>
     *  <h4>Auto-generated Audit DataSources</h4>
     *  <p>
     *  The audit DataSource is normally automatically generated, and unless otherwise specified
     * with {@link com.smartgwt.client.docs.serverds.DataSource#auditDataSourceID auditDataSourceID},
     * the ID of the audit DataSource will be
     *  <code>audit_[OriginalDSID]</code>.  
     *  <p>
     *  By default, the automatically generated audit DataSource will be of the same type as the
     *  DataSource being audited, however, if the DataSource being audited is not already a
     * SQLDataSource, we recommend using {@link
     * com.smartgwt.client.docs.serverds.DataSource#auditDSConstructor auditDSConstructor:"sql"} to
     * use
     *  a SQLDataSource as the audit DataSource.  This is because a SQLDataSource used an audit
     *  DataSource will automatically generate a SQL table for storing audit data the first time
     *  changes are made.  JPA would require manual creation of a Java Bean, and Hibernate requires 
     * <a href='http://www.google.com/search?q=hbm2ddl.auto' target='_blank'>hbm2ddl.auto=update</a>
     * to be set,
     *  which is widely considered unsafe for production use.
     *  <p>
     * Note that the automatically generated audit DataSource may have additional fields that can be
     * populated when new
     * audit data is added. See {@link com.smartgwt.client.docs.serverds.DataSource#addedAuditFields
     * addedAuditFields} for more details.
     *  <p>
     *  Automatically created audit DataSources can be loaded and queried just like other
     *  DataSources, using the DataSourceLoader, and using the server-side API
     *  <code>DataSource.getAuditDataSource()</code>.  However, you <b>must</b> load the DataSource
     *  being audited before loading its automatically created audit DataSource.
     *  <p>
     *  Note, that automatic SQL tables creation can be disabled. See 
     * {@link com.smartgwt.client.docs.serverds.DataSource#autoCreateAuditTable autoCreateAuditTable}
     * for details.
     *  <p>
     *  <h4>Connecting custom "Users" DataSource to auto-generated Audit DataSources</h4>
     *  <p>
     * Audit DataSources utilize authenticated username (see the docs for
     * <code>RPCManager.getUserId()</code> server-side
     * API) to populate the "audit_modifier" field. To enable quick access to additional user
     * information, you can associate
     *  them with a custom "Users" DataSource.
     *  <p>
     * This association can be configured via the framework setting "userDataSource.foreignKey" in the
     * "server.properties"
     * file, which establishes a relationship between authenticated user and your custom "Users"
     * DataSource. Declaring this
     * informs the system that the authenticated username is a valid ID for records within a specific
     * "Users" DataSource.
     * Use the regular {@link com.smartgwt.client.docs.serverds.DataSourceField#foreignKey
     * DataSourceField.foreignKey} format, where, in example below, "UserDS" represents the name of
     * the
     *  related "Users" DataSource, and "userName" serves as the primary key of that DataSource:
     *  <pre>
     *  userDataSource.foreignKey: UserDS.userName
     *  </pre>
     * This configuration enables you to access additional user information seamlessly through
     * built-in framework features
     * like {@link com.smartgwt.client.data.DSRequest#getAdditionalOutputs
     * DSRequest.additionalOutputs} and {@link
     * com.smartgwt.client.widgets.grid.ListGridField#getIncludeFrom ListGridField.includeFrom} when
     * reviewing audit data. For instance,
     * if "UserDS" declares fields such as "firstName" and "lastName," you can retrieve them using
     * additional listGridFields:
     *  <pre>
     *  {name: "userFirstName", includeFrom: "UserDS.firstName"},
     *  {name: "userLastName", includeFrom: "UserDS.lastName"}
     *  </pre>
     *  Alternatively, if you're fetching data manually, you can utilize additionalOutputs as follows:
     *  <pre>
     *  additionalOutputs: "userFirstName!UserDS.firstName,userLastName!UserDS.lastName"
     *  </pre>
     *  <h4>Manually created Audit DataSources</h4>
     *  <p>
     *  The audit DataSource can also be manually created.  In this case, you can 
     *  can either follow the naming conventions described above for the ID of the audit DataSource
     *  and the names of metadata fields, or use the linked properties to assign custom names.  If
     *  you omit any data fields from the tracked DataSource in your audit DataSource, those fields
     * will be ignored for auditing purposes, exactly as though {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#audit DataSourceField.audit} had
     *  been set to false for an automatically-generated audit DataSource.
     *  <p>
     *  Also, note that in case of manually defined audit DataSource, if this DataSource
     *  is defined so it inherits the audited DataSource, all the audited DataSource's fields
     *  will be inherited, this including the primary keys. Since for the audit
     *  DataSource the primary key should be the revision field, in order to prevent the
     *  audit DataSource having two primary keys, the inherited DataSource's primary key 
     *  will have to be declared in audit DataSource, but with the primaryKey attribute 
     *  omitted (as well not being of type "sequence") in the audit DataSource.
     *
     * <p>Default value is false
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public boolean audit;

    /**
     * Class for ResultTrees used by this datasource.  If null, defaults to using {@link
     * com.smartgwt.client.widgets.tree.ResultTree}. <P> This can be set to a custom subclass of
     * ResultTree that, for example, hangs on to extra information necessary for integration with web
     * services.
     *
     * <p>Default value is null
     */
    public Map resultTreeClass;

    /**
     * Value to use for the {@link com.smartgwt.client.docs.serverds.DataSource#ownerIdField
     * ownerIdField} if no one  has authenticated. <p>This setting can be overridden at the
     * operationBinding level.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#ownerIdField
     * @see com.smartgwt.client.docs.serverds.OperationBinding#guestUserId
     * @see com.smartgwt.client.docs.serverds.DataSource#ownerIdNullRole
     * @see com.smartgwt.client.docs.serverds.DataSource#ownerIdNullAccess
     */
    public String guestUserId;

    /**
     * Setting <code>autoCreateAuditTable</code> to <code>true</code> indicates that audit DataSource 
     * will automatically create SQL table when {@link
     * com.smartgwt.client.docs.serverds.DataSource#audit auditing} is enabled. <p> Note, that
     * <code>autoCreateAuditTable</code> attribute takes effect only if framework setting 
     * <code>audit.autoCreateTables</code> in <code>server.properties</code> is set to
     * <code>false</code>, which by default is set to <code>true</code>.
     *
     * <p>Default value is true
     */
    public boolean autoCreateAuditTable;

    /**
     * Applies to RestConnector dataSources ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only,
     * and is overridable per operationBinding (see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#headers OperationBinding.headers}).
     *  <p>
     *  Some REST servers require special HTTP headers to be sent to provide state or 
     *  authentication details; this property can be used to set up one or more headers to be sent 
     *  with the REST request.  Like other elements of RestConnector config, you typically define
     * this property inside a {@link com.smartgwt.client.docs.serverds.DataSource#serverConfig
     * serverConfig} block to keep the details
     *  from leaking to clients.  Also like other RestConnector config, you can include Velocity 
     *  templates in your header definitions.
     *  <p>
     *  Headers are simple key/value pairs, defined like this:<pre>
     *     &lt;headers&gt;
     *         &lt;My-Custom-Header&gt;Some custom value&lt;/My-Custom-Header&gt;
     *         &lt;Another-Special-Header&gt;$config['special.header.value']&lt;/Another-Special-Header&gt;
     *     &lt;/headers&gt;</pre>
     *  Note, we automatically add a "Content-Type" header of either <code>application/json</code> or
     * <code>application/xml</code> (depending on the {@link
     * com.smartgwt.client.docs.serverds.DataSource#responseFormat responseFormat}), 
     *  unless you define one by hand in your DataSource's <code>headers</code> definition
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public Map headers;

    /**
     * Setting a DataSource to be <code>serverOnly="true"</code> ensures that it will not be visible
     * to the client. Any request through IDACall to this DataSource will return a failure response.
     * Only requests which have been initiated on the server-side will be executed against this
     * DataSource.
     *
     * <p>Default value is null
     */
    public String serverOnly;

    /**
     * For dataSources of {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType}
     * "sql" only, this property sets
     * the multi-insert strategy for add requests on this {@link
     * com.smartgwt.client.docs.serverds.DataSource dataSource}.  Only
     * has an effect if the {@link com.smartgwt.client.data.DataSource#addData add request} specifies
     * a list of records
     * as the data.  See the docs for {@link com.smartgwt.client.types.MultiInsertStrategy
     * MultiInsertStrategy} for more
     *  information.
     *  <p>
     *  Note that this setting (along with the other multi-insert properties, 
     * {@link com.smartgwt.client.docs.serverds.DataSource#multiInsertBatchSize multiInsertBatchSize}
     * and 
     * {@link com.smartgwt.client.docs.serverds.DataSource#multiInsertNonMatchingStrategy
     * multiInsertNonMatchingStrategy}) can be 
     * overridden at the {@link com.smartgwt.client.docs.serverds.OperationBinding#multiInsertStrategy
     * operationBinding level} and 
     * the {@link com.smartgwt.client.data.DSRequest#getMultiInsertStrategy dsRequest level}.  If you
     * wish to configure 
     *  multi-insert setting globally, you can add the following properties to your 
     *  <code>server.properties</code> file:
     *  <p>
     *    <code>sql.multi.insert.strategy</code> Global equivalent of 
     * {@link com.smartgwt.client.docs.serverds.DataSource#multiInsertStrategy
     * multiInsertStrategy}<br>
     *    <code>sql.multi.insert.batchSize</code>  Global equivalent of 
     * {@link com.smartgwt.client.docs.serverds.DataSource#multiInsertBatchSize
     * multiInsertBatchSize}<br>
     *    <code>sql.multi.insert.non.matching.strategy</code> Global equivalent of 
     * {@link com.smartgwt.client.docs.serverds.DataSource#multiInsertNonMatchingStrategy
     * multiInsertNonMatchingStrategy}
     *  <p>
     *  Example <code>server.properties</code> settings:<pre>
     *    sql.multi.insert.strategy: multipleValues
     *    sql.multi.insert.batchSize: 300
     *    sql.multi.insert.non.matching.strategy: dropMissing
     *  </pre>
     * See the "Batch inserting" paragraph of the {@link com.smartgwt.client.data.DataSource#addData
     * addData() documentation} 
     *  for a description of the multi-insert implementation.
     *
     * <p>Default value is "simple"
     * @see com.smartgwt.client.docs.serverds.DataSource#multiInsertBatchSize
     * @see com.smartgwt.client.docs.serverds.DataSource#multiInsertNonMatchingStrategy
     */
    public MultiInsertStrategy multiInsertStrategy;

    /**
     * An optional description of the DataSource's content. It is not automatically exposed on any
     * component, but it is useful for developer documentation, and as such it is included on any
     * {@link com.smartgwt.client.docs.OpenapiSupport OpenAPI specification} generated by the
     * framework.  Markdown is a commonly-used syntax, but you may also embed HTML content. When
     * embedding HTML in the description in a .ds.xml file (see {@link
     * com.smartgwt.client.docs.DataSourceDeclaration}), it is recommended to wrap the HTML in a CDATA
     * tag. <p> This description is also provided to AI when AI is asked to work with the data source.
     * Best practices for the description are: <ul> <li>Start with a plain language explanation of
     * what the data source and records within it represent, their business concept or core purpose.
     * <li>Describe how the data source relates to other data sources in the application. <li>Mention
     * the approximate size of the data source and whether/when records are updated, added, and
     * removed, as well as the approximate rates of updates, additions, and removals. <li>Identify any
     * known data issues or anomalies. </ul> <p> In addition to the data source-level description,
     * each field can be described via {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#description DataSourceField.description}.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.data.DataSource#getSampleData
     */
    public String description;

    /**
     * Similar to {@link com.smartgwt.client.docs.serverds.OperationBinding#requiresRole
     * OperationBinding.requiresRole}, but controls access to the DataSource as a whole.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.DeclarativeSecurity Declarative Security
     */
    public String requiresRole;

    /**
     * Only applicable to {@link com.smartgwt.client.docs.BinaryFields binary fields} on {@link
     * com.smartgwt.client.docs.serverds.DataSource#audit audited} DataSources. <p> When determining
     * if a binary field has changed for auditing purposes, should we compare the metadata values (ie,
     * the associated <code>_filename</code> and <code>_filesize</code>  fields) or the actual binary
     * content?  If you set this flag to false, this will cause  Smart GWT to fetch the existing
     * content of any binary field from the database before any update, and then compare it byte by
     * byte to the new content.  You should consider if this  will have performance implications for
     * your application, particularly if you store large  binary values. <p> Note that value
     * comparison of any kind is only performed if the field's  {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#audit DataSourceField.audit} setting is
     * "change", but also note that this is the default  setting for binary fields
     *
     * <p>Default value is true
     */
    public boolean compareMetadataForAuditChangeStatus;

    /**
     * If set, tells the SQL engine to quote column names in all generated DML and DDL  statements for
     * this dataSource.  This will ensure that queries generated against tables that do not follow the
     * database product's natural column-naming conventions  will still work. <p> In general we
     * recommend that you allow the database to use its natural naming scheme when creating tables
     * (put more simply, just do not quote column names in the  <code>CREATE TABLE</code> statement);
     * if you do this, you will not need to worry about  quoting column names when querying.  However,
     * if you are dealing with pre-existing  tables, or do not have control over the database naming
     * conventions used, this property may become necessary.  This property may also be necessary if
     * you are using field/column names that clash with reserved words in the underlying database
     * (these vary by database, but a field called "date" or "timestamp" would have problems with most
     * database products) <p> <b>Note:</b> Only applicable to dataSources of {@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "sql".
     *
     * <p>Default value is null
     */
    public Boolean quoteColumnNames;

    /**
     * The native field name used by this DataSource on the server to represent the
     * <code>fileFormat</code> for {@link com.smartgwt.client.docs.FileSource FileSource Operations}. 
     * <p>If the fileFormatField is not configured, then a field named "fileFormat" will be used, if
     * it exists. Otherwise, the DataSource will not track fileFormats -- this may be acceptable if,
     * for instance, the fileFormat is always the same. <p>The fileFormat is specified according to
     * the extension that would have been used in the filesystem -- for instance, the fileFormat for
     * employees.ds.xml would be "xml".
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.FileSource FileSource Operations
     */
    public String fileFormatField;

    /**
     * For this dataSource, should the millisecond portion of time and datetime values be  trimmed off
     * before before being sent from client to server or vice versa.  By default,  millisecond
     * information is preserved (ie, it is not trimmed).  You only need to consider trimming
     * millisecond values if their presence causes a problem - for example, a custom server that is
     * not expecting that extra information and so fails parsing. <p> Note that there is no inherent
     * support for millisecond precision in Smart GWT widgets; if you need millisecond-precise
     * visibility and editability of values in your client,  you must write custom formatters and
     * editors (or sponsor the addition of such things to the framework).  Server-side,
     * millisecond-precise values are delivered to and obtained from DataSources, so DataSource
     * implementations that are capable of persisting and  reading millisecond values should work
     * transparently.  Of the built-in DataSource types, the JPA and Hibernate DataSources will
     * transparently handle millisecond-precise values as long as the underlying database supports
     * millisecond precision, and the underlying  column is of an appropriate type.  The SQLDataSource
     * provides accuracy to the nearest second by default; you can switch on millisecond precision
     * per-field with the  {@link com.smartgwt.client.docs.serverds.DataSourceField#storeMilliseconds
     * storeMilliseconds} attribute.
     *
     * <p>Default value is null
     */
    public Boolean trimMilliseconds;

    /**
     * Additional properties to pass through to the {@link com.smartgwt.client.data.DSRequest}s made
     * by this DataSource.  This must be set before any {@link com.smartgwt.client.data.DSRequest}s
     * are issued and before any component is bound to the DataSource. <p> These properties are
     * applied before {@link com.smartgwt.client.data.DataSource#transformRequest transformRequest()}
     * is called.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.data.DSRequest
     * @see com.smartgwt.client.docs.serverds.OperationBinding#requestProperties
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public DSRequest requestProperties;

    /**
     * For DataSources with {@link com.smartgwt.client.docs.serverds.DataSource#audit auditing
     * enabled}, specifies the field name used to store the {@link
     * com.smartgwt.client.types.DSOperationType operationType} (in a field of type "text").  If empty
     * string is specified as the field name, the audit DataSource will not store this field.
     *
     * <p>Default value is "audit_operationType"
     */
    public String auditTypeFieldName;

    /**
     * <b>Only applicable to the built-in SQL DataSource</b> <p> <code>tableCode</code> and the
     * related properties {@link com.smartgwt.client.docs.serverds.DataSourceField#columnCode
     * DataSourceField.columnCode}, {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#fkTableCode DataSourceField.fkTableCode} and
     * {@link com.smartgwt.client.docs.serverds.DataSourceField#fkColumnCode
     * DataSourceField.fkColumnCode} are read-only attributes that are secure and unique cryptographic
     * hashes of table and column names used by this DataSource. <p> These properties are used
     * automatically by client-side framework code to  link dataSources together by {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#foreignKey foreign key} when a
     * <code>foreignKey</code> is not explicitly declared, but is found in the SQL schema via the
     * {@link com.smartgwt.client.docs.serverds.DataSource#autoDeriveSchema autoDeriveSchema} feature.
     * <p> A secure hash is used rather than the actual SQL table or column name for security reasons
     * - sending the actual SQL table or column name to the client could aid in attempted SQL
     * injection attacks. <p> This feature can be disabled system-wide via setting
     * <code>datasource.autoLinkFKs</code> to <code>false</code> in {@link
     * com.smartgwt.client.docs.Server_properties server.properties}.
     *
     * <p>Default value is null
     */
    public String tableCode;

    /**
     * With ordinary {@link com.smartgwt.client.data.Criteria simple criteria}, it is possible to
     * provide an array
     *  of values for a given field, which means "any of these values".  For example:<pre>
     *   var criteria = {
     *     field1 : "value1",
     *     field2 : ["value2", "value3"]
     *  }</pre>
     *  At first glance, this criteria appears to mean "select records where 'field1' is 'value1'
     *  and 'field2' is one of 'value2' or 'value3'".  However, if the prevailing 
     * {@link com.smartgwt.client.data.DSRequest#getTextMatchStyle textMatchStyle} is "substring" - as
     * it would be if, for
     * example, you had issued a {@link com.smartgwt.client.data.DataSource#filterData filterData()}
     * call - then this 
     *  criteria means "select records where 'field1' contains 'value1' somewhere, and 'field2'
     *  contains either 'value2' or 'value3'"
     *  <p>
     *  Depending on your requirement, this may or may not be what you want, and you can control
     * it by setting the <code>textMatchStyle</code> on your {@link
     * com.smartgwt.client.data.DSRequest}, or by
     *  setting a default <code>textMatchStyle</code> on the DataSource 
     * ({@link com.smartgwt.client.docs.serverds.DataSource#defaultTextMatchStyle
     * defaultTextMatchStyle}), or by specifying that the <code>textMatchStyle</code> 
     * should be ignored for certain fields ({@link
     * com.smartgwt.client.docs.serverds.DataSourceField#ignoreTextMatchStyle
     * DataSourceField.ignoreTextMatchStyle})
     *  <p>
     *  However, a common use case is that you want "substring" style filtering on one or more 
     *  single-valued fields, but exact matching on a list-valued field.  For example, say you
     *  want a list of customers based in certain cities, with a name matching the substring 
     * "software":<pre>
     *   var criteria = {
     *     name : "software",
     *     city : ["York", "Newport", "Orleans"]
     *  }</pre>
     *  Here, using substring matching on the "city" field is likely to give incorrect results,
     *  as it will match a number of US cities in addition to the three European cities 
     *  intended (New York, Yorktown, New Orleans, Newport News, and probably others).  And 
     *  even if this is not an issue for your particular use case, and correct results can be
     *  obtained with a substring search, it is very likely to be more costly performance-wise 
     *  than the exact value match that you really need (potentially much more costly).
     *  <p>  
     *  You could achieve exact matching in the above case by marking the "city" field as 
     *  <code>ignoreTextMatchStyle:true</code>, but that would mean you couldn't perform 
     *  substring searches on that field in other use cases where that might be desirable.  
     *  <p>
     *  In cases like this, Smart GWT by default treats list-valued simple criteria as 
     *  if <code>ignoreTextMatchStyle</code> is in force for that field.  If you want to switch
     *  this behavior off, and have list-valued simple criteria handled with the prevailing 
     *  <code>textMatchStyle</code>, set <code>arrayCriteriaForceExact</code>
     *  to false.  It is also possible to set this flag per-operationBinding and 
     * per-DSRequest - see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#arrayCriteriaForceExact
     * OperationBinding.arrayCriteriaForceExact} and 
     * {@link com.smartgwt.client.data.DSRequest#getArrayCriteriaForceExact
     * DSRequest.arrayCriteriaForceExact}
     *  <p>
     *  If you want to switch this behavior off across the entire system, set the flag in your 
     *  <code>server.properties</code> file:<pre>
     *      arrayCriteriaForceExact: false
     *  </pre>
     *  This will only have an effect for server-side DataSources; if you want to change this
     * flag globally for {@link com.smartgwt.client.docs.serverds.DataSource#clientOnly clientOnly}
     * dataSources, change the 
     * default in the client-side {@link com.smartgwt.client.docs.serverds.DataSource} class, like
     * so:<pre>
     *      isc.DataSource.addProperties({arrayCriteriaForceExact: false});
     *  </pre>
     *  If you do change the global defaults, it is still possible to override per-dataSource 
     *  or per-operationBinding, as described above.
     *  <p>
     *  Note, all of this only applies to <i>simple</i> criteria.  If your dataSource 
     * {@link com.smartgwt.client.data.DataSource#supportsAdvancedCriteria supports AdvancedCriteria},
     * that gives you
     *  much finer and more complete control over the exact meaning of individual criterions.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerDataIntegration Server DataSource Integration
     */
    public Boolean arrayCriteriaForceExact;

    /**
     * For DataSources with {@link com.smartgwt.client.docs.serverds.DataSource#audit auditing
     * enabled}, specifies the length of the field used 
     *  to store the names of the fields which were updated.  See also 
     * {@link com.smartgwt.client.docs.serverds.DataSource#auditChangedFieldsFieldName
     * auditChangedFieldsFieldName}
     *  <p>
     *  To set the changedFields field length for all DataSources that do not override the default,
     *  set <code>audit.auditChangedFieldsFieldLength</code> in your <code>server.properties</code>
     *  file.  For example <pre>
     *         audit.auditChangedFieldsFieldLength: 512
     *  </pre>
     *
     * <p>Default value is 255
     */
    public Integer auditChangedFieldsFieldLength;

    /**
     * For a {@link com.smartgwt.client.docs.ServerRestConnector RestConnector DataSource},
     * authentication details for the REST service.  Note, although RestConnector-specific details
     * would typically be  wrapped in a {@link
     * com.smartgwt.client.docs.serverds.DataSource#serverConfig serverConfig block} to prevent
     * information  leakage to the client, we automatically exclude the <code>auth</code> block even
     * if it is  not inside <code>serverConfig</code>, because this is information that is always
     * sensitive,  and never required on the client
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public RESTAuthentication auth;

    /**
     * For dataSources of {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType}
     * "sql" and "hibernate", specifies the inheritance  mode to use.  This property has no effect for
     * any other type of DataSource.
     *
     * <p>Default value is "full"
     * @see com.smartgwt.client.docs.serverds.DataSource#inheritsFrom
     */
    public DSInheritanceMode inheritanceMode;

    /**
     * If {@link com.smartgwt.client.docs.serverds.DataSource#noNullUpdates noNullUpdates} is set, the
     * value to use for any float field that has a null value assigned on an update operation, and
     * does not specify an explicit {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue nullReplacementValue}.
     *
     * <p>Default value is 0.0
     * @see com.smartgwt.client.docs.serverds.DataSource#noNullUpdates
     * @see com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue
     */
    public float nullFloatValue;

    /**
     * For a DataSource derived from WSDL or XML schema, the XML namespace this schema belongs to. 
     * This is a read-only attribute automatically present on DataSources returned from 
     * SchemaSet.getSchema() and {@link com.smartgwt.client.data.WebService#getSchema
     * WebService.getSchema()}.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public String schemaNamespace;

    /**
     * For dataSources of {@link com.smartgwt.client.docs.serverds.DataSource#serverType serverType}
     * "sql", determines whether we qualify column names with table names in any SQL we generate. 
     * This property can be overridden on specific operationBindings.
     *
     * <p>Default value is true
     * @see com.smartgwt.client.docs.serverds.OperationBinding#qualifyColumnNames
     */
    public Boolean qualifyColumnNames;

    /**
     * For DataSources with {@link com.smartgwt.client.docs.serverds.DataSource#audit auditing
     * enabled}, specifies the field name used to store the revision number for the change (in a field
     * of type "sequence").  If empty string is specified as the field name, the audit DataSource will
     * not store this field.
     *
     * <p>Default value is "audit_revision"
     */
    public String auditRevisionFieldName;

    /**
     * Default URL to contact to fulfill all DSRequests.  Can also be set on a
     * per-operationType basis via {@link com.smartgwt.client.docs.serverds.OperationBinding#dataURL
     * OperationBinding.dataURL}.
     *  <P>
     *  NOTE: Best practice is to use the same <code>dataURL</code> for all DataSources which
     *  fulfill DSRequests via the server-side RPCManager API.  Otherwise, cross-DataSource
     *  {@link com.smartgwt.client.rpc.RPCManager#startQueue operation queuing} will not be possible.
     * 
     *  <h3>dataURL and {@link com.smartgwt.client.docs.ServerRestConnector RestConnector}</h3>
     *  <code>dataURL</code> is also used to configure the address of the target REST server 
     *  for a <code>RestConnector</code> DataSource.  Typically this is done at the 
     * {@link com.smartgwt.client.docs.serverds.OperationBinding#dataURL operationBinding level},
     * because the URLs of REST
     *  services often encode things about the service itself, like whether it is a fetch or an
     *  update.  However, if your REST service does use the same URL for every service, or most 
     *  services, you can configure it here at the DataSource level.
     *  <p>
     * As discussed in the {@link com.smartgwt.client.docs.ServerRestConnector RestConnector
     * overview}, many elements
     *  of <code>RestConnector</code> config can be Velocity templates, and <code>dataURL</code>
     *  is one such element.  For example:<pre>
     *    &lt;operationBinding operationType="fetch" operationId="fetchByPK"&gt;
     *        &lt;dataURL&gt;$config['rest.server.base.url']/fetch/$criteria.pk&lt;/dataURL&gt;
     *    &lt;/operationBinding&gt;</pre>
     *  <b>NOTE:</b> Because the server-side <code>RestConnector</code> implementation
     *  uses the <code>dataURL</code> property to configure the address of the target REST 
     *  server, and that property also has meaning on the client, if you are using a 
     *  <code>RestConnector</code> DataSource, you should specify the <code>dataURL</code> of 
     * the target REST server inside the {@link
     * com.smartgwt.client.docs.serverds.DataSource#serverConfig serverConfig} block
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ClientDataIntegration Client-side Data Integration
     */
    public String dataURL;

    /**
     * Allows you to specify an arbitrary prefix string to apply to all json format responses  sent
     * from the server to this application. <P> The inclusion of such a prefix ensures your code is
     * not directly executable outside of your application, as a preventative measure against <a
     * href='http://www.google.com/search?q=javascript+hijacking' target='_blank'>javascript
     * hijacking</a>. <P> Only applies to responses formatted as json objects. Does not apply to
     * responses returned via scriptInclude type transport.<br> Note: If the prefix / suffix served by
     * your backend is not a constant, you can use  {@link
     * com.smartgwt.client.data.OperationBinding#getDataFormat dataFormat:"custom"} instead and
     * explicitly parse the prefix out as part of {@link
     * com.smartgwt.client.data.DataSource#transformResponse transformResponse()}.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.data.OperationBinding#getDataFormat
     * @see com.smartgwt.client.data.OperationBinding#getDataTransport
     */
    public String jsonPrefix;

    /**
     * For a {@link com.smartgwt.client.docs.SqlDataSource SQL DataSource} that is referred by {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#otherFKs additional foreign keys}, this
     * property defines the table alias name to use in generated SQL. If omitted {@link
     * com.smartgwt.client.docs.serverds.DataSource#ID DataSource ID} will be used to construct the
     * alias. <p> Aliasing is necessary when the same table appears more than once in a query. In
     * addition to use cases described in {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#relatedTableAlias
     * DataSourceField.relatedTableAlias}, this may happen when <code>includeFrom</code> field using
     * {@link com.smartgwt.client.docs.serverds.DataSourceField#otherFKs foreign key defined in
     * otherFKs} would be included multiple times in a related DataSource. <p> See the "Automatically
     * generated table aliases" section of the {@link com.smartgwt.client.docs.CustomQuerying SQL
     * Templating} for the complete set of general rules how aliases are generated. Also, see {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#otherFKs dataSourceField.otherFKs} for more
     * details and usage samples.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSourceField#otherFKs
     * @see com.smartgwt.client.docs.serverds.DataSourceField#includeVia
     * @see com.smartgwt.client.docs.serverds.DataSourceField#relatedTableAlias
     * @see com.smartgwt.client.docs.DataSourceRelations Relations
     */
    public String relatedTableAlias;

    /**
     * For DataSources with type {@link com.smartgwt.client.types.DSServerType
     * <code>projectFile</code>},
     *  specifies locations for the project files. In XML, each location is
     *  expressed with a <code>&lt;location&gt;</code> tag, e.g.:
     * 
     *  <pre>
     *      &lt;projectFileLocations&gt;
     *          &lt;location&gt;[WEBROOT]/shared/ds&lt;/location&gt;
     *          &lt;location&gt;ds://datasources&lt;/location&gt;
     *      &lt;/projectFileLocations&gt;
     *  </pre>
     * 
     *  Directories should be specified as absolute paths on the server.  If you
     *  want to construct a webroot-relative path, then prefix the path with
     *  <code>[WEBROOT]</code> (unlike in
     *  {@link com.smartgwt.client.docs.Server_properties server.properties}, where you would use
     *  <code>$webRoot</code> as the prefix).
     * 
     *  <p>To specify another DataSource to be used via 
     * {@link com.smartgwt.client.docs.FileSource fileSource operations}, use <code>ds://dsName</code>
     *  (where "dsName" is the name of the other DataSource).
     * 
     *  <p>A <code>projectFile</code> DataSource uses the standard
     *  {@link com.smartgwt.client.docs.FileSource fileSource} field names: <code>fileName</code>,
     *  <code>fileType</code>, <code>fileFormat</code>,
     *  <code>fileContents</code>, <code>fileSize</code> and
     *  <code>fileLastModified</code>. When defining a <code>projectFile</code>
     * DataSource, you can use {@link com.smartgwt.client.docs.serverds.DataSource#inheritsFrom
     * inheritsFrom} with
     *  a value of "ProjectFile" to inherit definitions for these fields -- e.g.:
     * 
     *  <pre>
     *      &lt;DataSource ID="MyDataSources" type="projectFile" inheritsFrom="ProjectFile"&gt;
     *          &lt;projectFileLocations&gt;
     *              &lt;location&gt;[WEBROOT]/shared/ds&lt;/location&gt;
     *              &lt;location&gt;ds://datasources&lt;/location&gt;
     *          &lt;/projectFileLocations&gt;
     *      &lt;/DataSource&gt; 
     *  </pre>
     * 
     *  <p>For directory locations, the
     *  <code>fileName</code> is relative to the directory specified. Note that
     *  the <code>fileName</code> does not include any extension for type or
     *  format.  For instance, for "employees.ds.xml", the <code>fileName</code>
     *  would be "employees", the <code>fileType</code> would be "ds" and the
     *  <code>fileFormat</code> would be "xml".
     * 
     *  <p>A projectFile DataSource executes the various 
     *  {@link com.smartgwt.client.docs.FileSource fileSource operations} in the following manner.
     *  The general rule is that <code>fileName</code>, <code>fileType</code>,
     *  and <code>fileFormat</code> are treated as primary keys. If files with the
     *  same combination of those attributes exist in more than one of the
     *  configured locations, the locations are considered in <b>reverse</b>
     *  order, with priority given to the location listed last. When modifying
     *  an existing file, the last location which contains the file will be
     *  used. When creating a new file, the file will be created in the last
     *  configured location.
     * 
     *  <dl>
     *  <dt>{@link com.smartgwt.client.data.DataSource#listFiles listFiles} 
     *  <dd>Returns a combined list of files from
     *      all configured locations. Note that <code>listFiles</code> does not 
     *      recurse into subdirectories. If the same combination of 
     *      <code>fileName / fileType / fileFormat</code> exists in more than
     *      one configured location, then the data for <code>fileSize</code> and
     *      <code>fileLastModified</code> will be taken from the last configured
     *      location which contains the file.
     * 
     *  <dt>{@link com.smartgwt.client.data.DataSource#hasFile hasFile}
     *  <dd>Indicates whether the file exists in any of the configured locations.
     * 
     *  <dt>{@link com.smartgwt.client.data.DataSource#getFile getFile}
     *  <dd>Returns file data by searching the locations in reverse order.
     * 
     *  <dt>{@link com.smartgwt.client.data.DataSource#saveFile saveFile}
     *  <dd>If the file exists, it will be saved in the last location in which
     *      it exists. If it is a new file, it will be saved in the last
     *      configured location.
     * 
     *  <dt>{@link com.smartgwt.client.data.DataSource#renameFile renameFile}
     *  <dd>The file will be renamed in the last location in which it exists.
     *      Note that if the file exists in more than one location, the rename
     *      will not affect other locations. Thus, a subsequent <code>listFiles</code>
     *      operation will return the file from the other location (as well
     *      as the renamed file).
     * 
     *  <dt>{@link com.smartgwt.client.data.DataSource#removeFile removeFile}
     *  <dd>The file will be removed from the last location in which it exists.
     *      Note that if the file exists in more than one location, the removal
     *      will not affect other locations. Thus, a subsequent <code>listFiles</code>
     *      operation will return the file from the other location.
     * 
     *  </dl>
     * 
     *  For convenience, a <code>projectFile</code> DataSource also responds to the standard
     *  DataSource operations, in the following manner:
     * 
     *  <dl>
     *  <dt>add
     *  <dd>Executes a <code>saveFile</code> operation, either adding the file or updating
     *      an existing file.
     * 
     *  <dt>fetch
     *  <dd>Executes a <code>listFiles</code> operation. Note that the results will not
     *      include the <code>fileContents</code>. In order to obtain the
     *      <code>fileContents</code>, you must use a
     *      {@link com.smartgwt.client.data.DataSource#getFile getFile operation}.
     * 
     *  <dt>update
     *  <dd>Executes a <code>renameFile</code> operation. Note that this will not update
     *      the <code>fileContents</code> -- for that, you need to use "add", or
     *      a {@link com.smartgwt.client.data.DataSource#saveFile saveFile operation}. 
     * 
     *  <dt>remove
     *  <dd>Executes a <code>removeFile</code> operation.
     * 
     *  </dl>
     * 
     * <p>If you specify both {@link com.smartgwt.client.docs.serverds.DataSource#projectFileKey
     * projectFileKey} and 
     *  <code>projectFileLocations</code>, then both with be used, with the
     *  <code>projectFileLocations</code> applied last.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSource#projectFileKey
     * @see com.smartgwt.client.docs.FileSource FileSource Operations
     */
    public String[] projectFileLocations;

    /**
     * Controls whether {@link com.smartgwt.client.docs.serverds.AdvancedCriterionSubquery
     * AdvancedCriteria subqueries} are permitted for this <code>DataSource</code>.  Set this value
     * <code>true</code> to always permit  subqueries in criteria on this dataSource, and set it false
     * to always disallow them. <p> The default value of null means that we use the global setting,
     * controlled by setting the <code>allowCriteriaSubqueries</code> flag in your
     * <code>server.properties</code> file (this global flag is true by default))
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.AdvancedFilter Advanced Filtering
     */
    public Boolean allowCriteriaSubqueries;

    /**
     * Requires that the currently authenticated user match the contents of
     *  this field, for client-initiated requests (i.e., where
     *  <code>DSRequest.isClientRequest()</code> returns true on the server).
     *  
     *  <p>Note, the behaviors described below can be affected by the dataSource properties
     *  {@link com.smartgwt.client.docs.serverds.DataSource#ownerIdNullRole ownerIdNullRole} and 
     * {@link com.smartgwt.client.docs.serverds.DataSource#ownerIdNullAccess ownerIdNullAccess}, so
     * please read the documentation 
     *  for those two properties in conjunction with this article.
     * 
     * <p>When a new row is added by a client-initiated {@link com.smartgwt.client.data.DSRequest},
     * the
     *  ownerIdField will be automatically populated with the currently
     *  authenticated user (clobbering any value supplied by the client).
     *  Client-initiated attempts to update the ownerIdField will also be
     *  prevented.
     * 
     *  <p>If you wish to set the ownerIdField to a different value via an "add"
     *  or "update" operation, you can do so in server-side DMI code (possibly
     *  consulting <code>DSRequest.getClientSuppliedValues()</code> to get the
     *  value that was clobbered).
     * 
     *  <p>For client-initiated "fetch", "update" or "remove" operations, the
     *  server will modify client-supplied criteria so that only rows whose
     *  ownerIdField matches the currently authenticated user can be read,
     *  updated or deleted.  For built-in DataSource types (SQL, Hibernate and 
     *  JPA), the additional criteria required to match the <code>ownerIdField</code> 
     *  field will ignore the prevailing
     * {@link com.smartgwt.client.data.DSRequest#getTextMatchStyle textMatchStyle} and always use
     * exact 
     *  equality.  If you have a custom or generic DataSource implementation, 
     *  you will want to do the same thing, to avoid false positives on 
     *  partial matches (eg, a user with name "a" gets records where the owner
     *  is any user with an "a" in the name).  You can determine when this is 
     *  necessary by looking for a {@link com.smartgwt.client.data.DSRequest} attribute called 
     *  "restrictedOwnerIdField".  For example, code similar to the following:<pre>
     *  String restrictedField = (String)dsRequest.getAttribute("restrictedOwnerIdField");
     *  if (field.getName() != null && field.getName().equals(restrictedField)) {
     *   // Use exact matching for this field
     *  } else {
     *   OK to use the textMatchStyle
     *  }
     *  </pre>
     *  Also note, for server-initiated requests, this  automatic criteria-narrowing is not 
     *  applied; if your application requires server-initiated "fetch", "update" and "remove" 
     *  requests to be limited to the currently-authenticated user, your code must add the 
     *  necessary criteria to the request.
     * 
     *  <p>The ownerIdField setting can be overridden at the
     * {@link com.smartgwt.client.docs.serverds.OperationBinding#ownerIdField
     * OperationBinding.ownerIdField} level.
     * 
     *  <p>If ownerIdField is specified,
     * {@link com.smartgwt.client.docs.serverds.DataSource#requiresAuthentication
     * requiresAuthentication} will
     *  default to <code>true</code>. If <code>requiresAuthentication</code> is
     *  explicitly set to <code>false</code>, then unauthenticated users will be
     *  able to see all records. To avoid this, you can use
     * {@link com.smartgwt.client.docs.serverds.DataSource#guestUserId guestUserId} to specify a
     * default user to
     *  apply when no one has authenticated.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.OperationBinding#ownerIdField
     * @see com.smartgwt.client.docs.serverds.DataSource#guestUserId
     */
    public String ownerIdField;

    /**
     * If we are {@link com.smartgwt.client.docs.serverds.DataSource#progressiveLoading loading
     * progressively}, indicates the number of  extra records Smart GWT Server will read beyond the
     * end record requested by the client, in order to establish if there are more records to view. 
     * This property has no effect  if we are not progressive-loading. <p> This property can be
     * tweaked in conjunction with {@link com.smartgwt.client.docs.serverds.DataSource#endGap endGap}
     * to change behavior at the end of a dataset.  For example, with the default values of
     * <code>lookAhead: 1</code> and <code>endGap: 20</code>, we can end up with the viewport
     * shrinking if we get a case where there really was only one more record (because the client was
     * initially told there were 20 more).  This is not a problem per se, but it may be surprising to
     * the user. You could prevent this happening (at the cost of larger reads) by setting 
     * <code>lookAhead</code> to be <code>endGap+1</code>.
     *
     * <p>Default value is 1
     * @see com.smartgwt.client.docs.serverds.DataSource#progressiveLoading
     * @see com.smartgwt.client.docs.serverds.DataSource#endGap
     * @see com.smartgwt.client.docs.ProgressiveLoading Progressive Loading
     */
    public int lookAhead;

    /**
     * fieldName for a field in the dataSource expected to contain an explicit array of child nodes.
     *  Enables loading a databound tree as a hierarchical data structure, rather than a flat list of
     *  nodes linked by foreignKey.<br>
     * Note this is an alternative to setting {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#childrenProperty
     * DataSourceField.childrenProperty} directly on
     *  the childrenField object.<P>
     * By default the children field will be assumed to be {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#multiple multiple},
     *  for XML databinding. This implies that child data should be delivered in the format:
     *  <pre>
     *       &lt;childrenFieldName&gt;
     *           &lt;item name="firstChild" ...&gt;
     *           &lt;item name="secondChild" ...&gt;
     *       &lt;/childrenFieldName&gt;
     *  </pre>
     *  However data may also be delivered as a direct list of <code>childrenFieldName</code> 
     *  elements:
     *  <pre>
     *       &lt;childrenFieldName name="firstChild" ...&gt;
     *       &lt;childrenFieldName name="secondChild" ...&gt;
     *  </pre>
     *  If you want to return your data in this format, you will need to explicitly set 
     *  <code>multiple</code> to false in the appropriate dataSource field definition.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.serverds.DataSourceField#childrenProperty
     * @see com.smartgwt.client.docs.DataSourceRelations Relations
     */
    public String childrenField;

    /**
     * Applies to RestConnector dataSources ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only, and is
     * overridable per operationBinding (see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#httpMethod OperationBinding.httpMethod}).
     * <p> Allows you to configure the HTTP method to use for this DataSource.  Since REST services
     * typically use different HTTP methods for different types of operation - it is common to use GET
     * for fetches and PUT for updates, for example - this property is more commonly set at  the
     * {@link com.smartgwt.client.docs.serverds.OperationBinding#httpMethod operationBinding level}
     * than at the DataSource level. See <a
     * href=https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods>this Mozilla article</a> for a
     * list of valid HTTP methods. <p> If this property is not provided at either DataSource or
     * opBinding level,  <code>RestConnector</code> uses a default HTTP method depending on the type
     * of operation: <table width="400"> <tr><td>Operation type</td><td>HTTP Method</td></tr>
     * <tr><td>Fetch</td><td>GET</td></tr> <tr><td>Add</td><td>POST</td></tr>
     * <tr><td>Update</td><td>PUT</td></tr> <tr><td>Remove</td><td>DELETE</td></tr> </table>
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public String httpMethod;

    /**
     * ID of another DataSource this DataSource inherits its {@link
     * com.smartgwt.client.docs.serverds.DataSource#fields fields} from. <P> Local fields (fields
     * defined in this DataSource) are added to inherited fields  to form the full set of fields. 
     * Fields with the same name are merged in the same way that {@link
     * com.smartgwt.client.widgets.DataBoundComponent#getFields databound component fields} are merged
     * with DataSource fields. <P> The default order of the combined fields is new local fields first
     * (including any fields present in the parent DataSource which the local DataSource re-declares),
     * then parent fields.  You can set {@link
     * com.smartgwt.client.docs.serverds.DataSource#useParentFieldOrder useParentFieldOrder} to
     * instead use the parent's field order, with new local fields appearing last.  You can set {@link
     * com.smartgwt.client.docs.serverds.DataSource#showLocalFieldsOnly showLocalFieldsOnly} to have
     * all non-local fields hidden. <P> Note that <b>only fields are inherited</b> - other properties
     * such as dataURL and dataFormat are not.  You can use ordinary inheritance, that is, creating a
     * subclass of DataSource, in order to share properties such as dataURL across a series of
     * DataSources that also inherit fields from each other via <code>inheritsFrom</code>. <P> This
     * feature can be used for: <ul> <li>creating a customized view (eg, only certain fields shown)
     * which will be used by multiple {@link com.smartgwt.client.widgets.DataBoundComponent databound
     * components}. <li>adding presentation-specific attributes to metadata that has been
     * automatically derived from {@link com.smartgwt.client.data.XMLTools#loadXMLSchema XML Schema}
     * or other metadata formats <li>modeling object subclassing and extension in server-side code and
     * storage systems <li>modeling relational database joins, and the equivalents in other systems
     * <li>creating hooks for others to customize your application in a maintainable way.  For
     * example, if you have a dataSource "employee", you can create a dataSource "customizedEmployee"
     * which inherits from "employee" but does not initially define any fields, and bind all {@link
     * com.smartgwt.client.widgets.DataBoundComponent databound components} to "customizedEmployee". 
     * Customizations of fields (including appearance changes, field order, new fields, hiding of
     * fields, and custom validation rules) can be added to "customizedEmployee", so that they are
     * kept separately from the original field data and have the best possible chance of working with
     * future versions of the "employee" dataSource. </ul>
     *
     * <p>Default value is null
     */
    public String inheritsFrom;

    /**
     * Applies to RestConnector dataSources ({@link
     * com.smartgwt.client.docs.serverds.DataSource#serverType serverType} "rest") only, and is
     * overridable per operationBinding (see {@link
     * com.smartgwt.client.docs.serverds.OperationBinding#wrapInList OperationBinding.wrapInList}).
     * <p> When true, and the {@link com.smartgwt.client.docs.serverds.DataSource#requestFormat
     * requestFormat} is "json", and the  {@link com.smartgwt.client.data.DSRequest dsRequest} only
     * contains a single valueSet, we will wrap that single valueSet in a list before sending to the
     * remote REST server.  This is useful if you have  a remote service that wants data to be
     * supplied as a list, even when there is only one entry in the list
     *
     * <p>Default value is false
     * @see com.smartgwt.client.docs.ServerRestConnector Server-side REST Connector
     */
    public Boolean wrapInList;

    /**
     * For audit DataSources, this required property specifies the ID of the {@link
     * com.smartgwt.client.docs.serverds.DataSource#audit audited} DataSource.  Automatically
     * populated for {@link com.smartgwt.client.docs.serverds.DataSource#generateAuditDS
     * auto-generated} audit DataSources.
     *
     * <p>Default value is varies
     */
    public String auditedDataSourceID;

    /**
     * If {@link com.smartgwt.client.docs.serverds.DataSource#noNullUpdates noNullUpdates} is set, the
     * value to use for any boolean field that has a null value assigned on an update operation, and
     * does not specify an explicit {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue nullReplacementValue}.
     *
     * <p>Default value is false
     * @see com.smartgwt.client.docs.serverds.DataSource#noNullUpdates
     * @see com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue
     */
    public boolean nullBooleanValue;

    /**
     * If {@link com.smartgwt.client.docs.serverds.DataSource#noNullUpdates noNullUpdates} is set, the
     * value to use for any date or time field that has a null value assigned on an update operation,
     * and does not specify an explicit {@link
     * com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue nullReplacementValue}.
     * <p> Unlike strings and numbers, there is no "natural" choice for a null replacement value  for
     * dates.  The default value we have chosen is midnight on January 1st 1970, simply  because this
     * is "the epoch" - the value that is returned by calling "new Date(0)"
     *
     * <p>Default value is See below
     * @see com.smartgwt.client.docs.serverds.DataSource#noNullUpdates
     * @see com.smartgwt.client.docs.serverds.DataSourceField#nullReplacementValue
     */
    public Date nullDateValue;

    /**
     * Name of the field that has the most pertinent numeric, date, or enum value, for use when a
     * {@link com.smartgwt.client.widgets.DataBoundComponent} needs to show a short summary of a
     * record. <P> For example, for a DataSource of employees, good choices might be the "salary"
     * field, "hire date" or "status" (active, vacation, on leave, etc). <p> Unlike {@link
     * com.smartgwt.client.docs.serverds.DataSource#titleField titleField}, dataField is not
     * automatically determined in the absence of an explicit setting.
     *
     * <p>Default value is null
     * @see com.smartgwt.client.docs.DsSpecialFields DsSpecialFields overview and related methods
     */
    public String dataField;

}
