本文整理汇总了C#中NeoDatis.IsMapObject方法的典型用法代码示例。如果您正苦于以下问题:C# NeoDatis.IsMapObject方法的具体用法?C# NeoDatis.IsMapObject怎么用?C# NeoDatis.IsMapObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NeoDatis
的用法示例。
在下文中一共展示了NeoDatis.IsMapObject方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WriteNativeObjectInfo
/// <summary>Actually write the object data to the database file</summary>
/// <param name="oidOfObjectToQuery">The object id, can be -1 (not set)</param>
/// <param name="aoi">The object meta infor The object info to be written</param>
/// <param name="position">if -1, it is a new instance, if not, it is an update</param>
/// <param name="updatePointers"></param>
/// <returns>The object posiiton or id(if <0)</returns>
/// <exception cref="System.Exception">System.Exception</exception>
/// <>
/// * public OID writeObjectInfo(OID oid, AbstractObjectInfo
/// aoi, long position, boolean updatePointers) throws Exception
/// { currentDepth++;
/// try {
/// if (aoi.isNative()) { return
/// writeNativeObjectInfo((NativeObjectInfo) aoi, position,
/// updatePointers, false); }
/// return writeNonNativeObjectInfo(oid, aoi, position,
/// updatePointers, false); } finally { currentDepth--; } }
/// </>
private long WriteNativeObjectInfo(NeoDatis.Odb.Core.Layers.Layer2.Meta.NativeObjectInfo
noi, long position, bool updatePointers, bool writeInTransaction)
{
if (NeoDatis.Odb.OdbConfiguration.IsDebugEnabled(LogIdDebug))
{
NeoDatis.Tool.DLogger.Debug(DepthToSpaces() + "Writing native object at " + position
+ " : Type=" + NeoDatis.Odb.Core.Layers.Layer2.Meta.ODBType.GetNameFromId(noi.GetOdbTypeId
()) + " | Value=" + noi.ToString());
}
if (noi.IsAtomicNativeObject())
{
return WriteAtomicNativeObject((NeoDatis.Odb.Core.Layers.Layer2.Meta.AtomicNativeObjectInfo
)noi, writeInTransaction);
}
if (noi.IsNull())
{
WriteNullNativeObjectHeader(noi.GetOdbTypeId(), writeInTransaction);
return position;
}
if (noi.IsCollectionObject())
{
return WriteCollection((NeoDatis.Odb.Core.Layers.Layer2.Meta.CollectionObjectInfo
)noi, writeInTransaction);
}
if (noi.IsMapObject())
{
return WriteMap((NeoDatis.Odb.Core.Layers.Layer2.Meta.MapObjectInfo)noi, writeInTransaction
);
}
if (noi.IsArrayObject())
{
return WriteArray((NeoDatis.Odb.Core.Layers.Layer2.Meta.ArrayObjectInfo)noi, writeInTransaction
);
}
if (noi.IsEnumObject())
{
return WriteEnumNativeObject((NeoDatis.Odb.Core.Layers.Layer2.Meta.EnumNativeObjectInfo
)noi, writeInTransaction);
}
throw new NeoDatis.Odb.ODBRuntimeException(NeoDatis.Odb.Core.NeoDatisError.NativeTypeNotSupported
.AddParameter(noi.GetOdbTypeId()));
}