|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.dataservice.DatastoreUtilities
Utility methods needed for both runtime and generation.
Field Summary | |
static String |
COMPUTED_COLUMN_NAME_PREFIX
|
private static String |
COMPUTED_COLUMN_NAME_SEPERATOR
|
private static String |
COMPUTED_COLUMN_NAME_UNIQUE
|
static String |
UNIQUE_COMPUTED_COLUMN_NAME_SUFFFIX
|
Constructor Summary | |
DatastoreUtilities()
|
Method Summary | |
static String |
getComputedColumnName(int a_indexOffset,
int a_indexColumnOffset,
boolean a_isUnique)
This method returns the Computed Column Name for SQLServer Function based index support. |
private static List |
getComputedColumns_composite(String[][] a_indexColumns,
boolean a_isUnique,
Properties a_properties,
String a_keyPrefix)
|
private static List |
getComputedColumns_unique(BaseTableInfo a_tableInfo,
Properties a_properties,
String a_keyPrefix)
|
static ColumnDescriptor[] |
getComputedColumns(BaseTableInfo a_tableInfo,
Properties a_properties,
String a_keyPrefix)
This method returns the ColumnDescriptor[] for computed columns required for SqlServer Unique and Function based index support. |
static ColumnDescriptor[] |
getComputedColumns(Class a_class)
|
static List |
getComputedColumns(String[][] a_indexColumns,
boolean a_isUnique,
Properties a_properties,
String a_keyPrefix)
|
static String[][] |
getNonUniqueIndices(BaseTableInfo a_baseTableInfo)
This method returns all the non-unique indexes expression. |
static String |
getUniqueComputedColumnName(BaseTableInfo a_tableInfo,
String columnNameExpression,
boolean a_isUnique)
This method returns the Computed Column Name for SQLServer unique index support. |
static String[][] |
getUniqueIndices(BaseTableInfo a_baseTableInfo)
This method returns all the unique indexes expression. |
static boolean |
isDatastoreIdentifier(String a_string)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String COMPUTED_COLUMN_NAME_PREFIX
private static final String COMPUTED_COLUMN_NAME_SEPERATOR
private static final String COMPUTED_COLUMN_NAME_UNIQUE
public static final String UNIQUE_COMPUTED_COLUMN_NAME_SUFFFIX
Constructor Detail |
public DatastoreUtilities()
Method Detail |
public static String getComputedColumnName(int a_indexOffset, int a_indexColumnOffset, boolean a_isUnique)
public static String getUniqueComputedColumnName(BaseTableInfo a_tableInfo, String columnNameExpression, boolean a_isUnique)
a_tableInfo
- BaseTableInfo
public static ColumnDescriptor[] getComputedColumns(BaseTableInfo a_tableInfo, Properties a_properties, String a_keyPrefix) throws WTException
a_tableInfo
- a BaseTableInfoa_properties
- wt.util.Propertiesa_keyPrefix
- a keyPrefix for pproperties
WTException
private static List getComputedColumns_unique(BaseTableInfo a_tableInfo, Properties a_properties, String a_keyPrefix) throws WTException
WTException
private static List getComputedColumns_composite(String[][] a_indexColumns, boolean a_isUnique, Properties a_properties, String a_keyPrefix)
public static String[][] getNonUniqueIndices(BaseTableInfo a_baseTableInfo) throws WTException
a_baseTableInfo
- a BaseTableInfo
WTException
public static String[][] getUniqueIndices(BaseTableInfo a_baseTableInfo) throws WTException
a_baseTableInfo
- a BaseTableInfo
WTException
public static ColumnDescriptor[] getComputedColumns(Class a_class) throws WTException
WTException
public static List getComputedColumns(String[][] a_indexColumns, boolean a_isUnique, Properties a_properties, String a_keyPrefix)
public static boolean isDatastoreIdentifier(String a_string)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |