Ableverse™
TOB 6.0

av.tob
Annotation Type TypeSpec


@Inherited
@Target(value=FIELD)
@Retention(value=CLASS)
public @interface TypeSpec

Hints the SwapEngine of TheObjectBase about type of the annotated persistent field.

Author:
Compl

Optional Element Summary
 String defaultValue
          Specify default swap value, this could only affect incrementally added persistent field's default value in the swap.
 int precision
          Nagative value to auto determine, this will be ultimately interpreted by swap engines.
 int scale
          Nagative value to auto determine, this will be ultimately interpreted by swap engines.
 String type
          Specify particular type than default, this will be ultimately interpreted by swap engines.
 

type

public abstract String type
Specify particular type than default, this will be ultimately interpreted by swap engines.

Returns:
name of the type
Default:
""

precision

public abstract int precision
Nagative value to auto determine, this will be ultimately interpreted by swap engines.

Returns:
precision of the type
Default:
-1

scale

public abstract int scale
Nagative value to auto determine, this will be ultimately interpreted by swap engines.

Returns:
scale of the type
Default:
-1

defaultValue

public abstract String defaultValue
Specify default swap value, this could only affect incrementally added persistent field's default value in the swap.

Returns:
literal string of the default swap value
Default:
""

Ableverse™
TOB 6.0

Copyright© 2006 Ableverse Platform. All rights reserved.