public final class CelestaSerializer extends Object
The class name reflects its counterpart - CelestaParser
Constructor and Description |
---|
CelestaSerializer(PrintWriter writer) |
Modifier and Type | Method and Description |
---|---|
void |
save(Grain grain)
Serializes grain to its CelestaSQL representation.
|
void |
save(GrainPart gp)
Serializes grain part to its CelestaSQL representation.
|
static String |
toQueryString(View v)
Returns a query based on which the view is going to be created.
|
public CelestaSerializer(PrintWriter writer)
public static String toQueryString(View v) throws IOException
v
- viewIOException
- if query creation failspublic void save(GrainPart gp) throws IOException
gp
- grain partIOException
- if serialization failspublic void save(Grain grain) throws IOException
grain
- grainIOException
- if serialization failsCopyright © 2022 CURS. All rights reserved.