From 7c6eb95a14d5467c8396524645a1b2d9273a7300 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 23 Oct 2006 18:14:09 +0000 Subject: Examples make consistent use of get/set pair. --- src/main/java/com/amazon/carbonado/adapter/AdapterDefinition.java | 1 + src/main/java/com/amazon/carbonado/adapter/DateTimeAdapter.java | 1 + src/main/java/com/amazon/carbonado/adapter/TextAdapter.java | 1 + src/main/java/com/amazon/carbonado/adapter/TrueFalseAdapter.java | 1 - src/main/java/com/amazon/carbonado/adapter/YesNoAdapter.java | 1 - 5 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/adapter') diff --git a/src/main/java/com/amazon/carbonado/adapter/AdapterDefinition.java b/src/main/java/com/amazon/carbonado/adapter/AdapterDefinition.java index 0787010..f6292b9 100644 --- a/src/main/java/com/amazon/carbonado/adapter/AdapterDefinition.java +++ b/src/main/java/com/amazon/carbonado/adapter/AdapterDefinition.java @@ -87,6 +87,7 @@ import java.lang.annotation.*; * public interface UserInfo extends Storable { * @TrueFalseAdapter * boolean isAdministrator(); + * void setAdministrator(boolean admin); * } * * diff --git a/src/main/java/com/amazon/carbonado/adapter/DateTimeAdapter.java b/src/main/java/com/amazon/carbonado/adapter/DateTimeAdapter.java index 5102b70..af715ac 100644 --- a/src/main/java/com/amazon/carbonado/adapter/DateTimeAdapter.java +++ b/src/main/java/com/amazon/carbonado/adapter/DateTimeAdapter.java @@ -48,6 +48,7 @@ import com.amazon.carbonado.adapter.AdapterDefinition; * public interface UserInfo extends Storable { * @DateTimeAdapter(timeZone="UTC") * DateTime getModifyDateTime(); + * void setModifyDateTime(DateTime dt); * * ... * } diff --git a/src/main/java/com/amazon/carbonado/adapter/TextAdapter.java b/src/main/java/com/amazon/carbonado/adapter/TextAdapter.java index e07ed50..8a51c3f 100644 --- a/src/main/java/com/amazon/carbonado/adapter/TextAdapter.java +++ b/src/main/java/com/amazon/carbonado/adapter/TextAdapter.java @@ -52,6 +52,7 @@ import com.amazon.carbonado.adapter.AdapterDefinition; * public interface UserInfo extends Storable { * @TextAdapter(charset="UTF-8") * String getWelcomeMessage(); + * void setWelcomeMessage(String message); * * ... * } diff --git a/src/main/java/com/amazon/carbonado/adapter/TrueFalseAdapter.java b/src/main/java/com/amazon/carbonado/adapter/TrueFalseAdapter.java index 886b994..74dcd09 100644 --- a/src/main/java/com/amazon/carbonado/adapter/TrueFalseAdapter.java +++ b/src/main/java/com/amazon/carbonado/adapter/TrueFalseAdapter.java @@ -31,7 +31,6 @@ import java.lang.annotation.Target; * public interface UserInfo extends Storable { * @TrueFalseAdapter * boolean isAdministrator(); - * * void setAdministrator(boolean admin); * * ... diff --git a/src/main/java/com/amazon/carbonado/adapter/YesNoAdapter.java b/src/main/java/com/amazon/carbonado/adapter/YesNoAdapter.java index 4d9c979..f28b4af 100644 --- a/src/main/java/com/amazon/carbonado/adapter/YesNoAdapter.java +++ b/src/main/java/com/amazon/carbonado/adapter/YesNoAdapter.java @@ -31,7 +31,6 @@ import java.lang.annotation.Target; * public interface UserInfo extends Storable { * @YesNoAdapter * boolean isAdministrator(); - * * void setAdministrator(boolean admin); * * ... -- cgit v1.2.3