Package org.apache.openjpa.jdbc.schema
Class Schemas
- java.lang.Object
-
- org.apache.openjpa.jdbc.schema.Schemas
-
public class Schemas extends java.lang.Object
Helper class to deal with schemas.- Author:
- Abe White
-
-
Field Summary
Fields Modifier and Type Field Description static Column[]
EMPTY_COLUMNS
static ForeignKey[]
EMPTY_FOREIGN_KEYS
static Index[]
EMPTY_INDEXES
static Unique[]
EMPTY_UNIQUES
static java.lang.Object[]
EMPTY_VALUES
-
Constructor Summary
Constructors Constructor Description Schemas()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.Class<?>
getJavaType(int type, int size, int decimals)
Return the java type for the given SQL type fromTypes
.static java.lang.String
getJDBCName(int type)
Return the SQL type name for the givenTypes
constant.static int
getJDBCType(java.lang.String name)
Return theTypes
constant for the given SQL type name.static java.lang.String
getNewTableSchema(JDBCConfiguration conf)
Deprecated.static DBIdentifier
getNewTableSchemaIdentifier(JDBCConfiguration conf)
-
-
-
Field Detail
-
EMPTY_COLUMNS
public static final Column[] EMPTY_COLUMNS
-
EMPTY_FOREIGN_KEYS
public static final ForeignKey[] EMPTY_FOREIGN_KEYS
-
EMPTY_INDEXES
public static final Index[] EMPTY_INDEXES
-
EMPTY_UNIQUES
public static final Unique[] EMPTY_UNIQUES
-
EMPTY_VALUES
public static final java.lang.Object[] EMPTY_VALUES
-
-
Method Detail
-
getNewTableSchema
@Deprecated public static java.lang.String getNewTableSchema(JDBCConfiguration conf)
Deprecated.Return the schema name that should be used for new tables, or null if none.
-
getNewTableSchemaIdentifier
public static DBIdentifier getNewTableSchemaIdentifier(JDBCConfiguration conf)
-
getJDBCName
public static java.lang.String getJDBCName(int type)
Return the SQL type name for the givenTypes
constant.
-
getJDBCType
public static int getJDBCType(java.lang.String name)
Return theTypes
constant for the given SQL type name.
-
getJavaType
public static java.lang.Class<?> getJavaType(int type, int size, int decimals)
Return the java type for the given SQL type fromTypes
.
-
-