Package org.teiid.jboss
Class ObjectSerializer
- java.lang.Object
-
- org.teiid.jboss.ObjectSerializer
-
public class ObjectSerializer extends Object
-
-
Constructor Summary
Constructors Constructor Description ObjectSerializer(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
buildModelFile(VDBMetaData vdb, String modelName)
File
buildVDBFile(VDBMetaData vdb)
File
buildVdbXml(VDBMetaData vdb)
OutputStream
getVdbXmlOutputStream(VDBMetaData vdb)
boolean
isStale(VDBMetaData vdb, long timeAfter)
<T> T
loadAttachment(File attachmentsStore, Class<T> expected)
<T> T
loadSafe(File cacheFile, Class<T> clazz)
void
removeAttachment(File file)
void
removeAttachments(VDBMetaData vdb)
boolean
saveAttachment(File attachmentsStore, Object attachment, boolean force)
-
-
-
Constructor Detail
-
ObjectSerializer
public ObjectSerializer(String path)
-
-
Method Detail
-
loadAttachment
public <T> T loadAttachment(File attachmentsStore, Class<T> expected) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
saveAttachment
public boolean saveAttachment(File attachmentsStore, Object attachment, boolean force) throws IOException
- Throws:
IOException
-
buildVDBFile
public File buildVDBFile(VDBMetaData vdb)
-
buildVdbXml
public File buildVdbXml(VDBMetaData vdb)
-
buildModelFile
public File buildModelFile(VDBMetaData vdb, String modelName)
-
isStale
public boolean isStale(VDBMetaData vdb, long timeAfter)
-
removeAttachments
public void removeAttachments(VDBMetaData vdb)
-
removeAttachment
public void removeAttachment(File file)
-
getVdbXmlOutputStream
public OutputStream getVdbXmlOutputStream(VDBMetaData vdb) throws IOException
- Throws:
IOException
-
-