1// Signature format: 4.0 2package androidx.room.migration.bundle { 3 4 @RestrictTo({androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX}) public final class BundleUtil { 5 method public static String replaceTableName(String contents, String tableName); 6 method public static String replaceViewName(String contents, String viewName); 7 field public static final String TABLE_NAME_PLACEHOLDER = "${TABLE_NAME}"; 8 field public static final String VIEW_NAME_PLACEHOLDER = "${VIEW_NAME}"; 9 } 10 11 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class DatabaseBundle implements androidx.room.migration.bundle.SchemaEquality<androidx.room.migration.bundle.DatabaseBundle> { 12 ctor @Deprecated public DatabaseBundle(); 13 ctor public DatabaseBundle(int version, String identityHash, java.util.List<? extends androidx.room.migration.bundle.EntityBundle> entities, java.util.List<? extends androidx.room.migration.bundle.DatabaseViewBundle> views, java.util.List<java.lang.String> setupQueries); 14 method public java.util.List<java.lang.String> buildCreateQueries(); 15 method public java.util.List<androidx.room.migration.bundle.EntityBundle> getEntities(); 16 method public java.util.Map<java.lang.String,androidx.room.migration.bundle.EntityBundle> getEntitiesByTableName(); 17 method public String getIdentityHash(); 18 method public int getVersion(); 19 method public java.util.List<androidx.room.migration.bundle.DatabaseViewBundle> getViews(); 20 method public final java.util.Map<java.lang.String,androidx.room.migration.bundle.DatabaseViewBundle> getViewsByName(); 21 method public boolean isSchemaEqual(androidx.room.migration.bundle.DatabaseBundle other); 22 property public java.util.List<androidx.room.migration.bundle.EntityBundle> entities; 23 property public java.util.Map<java.lang.String,androidx.room.migration.bundle.EntityBundle> entitiesByTableName; 24 property public String identityHash; 25 property public int version; 26 property public java.util.List<androidx.room.migration.bundle.DatabaseViewBundle> views; 27 property public final java.util.Map<java.lang.String,androidx.room.migration.bundle.DatabaseViewBundle> viewsByName; 28 } 29 30 public static final class DatabaseBundle.FtsEntityCreateComparator implements java.util.Comparator<androidx.room.migration.bundle.EntityBundle> { 31 ctor public DatabaseBundle.FtsEntityCreateComparator(); 32 method public int compare(androidx.room.migration.bundle.EntityBundle firstEntity, androidx.room.migration.bundle.EntityBundle secondEntity); 33 } 34 35 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class DatabaseViewBundle implements androidx.room.migration.bundle.SchemaEquality<androidx.room.migration.bundle.DatabaseViewBundle> { 36 ctor public DatabaseViewBundle(@com.google.gson.annotations.SerializedName("viewName") String viewName, @com.google.gson.annotations.SerializedName("createSql") String createSql); 37 method public String createView(); 38 method public String getCreateSql(); 39 method public String getViewName(); 40 method public boolean isSchemaEqual(androidx.room.migration.bundle.DatabaseViewBundle other); 41 property public String createSql; 42 property public String viewName; 43 } 44 45 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class EntityBundle implements androidx.room.migration.bundle.SchemaEquality<androidx.room.migration.bundle.EntityBundle> { 46 ctor public EntityBundle(@com.google.gson.annotations.SerializedName("tableName") String tableName, @com.google.gson.annotations.SerializedName("createSql") String createSql, @com.google.gson.annotations.SerializedName("fields") java.util.List<? extends androidx.room.migration.bundle.FieldBundle> fields, @com.google.gson.annotations.SerializedName("primaryKey") androidx.room.migration.bundle.PrimaryKeyBundle primaryKey, @com.google.gson.annotations.SerializedName("indices") java.util.List<? extends androidx.room.migration.bundle.IndexBundle> indices, @com.google.gson.annotations.SerializedName("foreignKeys") java.util.List<? extends androidx.room.migration.bundle.ForeignKeyBundle> foreignKeys); 47 method public java.util.Collection<java.lang.String> buildCreateQueries(); 48 method public String createNewTable(); 49 method public String createTable(); 50 method public String getCreateSql(); 51 method public java.util.List<androidx.room.migration.bundle.FieldBundle> getFields(); 52 method public java.util.Map<java.lang.String,androidx.room.migration.bundle.FieldBundle> getFieldsByColumnName(); 53 method public java.util.List<androidx.room.migration.bundle.ForeignKeyBundle> getForeignKeys(); 54 method public java.util.List<androidx.room.migration.bundle.IndexBundle> getIndices(); 55 method public String getNewTableName(); 56 method public androidx.room.migration.bundle.PrimaryKeyBundle getPrimaryKey(); 57 method public String getTableName(); 58 method public boolean isSchemaEqual(androidx.room.migration.bundle.EntityBundle other); 59 method public String renameToOriginal(); 60 property public String createSql; 61 property public java.util.List<androidx.room.migration.bundle.FieldBundle> fields; 62 property public java.util.Map<java.lang.String,androidx.room.migration.bundle.FieldBundle> fieldsByColumnName; 63 property public java.util.List<androidx.room.migration.bundle.ForeignKeyBundle> foreignKeys; 64 property public java.util.List<androidx.room.migration.bundle.IndexBundle> indices; 65 property public String newTableName; 66 property public androidx.room.migration.bundle.PrimaryKeyBundle primaryKey; 67 property public String tableName; 68 field public static final androidx.room.migration.bundle.EntityBundle.Companion Companion; 69 field public static final String NEW_TABLE_PREFIX = "_new_"; 70 } 71 72 public static final class EntityBundle.Companion { 73 } 74 75 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class FieldBundle implements androidx.room.migration.bundle.SchemaEquality<androidx.room.migration.bundle.FieldBundle> { 76 ctor @Deprecated public FieldBundle(String fieldPath, String columnName, String affinity, boolean nonNull); 77 ctor public FieldBundle(@com.google.gson.annotations.SerializedName("fieldPath") String fieldPath, @com.google.gson.annotations.SerializedName("columnName") String columnName, @com.google.gson.annotations.SerializedName("affinity") String affinity, @com.google.gson.annotations.SerializedName("notNull") boolean isNonNull, @com.google.gson.annotations.SerializedName("defaultValue") String? defaultValue); 78 method public String getAffinity(); 79 method public String getColumnName(); 80 method public String? getDefaultValue(); 81 method public String getFieldPath(); 82 method public boolean isNonNull(); 83 method public boolean isSchemaEqual(androidx.room.migration.bundle.FieldBundle other); 84 property public String affinity; 85 property public String columnName; 86 property public String? defaultValue; 87 property public String fieldPath; 88 property public boolean isNonNull; 89 } 90 91 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class ForeignKeyBundle implements androidx.room.migration.bundle.SchemaEquality<androidx.room.migration.bundle.ForeignKeyBundle> { 92 ctor public ForeignKeyBundle(String table, String onDelete, String onUpdate, java.util.List<java.lang.String> columns, java.util.List<java.lang.String> referencedColumns); 93 method public java.util.List<java.lang.String> getColumns(); 94 method public String getOnDelete(); 95 method public String getOnUpdate(); 96 method public java.util.List<java.lang.String> getReferencedColumns(); 97 method public String getTable(); 98 method public boolean isSchemaEqual(androidx.room.migration.bundle.ForeignKeyBundle other); 99 property public java.util.List<java.lang.String> columns; 100 property public String onDelete; 101 property public String onUpdate; 102 property public java.util.List<java.lang.String> referencedColumns; 103 property public String table; 104 } 105 106 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class FtsEntityBundle extends androidx.room.migration.bundle.EntityBundle { 107 ctor public FtsEntityBundle(String tableName, String createSql, java.util.List<? extends androidx.room.migration.bundle.FieldBundle> fields, androidx.room.migration.bundle.PrimaryKeyBundle primaryKey, String ftsVersion, androidx.room.migration.bundle.FtsOptionsBundle ftsOptions, @com.google.gson.annotations.SerializedName("contentSyncTriggers") java.util.List<java.lang.String> contentSyncSqlTriggers); 108 method public java.util.List<java.lang.String> getContentSyncSqlTriggers(); 109 method public androidx.room.migration.bundle.FtsOptionsBundle getFtsOptions(); 110 method public String getFtsVersion(); 111 method public java.util.List<java.lang.String> getShadowTableNames(); 112 property public java.util.List<java.lang.String> contentSyncSqlTriggers; 113 property public androidx.room.migration.bundle.FtsOptionsBundle ftsOptions; 114 property public String ftsVersion; 115 property public java.util.List<java.lang.String> shadowTableNames; 116 } 117 118 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class FtsOptionsBundle implements androidx.room.migration.bundle.SchemaEquality<androidx.room.migration.bundle.FtsOptionsBundle> { 119 ctor public FtsOptionsBundle(@com.google.gson.annotations.SerializedName("tokenizer") String tokenizer, @com.google.gson.annotations.SerializedName("tokenizerArgs") java.util.List<java.lang.String> tokenizerArgs, @com.google.gson.annotations.SerializedName("contentTable") String contentTable, @com.google.gson.annotations.SerializedName("languageIdColumnName") String languageIdColumnName, @com.google.gson.annotations.SerializedName("matchInfo") String matchInfo, @com.google.gson.annotations.SerializedName("notIndexedColumns") java.util.List<java.lang.String> notIndexedColumns, @com.google.gson.annotations.SerializedName("prefixSizes") java.util.List<java.lang.Integer> prefixSizes, @com.google.gson.annotations.SerializedName("preferredOrder") String preferredOrder); 120 method public String getContentTable(); 121 method public String getLanguageIdColumnName(); 122 method public String getMatchInfo(); 123 method public java.util.List<java.lang.String> getNotIndexedColumns(); 124 method public String getPreferredOrder(); 125 method public java.util.List<java.lang.Integer> getPrefixSizes(); 126 method public java.util.List<java.lang.String> getTokenizerArgs(); 127 method public boolean isSchemaEqual(androidx.room.migration.bundle.FtsOptionsBundle other); 128 property public String contentTable; 129 property public String languageIdColumnName; 130 property public String matchInfo; 131 property public java.util.List<java.lang.String> notIndexedColumns; 132 property public String preferredOrder; 133 property public java.util.List<java.lang.Integer> prefixSizes; 134 property public java.util.List<java.lang.String> tokenizerArgs; 135 } 136 137 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class IndexBundle implements androidx.room.migration.bundle.SchemaEquality<androidx.room.migration.bundle.IndexBundle> { 138 ctor @Deprecated public IndexBundle(String name, boolean unique, java.util.List<java.lang.String> columnNames, String createSql); 139 ctor public IndexBundle(@com.google.gson.annotations.SerializedName("name") String name, @com.google.gson.annotations.SerializedName("unique") boolean isUnique, @com.google.gson.annotations.SerializedName("columnNames") java.util.List<java.lang.String>? columnNames, @com.google.gson.annotations.SerializedName("orders") java.util.List<java.lang.String>? orders, @com.google.gson.annotations.SerializedName("createSql") String createSql); 140 method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public String create(String tableName); 141 method public java.util.List<java.lang.String>? getColumnNames(); 142 method public String getCreateSql(); 143 method public String getCreateSql(String tableName); 144 method public String getName(); 145 method public java.util.List<java.lang.String>? getOrders(); 146 method public boolean isSchemaEqual(androidx.room.migration.bundle.IndexBundle other); 147 method public boolean isUnique(); 148 property public java.util.List<java.lang.String>? columnNames; 149 property public String createSql; 150 property public boolean isUnique; 151 property public String name; 152 property public java.util.List<java.lang.String>? orders; 153 field public static final androidx.room.migration.bundle.IndexBundle.Companion Companion; 154 field public static final String DEFAULT_PREFIX = "index_"; 155 } 156 157 public static final class IndexBundle.Companion { 158 } 159 160 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class PrimaryKeyBundle implements androidx.room.migration.bundle.SchemaEquality<androidx.room.migration.bundle.PrimaryKeyBundle> { 161 ctor public PrimaryKeyBundle(@com.google.gson.annotations.SerializedName("autoGenerate") boolean isAutoGenerate, @com.google.gson.annotations.SerializedName("columnNames") java.util.List<java.lang.String> columnNames); 162 method public java.util.List<java.lang.String> getColumnNames(); 163 method public boolean isAutoGenerate(); 164 method public boolean isSchemaEqual(androidx.room.migration.bundle.PrimaryKeyBundle other); 165 property public java.util.List<java.lang.String> columnNames; 166 property public boolean isAutoGenerate; 167 } 168 169 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public class SchemaBundle implements androidx.room.migration.bundle.SchemaEquality<androidx.room.migration.bundle.SchemaBundle> { 170 ctor public SchemaBundle(@com.google.gson.annotations.SerializedName("formatVersion") int formatVersion, @com.google.gson.annotations.SerializedName("database") androidx.room.migration.bundle.DatabaseBundle database); 171 method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) @kotlin.jvm.Throws(exceptionClasses=UnsupportedEncodingException::class) public static final androidx.room.migration.bundle.SchemaBundle deserialize(java.io.InputStream fis) throws java.io.UnsupportedEncodingException; 172 method public androidx.room.migration.bundle.DatabaseBundle getDatabase(); 173 method public int getFormatVersion(); 174 method public boolean isSchemaEqual(androidx.room.migration.bundle.SchemaBundle other); 175 method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) @kotlin.jvm.Throws(exceptionClasses=IOException::class) public static final void serialize(androidx.room.migration.bundle.SchemaBundle bundle, java.io.File file) throws java.io.IOException; 176 property public androidx.room.migration.bundle.DatabaseBundle database; 177 property public int formatVersion; 178 field public static final androidx.room.migration.bundle.SchemaBundle.Companion Companion; 179 field public static final int LATEST_FORMAT = 1; // 0x1 180 } 181 182 public static final class SchemaBundle.Companion { 183 method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) @kotlin.jvm.Throws(exceptionClasses=UnsupportedEncodingException::class) public androidx.room.migration.bundle.SchemaBundle deserialize(java.io.InputStream fis) throws java.io.UnsupportedEncodingException; 184 method @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) @kotlin.jvm.Throws(exceptionClasses=IOException::class) public void serialize(androidx.room.migration.bundle.SchemaBundle bundle, java.io.File file) throws java.io.IOException; 185 } 186 187 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP_PREFIX) public interface SchemaEquality<T> { 188 method public boolean isSchemaEqual(T? other); 189 } 190 191} 192 193