Use getIndexes to retrieve and list all indexes for a given MBO table located on the device database.
/** @param entity the EntityMetaData for the table @return the list of indexes */ public static java.util.List<com.sybase.reflection.IndexMetaData> getIndexes(com.sybase.reflection.EntityMetaData entity)
You can call EntityMetaData instance public List<IndexMetaData> getIndice() to return the table's indexes, but the indexes are defined in the deployment unit file and retrieved from generated code, not from the runtime database schema. Do not use this method to list the table's database indexes, instead use DBclass public static List<IndexMetaData> getIndexes(EntityMetaData entity)
java.util.List<IndexMetaData> list = SampleDB.getIndexes(SampleMBO.getMetaData());