本文整理汇总了C#中Db4objects.Db4o.Internal.ClassMetadata.GetName方法的典型用法代码示例。如果您正苦于以下问题:C# ClassMetadata.GetName方法的具体用法?C# ClassMetadata.GetName怎么用?C# ClassMetadata.GetName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Db4objects.Db4o.Internal.ClassMetadata
的用法示例。
在下文中一共展示了ClassMetadata.GetName方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SkipClass
public virtual bool SkipClass(ClassMetadata classMetadata)
{
if (classMetadata.GetName() == null)
{
return true;
}
IReflectClass claxx = classMetadata.ClassReflector();
if (Stream()._handlers.IclassInternal.IsAssignableFrom(claxx))
{
return true;
}
return false;
}
示例2: CheckClassHasFields
public virtual void CheckClassHasFields(ClassMetadata classMetadata)
{
if (classMetadata.AspectsAreNull() || classMetadata.DeclaredAspectCount() == 0)
{
string name = classMetadata.GetName();
string[] ignoredPackages = new string[] { "java.util." };
for (int i = 0; i < ignoredPackages.Length; i++)
{
if (name.IndexOf(ignoredPackages[i]) == 0)
{
return;
}
}
if (IsDb4oClass(classMetadata))
{
return;
}
OnDiagnostic(new ClassHasNoFields(name));
}
}
示例3: DescendIntoTranslator
public virtual void DescendIntoTranslator(ClassMetadata parent, string fieldName)
{
OnDiagnostic(new Db4objects.Db4o.Diagnostic.DescendIntoTranslator(parent.GetName(
), fieldName));
}
示例4: LoadedFromClassIndex
public virtual void LoadedFromClassIndex(ClassMetadata classMetadata)
{
if (IsDb4oClass(classMetadata))
{
return;
}
OnDiagnostic(new Db4objects.Db4o.Diagnostic.LoadedFromClassIndex(classMetadata.GetName
()));
}
示例5: ClassMetadataNameResolved
public void ClassMetadataNameResolved(ClassMetadata classMetadata, byte[] nameBytes
)
{
_classMetadataByBytes.Remove(nameBytes);
_classMetadataByName.Put(classMetadata.GetName(), classMetadata);
}
示例6: ClassSlotUsage
private FileUsageStatsCollector.InstanceUsage ClassSlotUsage(ClassMetadata clazz)
{
if (!clazz.HasClassIndex())
{
return new FileUsageStatsCollector.InstanceUsage(0, 0);
}
IMiscCollector miscCollector = ((IMiscCollector)MiscCollectors[clazz.GetName()]);
LongByRef slotUsage = new LongByRef();
LongByRef miscUsage = new LongByRef();
BTreeClassIndexStrategy index = (BTreeClassIndexStrategy)clazz.Index();
index.TraverseAll(_db.SystemTransaction(), new _IVisitor4_166(this, slotUsage, miscCollector
, miscUsage));
return new FileUsageStatsCollector.InstanceUsage(slotUsage.value, miscUsage.value
);
}