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.
|
SQL
Use Smart GWT's
built-in SQL connectors to talk directly to relational
databases. |
| 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 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 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