Skip to content

Commit 5d98cce

Browse files
authored
Merge pull request #1 from aerospike/annotations-package-cleanup
Annotations package cleanup.
2 parents 6a82d0f + 7140623 commit 5d98cce

File tree

10 files changed

+19
-25
lines changed

10 files changed

+19
-25
lines changed

src/main/java/com/aerospike/mapper/annotations/AerospikeBin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
public @interface AerospikeBin {
1414
/**
1515
* The name of the bin to use. If not specified, the field name is used for the bin name.
16-
* @return
1716
*/
1817
String name() default "";
1918
}

src/main/java/com/aerospike/mapper/annotations/AerospikeEmbed.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@
55
import java.lang.annotation.RetentionPolicy;
66
import java.lang.annotation.Target;
77

8-
@Retention(RetentionPolicy.RUNTIME)
9-
@Target(ElementType.FIELD)
108
/**
11-
* Bins marked with AerospikeExclude will not be mapped to the database, irrespective of other annotations.
9+
* Bins marked with AerospikeExclude will not be mapped to the database, irrespective of other annotations.
1210
*/
11+
@Retention(RetentionPolicy.RUNTIME)
12+
@Target(ElementType.FIELD)
1313
public @interface AerospikeEmbed {
14-
public static enum EmbedType {
14+
15+
enum EmbedType {
1516
LIST,
1617
MAP,
1718
DEFAULT
1819
}
20+
1921
EmbedType type() default EmbedType.DEFAULT;
2022
/**
2123
* The elementType is used for sub-elements. For example, if there is:
@@ -25,8 +27,6 @@ public static enum EmbedType {
2527
* private List<Account> accounts;
2628
* </pre>
2729
* then the objects will be stored in the database as lists of lists, rather than lists of maps.
28-
*
29-
* @return
3030
*/
3131
EmbedType elementType() default EmbedType.DEFAULT;
3232

@@ -79,7 +79,6 @@ public static enum EmbedType {
7979
* <pre>
8080
* KEY_ORDERED_MAP('{99:["details2", 99, 200], 101:["details1", 101, 100], 1010:["details3", 1010, 300]}')
8181
* </pre>
82-
* @return
8382
*/
8483
boolean saveKey() default false;
8584
}

src/main/java/com/aerospike/mapper/annotations/AerospikeExclude.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import java.lang.annotation.RetentionPolicy;
66
import java.lang.annotation.Target;
77

8-
@Retention(RetentionPolicy.RUNTIME)
9-
@Target(ElementType.FIELD)
108
/**
11-
* Bins marked with AerospikeExclude will not be mapped to the database, irrespective of other annotations.
9+
* Bins marked with AerospikeExclude will not be mapped to the database, irrespective of other annotations.
1210
*/
11+
@Retention(RetentionPolicy.RUNTIME)
12+
@Target(ElementType.FIELD)
1313
public @interface AerospikeExclude {
1414
}

src/main/java/com/aerospike/mapper/annotations/AerospikeGetter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
public @interface AerospikeGetter {
1414
/**
1515
* The name of the bin to use.
16-
* @return
1716
*/
1817
String name();
1918
}

src/main/java/com/aerospike/mapper/annotations/AerospikeKey.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
@Retention(RetentionPolicy.RUNTIME)
99
@Target({ElementType.FIELD, ElementType.METHOD})
1010
public @interface AerospikeKey {
11-
/** The setter attribute is used only on Methods where the method is used to set the key on lazy object instantiation */
12-
public boolean setter() default false;
11+
/**
12+
* The setter attribute is used only on Methods where the method is used to set the key on lazy object instantiation
13+
*/
14+
boolean setter() default false;
1315
}

src/main/java/com/aerospike/mapper/annotations/AerospikeOrdinal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
@Retention(RetentionPolicy.RUNTIME)
99
@Target({ElementType.FIELD, ElementType.METHOD})
1010
public @interface AerospikeOrdinal {
11-
public int value() default 1;
11+
int value() default 1;
1212
}

src/main/java/com/aerospike/mapper/annotations/AerospikeRecord.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
int ttl() default 0;
1616
/**
1717
* Determine whether to add all the bins or not. If true, all bins will be added without having to map them via @AerospikeBin
18-
* @return
1918
*/
2019
boolean mapAll() default true;
2120
int version() default 1;

src/main/java/com/aerospike/mapper/annotations/AerospikeReference.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,27 @@
55
import java.lang.annotation.RetentionPolicy;
66
import java.lang.annotation.Target;
77

8-
@Retention(RetentionPolicy.RUNTIME)
9-
@Target(ElementType.FIELD)
108
/**
11-
* Bins marked with AerospikeExclude will not be mapped to the database, irrespective of other annotations.
9+
* Bins marked with AerospikeExclude will not be mapped to the database, irrespective of other annotations.
1210
*/
11+
@Retention(RetentionPolicy.RUNTIME)
12+
@Target(ElementType.FIELD)
1313
public @interface AerospikeReference {
1414
/**
1515
* Fields marked as being lazy references will not be read from Aerospike at runtime when the parent class is
1616
* read. Instead, a new object with just the key populated will be created
17-
* @return
1817
*/
1918
boolean lazy() default false;
2019
/**
2120
* When a reference is to be loaded, it can either be loaded inline or it can be loaded via a batch load. The
2221
* batch load is typically significantly more efficient. Set this flag to <pre>false</pre> to prevent the batch load
23-
* @return
2422
*/
2523
boolean batchLoad() default true;
2624

27-
public static enum ReferenceType {
25+
enum ReferenceType {
2826
ID,
2927
DIGEST
3028
}
31-
ReferenceType type() default ReferenceType.ID;
3229

30+
ReferenceType type() default ReferenceType.ID;
3331
}

src/main/java/com/aerospike/mapper/annotations/AerospikeSetter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
public @interface AerospikeSetter {
1414
/**
1515
* The name of the bin to use.
16-
* @return
1716
*/
1817
String name();
1918
}

src/main/java/com/aerospike/mapper/annotations/ParamFrom.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
public @interface ParamFrom {
1414
/**
1515
* The name of the bin to use.
16-
* @return
1716
*/
1817
String value();
1918
}

0 commit comments

Comments
 (0)