Namespace: OpenEdge.DataAdmin.Core
Class
JSONLoader
Parent classes:
Inherits: OpenEdge.DataAdmin.Core.DataAdminWriter

/* Copyright (c) 2011 by progress Software Corporation.
/*
/* all rights reserved. no part of this program or document
/* may be reproduced in any form or by any means without
/* permission in writing from progress Software Corporation.
File:JSONLoader
Author(s):hdaniels
Created:Mon Aug 16 20:18:09 EDT 2010
Notes:The loader updates existing collections and is different from a
reader that would create new (detached) object instances.
The loader also creates objects, but it adds them to an existing
(attached) collection.
- Part of the reason for using this also for create is that
we want to support parent-child import from JSON that has
foreign key hidden. dataset:read-json cannot infer the relationship
into a new dataset in this case, so we need to call the collections
which will load the json into an existing context.




Method Summary
Options Name Purpose
CheckReadAndDelete (IDataAdminSerializable, handle)
OpenEdge.DataAdmin.Binding.IContextTree CreateContextTree ()
Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
HANDLE GetReadHandle (IDataAdminSerializable, character)
OpenEdge.DataAdmin.Binding.IContextTree Load (IDataAdminSerializable, character)
Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
LoadFromFile (IDataAdminSerializable, character, character)
LoadFromFile (IDataAdminSerializable, character, character, character)
LoadFromLongchar (IDataAdminSerializable, longchar, character)
LONGCHAR LoadFromLongchar (IDataAdminSerializable, longchar, character, character)
LoadFromMemptr (IDataAdminSerializable, memptr, character)
LoadFromMemptr (IDataAdminSerializable, memptr, character, character)
LoadFromStream (IDataAdminSerializable, handle, character)
LoadFromStream (IDataAdminSerializable, handle, character, character)
showDS (handle)
CHARACTER ToString ()
Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
TrackChanges (handle, logical)
OpenEdge.DataAdmin.Binding.IContextTree Write (IDataAdminSerializable, character)
Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter

Constructor Summary
Options Name Purpose
JSONLoader ()


Method Detail
Top

PRIVATE CheckReadAndDelete (IDataAdminSerializable, handle)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
hds HANDLE
Top

PROTECTED OpenEdge.DataAdmin.Binding.IContextTree CreateContextTree ()

Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
Returns OpenEdge.DataAdmin.Binding.IContextTree
Top

PROTECTED HANDLE GetReadHandle (IDataAdminSerializable, character)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
pccollection CHARACTER
Returns HANDLE
Top

PROTECTED OpenEdge.DataAdmin.Binding.IContextTree Load (IDataAdminSerializable, character)

Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
pcMode CHARACTER
Returns OpenEdge.DataAdmin.Binding.IContextTree
Top

PUBLIC LoadFromFile (IDataAdminSerializable, character, character)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
pcFile CHARACTER
pcMode CHARACTER
Top

PUBLIC LoadFromFile (IDataAdminSerializable, character, character, character)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
pcFile CHARACTER
pcMode CHARACTER
pccollection CHARACTER
Top

PUBLIC LoadFromLongchar (IDataAdminSerializable, longchar, character)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
pLong LONGCHAR
pcMode CHARACTER
Top

PUBLIC LONGCHAR LoadFromLongchar (IDataAdminSerializable, longchar, character, character)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
pcl LONGCHAR
pcmode CHARACTER
pccollection CHARACTER
Returns LONGCHAR
Top

PUBLIC LoadFromMemptr (IDataAdminSerializable, memptr, character)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
m MEMPTR
pcMode CHARACTER
Top

PUBLIC LoadFromMemptr (IDataAdminSerializable, memptr, character, character)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
m MEMPTR
pcMode CHARACTER
pccollection CHARACTER
Top

PUBLIC LoadFromStream (IDataAdminSerializable, handle, character)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
phStream HANDLE
pcMode CHARACTER
Top

PUBLIC LoadFromStream (IDataAdminSerializable, handle, character, character)

Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
phStream HANDLE
pcMode CHARACTER
pccollection CHARACTER
Top

PRIVATE showDS (handle)

Parameters:
hds HANDLE
Top

PUBLIC CHARACTER ToString ()

Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
Returns CHARACTER
Top

PRIVATE TrackChanges (handle, logical)

Parameters:
hds HANDLE
pl LOGICAL
Top

PROTECTED OpenEdge.DataAdmin.Binding.IContextTree Write (IDataAdminSerializable, character)

Inherited from OpenEdge.DataAdmin.Core.DataAdminWriter
Parameters:
serializable OpenEdge.DataAdmin.IDataAdminSerializable
pcMode CHARACTER
Returns OpenEdge.DataAdmin.Binding.IContextTree


Constructor Detail
Top

PUBLIC JSONLoader ()



Copyright © 2020 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 12.2.0