public static final class SqlNameMapping.MappingEntry extends Object
Represents a database table/column-name/column-type triplet.
| Modifier and Type | Method and Description |
|---|---|
static SqlNameMapping.MappingEntry |
createBigintEntry(String tableName,
String columnName)
Creates an entry representing a "BIGINT" column.
|
static SqlNameMapping.MappingEntry |
createDoubleEntry(String tableName,
String columnName)
Creates an entry representing a "DOUBLE" column.
|
static SqlNameMapping.MappingEntry |
createEntry(String tableName,
String columnName,
String columnType)
Creates an entry representing the given column.
|
static SqlNameMapping.MappingEntry |
createIntegerEntry(String tableName,
String columnName)
Creates an entry representing a "INTEGER" column.
|
static SqlNameMapping.MappingEntry |
createVarcharEntry(String tableName,
String columnName)
Creates an entry representing a "VARCHAR" column.
|
String |
getColumnName()
Returns the database column name.
|
String |
getColumnType()
Returns the database column type.
|
String |
getTableName()
Returns the database table name.
|
public static SqlNameMapping.MappingEntry createVarcharEntry(String tableName, String columnName)
Creates an entry representing a "VARCHAR" column.
tableName - the name of the database tablecolumnName - the name of the database columnpublic static SqlNameMapping.MappingEntry createIntegerEntry(String tableName, String columnName)
Creates an entry representing a "INTEGER" column.
tableName - the name of the database tablecolumnName - the name of the database columnpublic static SqlNameMapping.MappingEntry createBigintEntry(String tableName, String columnName)
Creates an entry representing a "BIGINT" column.
tableName - the name of the database tablecolumnName - the name of the database columnpublic static SqlNameMapping.MappingEntry createDoubleEntry(String tableName, String columnName)
Creates an entry representing a "DOUBLE" column.
tableName - the name of the database tablecolumnName - the name of the database columnpublic static SqlNameMapping.MappingEntry createEntry(String tableName, String columnName, String columnType)
Creates an entry representing the given column.
tableName - the name of the database tablecolumnName - the name of the database columncolumnType - the type of the database columnpublic String getTableName()
Returns the database table name.
public String getColumnName()
Returns the database column name.
public String getColumnType()
Returns the database column type.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.