|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jdo.model.jdo.NullValueTreatment
public class NullValueTreatment
This interface provides constants denoting the treatment of null values for persistent fields during storage in the data store.
| Field Summary | |
|---|---|
static int |
DEFAULT
Constant representing converting a null value of a field of nullable type to the default value for the type in the datastore. |
static int |
EXCEPTION
Constant representing throwing an exception when storing a null value of field of a nullable type that is mapped to non-nullable type in the datastore. |
static int |
NONE
Constant representing converting a null value of a field of nullable type to the default value for the type in the datastore. |
| Constructor Summary | |
|---|---|
NullValueTreatment()
|
|
| Method Summary | |
|---|---|
static int |
toNullValueTreatment(java.lang.String nullValueTreatment)
Returns the NullValueTreatment constant for the string representation. |
static java.lang.String |
toString(int nullValueTreatment)
Returns a string representation of the specified NullValueTreatment constant. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NONE
public static final int EXCEPTION
public static final int DEFAULT
| Constructor Detail |
|---|
public NullValueTreatment()
| Method Detail |
|---|
public static java.lang.String toString(int nullValueTreatment)
nullValueTreatment - the null value treatment, one of
NONE, EXCEPTION or DEFAULT
public static int toNullValueTreatment(java.lang.String nullValueTreatment)
nullValueTreatment - the string representation of the null value
treatment
NONE,
EXCEPTION or DEFAULT
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||