com.pivotal.gemfirexd.internal.shared.common.reference.JDBC40Translation Maven / Gradle / Ivy
/*
Derby - Class com.pivotal.gemfirexd.internal.shared.common.reference.JDBC40Translation
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.
*/
/*
* Changes for GemFireXD distributed data platform (some marked by "GemStone changes")
*
* Portions Copyright (c) 2010-2015 Pivotal Software, Inc. 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. See accompanying
* LICENSE file.
*/
/*
* Changes for SnappyData data platform.
*
* Portions Copyright (c) 2017-2019 TIBCO Software Inc. 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. See accompanying
* LICENSE file.
*/
package com.pivotal.gemfirexd.internal.shared.common.reference;
/**
This class contains public statics that map directly to the
new public statics in the jdbc 4.0 interfaces. By providing
an intermediary class with hard-coded copies of constants that
will be available in jdbc 4.0, it becomes possible to refer to
these constants when compiling against older jdk versions.
The test jdbc4/JDBC40TranslationTest.junit
,
which is compiled against jdk16, contains tests that verifies
that these hard coded constants are in fact equal to those
found in jdk16.
This class should not be shipped with the product.
This class has no methods, all it contains are constants
are public, static and final since they are declared in an interface.
*/
public interface JDBC40Translation {
/*
** public statics from 4.0 version of java.sql.DatabaseMetaData
*/
public static final int FUNCTION_PARAMETER_UNKNOWN = 0;
public static final int FUNCTION_PARAMETER_IN = 1;
public static final int FUNCTION_PARAMETER_INOUT = 2;
public static final int FUNCTION_PARAMETER_OUT = 3;
public static final int FUNCTION_RETURN = 4;
public static final int FUNCTION_COLUMN_RESULT = 5;
public static final int FUNCTION_NO_NULLS = 0;
public static final int FUNCTION_NULLABLE = 1;
public static final int FUNCTION_NULLABLE_UNKNOWN = 2;
public static final int FUNCTION_RESULT_UNKNOWN = 0;
public static final int FUNCTION_NO_TABLE = 1;
public static final int FUNCTION_RETURNS_TABLE = 2;
// constants from java.sql.Types
public static final int NCHAR = -15;
public static final int NVARCHAR = -9;
public static final int LONGNVARCHAR = -16;
public static final int NCLOB = 2011;
public static final int ROWID = -8;
public static final int SQLXML = 2009;
// GemStone changes BEGIN
// additional Types used by SnappyData
public static final int MAP = 4001;
public static final int JSON = 4002;
// GemStone changes END
}