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)
HANDLE GetReadHandle (IDataAdminSerializable, character)
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)
TrackChanges (handle, logical)

Constructor Summary
Options Name Purpose
JSONLoader ()


Method Detail
Top

CheckReadAndDelete (IDataAdminSerializable, handle)

Parameters:
serializable IDataAdminSerializable
hds HANDLE
Top

HANDLE GetReadHandle (IDataAdminSerializable, character)

Parameters:
serializable IDataAdminSerializable
pccollection CHARACTER
Returns HANDLE
Top

LoadFromFile (IDataAdminSerializable, character, character)

Parameters:
serializable IDataAdminSerializable
pcFile CHARACTER
pcMode CHARACTER
Top

LoadFromFile (IDataAdminSerializable, character, character, character)

Parameters:
serializable IDataAdminSerializable
pcFile CHARACTER
pcMode CHARACTER
pccollection CHARACTER
Top

LoadFromLongchar (IDataAdminSerializable, longchar, character)

Parameters:
serializable IDataAdminSerializable
pLong LONGCHAR
pcMode CHARACTER
Top

LONGCHAR LoadFromLongchar (IDataAdminSerializable, longchar, character, character)

Parameters:
serializable IDataAdminSerializable
pcl LONGCHAR
pcmode CHARACTER
pccollection CHARACTER
Returns LONGCHAR
Top

LoadFromMemptr (IDataAdminSerializable, memptr, character)

Parameters:
serializable IDataAdminSerializable
m MEMPTR
pcMode CHARACTER
Top

LoadFromMemptr (IDataAdminSerializable, memptr, character, character)

Parameters:
serializable IDataAdminSerializable
m MEMPTR
pcMode CHARACTER
pccollection CHARACTER
Top

LoadFromStream (IDataAdminSerializable, handle, character)

Parameters:
serializable IDataAdminSerializable
phStream HANDLE
pcMode CHARACTER
Top

LoadFromStream (IDataAdminSerializable, handle, character, character)

Parameters:
serializable IDataAdminSerializable
phStream HANDLE
pcMode CHARACTER
pccollection CHARACTER
Top

showDS (handle)

Parameters:
hds HANDLE
Top

TrackChanges (handle, logical)

Parameters:
hds HANDLE
pl LOGICAL


Constructor Detail
Top

JSONLoader ()



Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15