public enum DSServerType extends java.lang.Enum<DSServerType> implements ValueEnum
If
you use a Java-based persistence layer not provided by Smart GWT, such as EJB or your own custom object model, you don't
need to set dataSource.serverType
and should follow the integration instructions
.
Enum Constant and Description |
---|
GENERIC
Requests will be delivered to the server and you are expected to write Java code to create a valid response.
|
HIBERNATE
Use Hibernate, either using a real mapped bean or by automatically generating a Hibernate configuration based on a
Smart GWT DataSource file (dataSourceID.ds.xml).
|
JPA
Use Smart GWT's built-in JPA 2.0 connector.
|
JPA1
Use Smart GWT's built-in JPA 1.0 connector.
|
ODATA
Use Smart GWT's built-in
OData DataSource . |
PROJECTFILE
Requests will be delivered to the server and processed as
FileSource
operations , using directories or other DataSources which you configure via DataSource.projectFileKey or DataSource.projectFileLocations |
REST
Use Smart GWT's built-in
RestConnector , which can connect to many
different types of REST webservice |
SQL
Use Smart GWT's
built-in SQL connectors to talk directly to relational
databases. |
UNION
Use Smart GWT's built-in
unionDataSource , which assimilates records
from multiple member dataSources |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static DSServerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DSServerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DSServerType SQL
built-in SQL connectors
to talk directly to relational
databases.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "sql".
public static final DSServerType HIBERNATE
HibernateIntegration
for
details.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "hibernate".
public static final DSServerType JPA
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "jpa".
public static final DSServerType JPA1
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "jpa1".
public static final DSServerType REST
RestConnector
, which can connect to many
different types of REST webservice
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "rest".
public static final DSServerType ODATA
OData DataSource
. This is a specialized
subclass of the RestConnector
which adds functionality for REST webservices that follow the OData protocol
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "odata".
public static final DSServerType GENERIC
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "generic".
public static final DSServerType PROJECTFILE
FileSource
operations
, using directories or other DataSources which you configure via DataSource.projectFileKey
or DataSource.projectFileLocations
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "projectFile".
public static final DSServerType UNION
unionDataSource
, which assimilates records
from multiple member dataSources
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "union".
public static DSServerType[] values()
for (DSServerType c : DSServerType.values()) System.out.println(c);
public static DSServerType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null