Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## net.java.ao.schema
Annotation Type Default

    @Retention(value=RUNTIME)
    @Target(value=METHOD)
    public @interface Default

Specifies a default value for the database field corresponding to the tagged method. This default value will be used at INSERT, usually automatically by the database. If the database does not provide a DEFAULT modifier for fields, the value will be injected into any INSERT statement, ensuring it is indeed the default value for the field in question.

Author:
  Daniel Spiewak

Required Element Summary
`String` | `value` Contains the database-agnostic representation of the default value for the corresponding field.

Element Detail

### value

    public abstract String value

  Contains the database-agnostic representation of the default value for the corresponding field. The conversion between this `String` and the appropriate value is handled by the `DatabaseType.defaultParseValue(String)` method. Thus, even default values for custom types are supported.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2007-2011. All Rights Reserved.