Enum DSServerType
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<DSServerType>
,Constable
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
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRequests will be delivered to the server and you are expected to write Java code to create a valid response.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).Use Smart GWT's built-in JPA 2.0 connector.Use Smart GWT's built-in JPA 1.0 connector.Use Smart GWT's built-inOData DataSource
.Requests will be delivered to the server and processed asFileSource operations
, using directories or other DataSources which you configure viaDataSource.projectFileKey
orDataSource.projectFileLocations
Use Smart GWT's built-inRestConnector
, which can connect to many different types of REST webserviceUse Smart GWT'sbuilt-in SQL connectors
to talk directly to relational databases.Use Smart GWT's built-inunionDataSource
, which assimilates records from multiple member dataSources -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static DSServerType
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.
-
Enum Constant Details
-
SQL
Use Smart GWT'sbuilt-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". -
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). SeeHibernateIntegration
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". -
JPA
Use Smart GWT's built-in JPA 2.0 connector.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "jpa". -
JPA1
Use Smart GWT's built-in JPA 1.0 connector.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "jpa1". -
REST
Use Smart GWT's built-inRestConnector
, which can connect to many different types of REST webserviceIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "rest". -
ODATA
Use Smart GWT's built-inOData DataSource
. This is a specialized subclass of theRestConnector
which adds functionality for REST webservices that follow the OData protocolIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "odata". -
GENERIC
Requests will be delivered to the server and you are expected to write Java code to create a valid response. Throws an error if the server side method dsRequest.execute() is called. This is appropriate if you intend an entirely custom implementation, and you want an error thrown if there is an attempt to call an operation you have not implemented.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "generic". -
PROJECTFILE
Requests will be delivered to the server and processed asFileSource operations
, using directories or other DataSources which you configure viaDataSource.projectFileKey
orDataSource.projectFileLocations
If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "projectFile". -
UNION
Use Smart GWT's built-inunionDataSource
, which assimilates records from multiple member dataSourcesIf this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "union".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
-