org.objectweb.jorm.mapper.rdb.adapter.api
Interface IndexAdapter
- All Known Subinterfaces:
- RdbAdapter, RdbAdapter
- All Known Implementing Classes:
- BasicRdbAdapter
- public interface IndexAdapter
Adapter for index management.
- Author:
- Y.Bersihand
Method Summary |
java.lang.String |
getCreateIndex(java.lang.String name,
java.lang.String tableName,
java.util.List fieldNames,
boolean unique)
|
java.lang.String |
getDropIndex(java.lang.String name,
java.lang.String tableName)
|
getDropIndex
public java.lang.String getDropIndex(java.lang.String name,
java.lang.String tableName)
throws java.lang.UnsupportedOperationException
- Parameters:
name
- the name of the indextableName
- the name of the table
- Returns:
- the sql statement to drop the index
- Throws:
java.lang.UnsupportedOperationException
getCreateIndex
public java.lang.String getCreateIndex(java.lang.String name,
java.lang.String tableName,
java.util.List fieldNames,
boolean unique)
throws java.lang.UnsupportedOperationException
- Parameters:
name
- the name of the indextableName
- the name of the tablefieldNames
- names of fields
- Returns:
- the sql statement to create the index
- Throws:
java.lang.UnsupportedOperationException