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.public static final DSServerType HIBERNATE
HibernateIntegration
for
details.public static final DSServerType JPA
public static final DSServerType JPA1
public static final DSServerType 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