63
63
import com .orientechnologies .orient .core .id .ORecordId ;
64
64
import com .orientechnologies .orient .core .index .OClassIndexManager ;
65
65
import com .orientechnologies .orient .core .iterator .ORecordIteratorCluster ;
66
- import com .orientechnologies .orient .core .metadata .OMetadataDefault ;
66
+ import com .orientechnologies .orient .core .metadata .OSessionMetadata ;
67
67
import com .orientechnologies .orient .core .metadata .function .OFunctionLibraryImpl ;
68
68
import com .orientechnologies .orient .core .metadata .schema .OClass ;
69
69
import com .orientechnologies .orient .core .metadata .schema .OImmutableClass ;
70
70
import com .orientechnologies .orient .core .metadata .schema .OImmutableSchema ;
71
- import com .orientechnologies .orient .core .metadata .schema .OSchemaProxy ;
71
+ import com .orientechnologies .orient .core .metadata .schema .OSessionSchema ;
72
72
import com .orientechnologies .orient .core .metadata .schema .OView ;
73
73
import com .orientechnologies .orient .core .metadata .security .OImmutableUser ;
74
74
import com .orientechnologies .orient .core .metadata .security .OPropertyAccess ;
83
83
import com .orientechnologies .orient .core .metadata .security .OUser ;
84
84
import com .orientechnologies .orient .core .metadata .security .auth .OAuthenticationInfo ;
85
85
import com .orientechnologies .orient .core .metadata .sequence .OSequenceAction ;
86
- import com .orientechnologies .orient .core .metadata .sequence .OSequenceLibraryProxy ;
86
+ import com .orientechnologies .orient .core .metadata .sequence .OSessionSequenceLibrary ;
87
87
import com .orientechnologies .orient .core .query .live .OLiveQueryHook ;
88
88
import com .orientechnologies .orient .core .query .live .OLiveQueryHookV2 ;
89
89
import com .orientechnologies .orient .core .query .live .OLiveQueryListenerV2 ;
@@ -305,7 +305,7 @@ public void internalCreate(OrientDBConfig config, OSharedContext ctx) {
305
305
// THIS IF SHOULDN'T BE NEEDED, CREATE HAPPEN ONLY IN EMBEDDED
306
306
applyAttributes (config );
307
307
applyListeners (config );
308
- metadata = new OMetadataDefault (this );
308
+ metadata = new OSessionMetadata (this );
309
309
installHooksEmbedded ();
310
310
createMetadata (ctx );
311
311
}
@@ -330,7 +330,7 @@ protected void createMetadata(OSharedContext shared) {
330
330
331
331
@ Override
332
332
protected void loadMetadata () {
333
- metadata = new OMetadataDefault (this );
333
+ metadata = new OSessionMetadata (this );
334
334
metadata .init (sharedContext );
335
335
sharedContext .load (this );
336
336
}
@@ -1167,7 +1167,7 @@ public void afterCreateOperations(final OIdentifiable id) {
1167
1167
sharedContext .getSecurity ().incrementVersion (this );
1168
1168
}
1169
1169
if (clazz .isSequence ()) {
1170
- ((OSequenceLibraryProxy ) getMetadata ().getSequenceLibrary ())
1170
+ ((OSessionSequenceLibrary ) getMetadata ().getSequenceLibrary ())
1171
1171
.getDelegate ()
1172
1172
.onSequenceCreated (this , doc );
1173
1173
}
@@ -1198,7 +1198,7 @@ public void afterUpdateOperations(final OIdentifiable id) {
1198
1198
sharedContext .getSecurity ().incrementVersion (this );
1199
1199
}
1200
1200
if (clazz .isSequence ()) {
1201
- ((OSequenceLibraryProxy ) getMetadata ().getSequenceLibrary ())
1201
+ ((OSessionSequenceLibrary ) getMetadata ().getSequenceLibrary ())
1202
1202
.getDelegate ()
1203
1203
.onSequenceUpdated (this , doc );
1204
1204
}
@@ -1224,7 +1224,7 @@ public void afterDeleteOperations(final OIdentifiable id) {
1224
1224
this .getSharedContext ().getFunctionLibrary ().droppedFunction (doc );
1225
1225
}
1226
1226
if (clazz .isSequence ()) {
1227
- ((OSequenceLibraryProxy ) getMetadata ().getSequenceLibrary ())
1227
+ ((OSessionSequenceLibrary ) getMetadata ().getSequenceLibrary ())
1228
1228
.getDelegate ()
1229
1229
.onSequenceDropped (this , doc );
1230
1230
}
@@ -1691,7 +1691,7 @@ public long countClusterElements(final String iClusterName) {
1691
1691
public boolean dropCluster (final String iClusterName ) {
1692
1692
checkIfActive ();
1693
1693
final int clusterId = getClusterIdByName (iClusterName );
1694
- OSchemaProxy schema = metadata .getSchema ();
1694
+ OSessionSchema schema = metadata .getSchema ();
1695
1695
OClass clazz = schema .getClassByClusterId (clusterId );
1696
1696
if (clazz != null ) clazz .removeClusterId (clusterId );
1697
1697
if (schema .getBlobClusters ().contains (clusterId )) schema .removeBlobCluster (iClusterName );
@@ -1711,7 +1711,7 @@ public boolean dropCluster(final int clusterId) {
1711
1711
checkSecurity (
1712
1712
ORule .ResourceGeneric .CLUSTER , ORole .PERMISSION_DELETE , getClusterNameById (clusterId ));
1713
1713
1714
- OSchemaProxy schema = metadata .getSchema ();
1714
+ OSessionSchema schema = metadata .getSchema ();
1715
1715
final OClass clazz = schema .getClassByClusterId (clusterId );
1716
1716
if (clazz != null ) clazz .removeClusterId (clusterId );
1717
1717
getLocalCache ().freeCluster (clusterId );
0 commit comments