You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2021/04/29 07:01:41 UTC

[empire-db] branch master updated: EMPIREDB-346 missing new interface added

This is an automated email from the ASF dual-hosted git repository.

doebele pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/empire-db.git


The following commit(s) were added to refs/heads/master by this push:
     new 4ef4e89  EMPIREDB-346 missing new interface added
4ef4e89 is described below

commit 4ef4e89dcd63c97b2ad16c614c478bc129667df0
Author: Rainer Döbele <do...@apache.org>
AuthorDate: Thu Apr 29 09:01:37 2021 +0200

    EMPIREDB-346
    missing new interface added
---
 .../java/org/apache/empire/commons/EnumValue.java  | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/empire-db/src/main/java/org/apache/empire/commons/EnumValue.java b/empire-db/src/main/java/org/apache/empire/commons/EnumValue.java
new file mode 100644
index 0000000..0becaf5
--- /dev/null
+++ b/empire-db/src/main/java/org/apache/empire/commons/EnumValue.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 org.apache.empire.commons;
+
+/**
+ * EnumValue
+ * allows to provide a custom conversion between an enum and its database value
+ * @author doebele
+ */
+public interface EnumValue
+{
+    public Object toValue(boolean numeric);
+}