diff options
| author | Brian S. O'Neill <bronee@gmail.com> | 2008-07-20 06:25:27 +0000 | 
|---|---|---|
| committer | Brian S. O'Neill <bronee@gmail.com> | 2008-07-20 06:25:27 +0000 | 
| commit | ed2af862bd5ac610a0ff7666afb824f29eb67306 (patch) | |
| tree | 6a8833bf634d09c18fbcb1e69d8153a8fa5fc03e /src/test/java/com/amazon/carbonado/stored | |
| parent | 58b7d9479070c41656c730a45625adcfcaf27b14 (diff) | |
Support BigInteger and BigDecimal property types.
Diffstat (limited to 'src/test/java/com/amazon/carbonado/stored')
| -rw-r--r-- | src/test/java/com/amazon/carbonado/stored/WithBigDecimal.java | 39 | ||||
| -rw-r--r-- | src/test/java/com/amazon/carbonado/stored/WithBigInteger.java | 39 | 
2 files changed, 78 insertions, 0 deletions
diff --git a/src/test/java/com/amazon/carbonado/stored/WithBigDecimal.java b/src/test/java/com/amazon/carbonado/stored/WithBigDecimal.java new file mode 100644 index 0000000..cb9ffe8 --- /dev/null +++ b/src/test/java/com/amazon/carbonado/stored/WithBigDecimal.java @@ -0,0 +1,39 @@ +/*
 + * Copyright 2008 Amazon Technologies, Inc. or its affiliates.
 + * Amazon, Amazon.com and Carbonado are trademarks or registered trademarks
 + * of Amazon Technologies, Inc. or its affiliates.  All rights reserved.
 + *
 + * Licensed under the Apache License, Version 2.0 (the "License");
 + * you may not use this file except in compliance with the License.
 + * You may obtain a copy of the License at
 + *
 + *     http://www.apache.org/licenses/LICENSE-2.0
 + *
 + * Unless required by applicable law or agreed to in writing, software
 + * distributed under the License is distributed on an "AS IS" BASIS,
 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 + * See the License for the specific language governing permissions and
 + * limitations under the License.
 + */
 +
 +package com.amazon.carbonado.stored;
 +
 +import java.math.BigDecimal;
 +
 +import com.amazon.carbonado.*;
 +
 +/**
 + * 
 + *
 + * @author Brian S O'Neill
 + */
 +@PrimaryKey("id")
 +@Indexes(@Index("number"))
 +public interface WithBigDecimal extends Storable {
 +    int getId();
 +    void setId(int id);
 +
 +    @Nullable
 +    BigDecimal getNumber();
 +    void setNumber(BigDecimal number);
 +}
 diff --git a/src/test/java/com/amazon/carbonado/stored/WithBigInteger.java b/src/test/java/com/amazon/carbonado/stored/WithBigInteger.java new file mode 100644 index 0000000..f789782 --- /dev/null +++ b/src/test/java/com/amazon/carbonado/stored/WithBigInteger.java @@ -0,0 +1,39 @@ +/*
 + * Copyright 2008 Amazon Technologies, Inc. or its affiliates.
 + * Amazon, Amazon.com and Carbonado are trademarks or registered trademarks
 + * of Amazon Technologies, Inc. or its affiliates.  All rights reserved.
 + *
 + * Licensed under the Apache License, Version 2.0 (the "License");
 + * you may not use this file except in compliance with the License.
 + * You may obtain a copy of the License at
 + *
 + *     http://www.apache.org/licenses/LICENSE-2.0
 + *
 + * Unless required by applicable law or agreed to in writing, software
 + * distributed under the License is distributed on an "AS IS" BASIS,
 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 + * See the License for the specific language governing permissions and
 + * limitations under the License.
 + */
 +
 +package com.amazon.carbonado.stored;
 +
 +import java.math.BigInteger;
 +
 +import com.amazon.carbonado.*;
 +
 +/**
 + * 
 + *
 + * @author Brian S O'Neill
 + */
 +@PrimaryKey("id")
 +@Indexes(@Index("number"))
 +public interface WithBigInteger extends Storable {
 +    int getId();
 +    void setId(int id);
 +
 +    @Nullable
 +    BigInteger getNumber();
 +    void setNumber(BigInteger number);
 +}
  | 
