2018-09-05 15:52:38 -06:00
|
|
|
#
|
|
|
|
# Adapter for com.raytheon.uf.common.dataplugin.gfe.db.objects.DatabaseID
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# SOFTWARE HISTORY
|
|
|
|
#
|
|
|
|
# Date Ticket# Engineer Description
|
|
|
|
# ------------ ---------- ----------- --------------------------
|
|
|
|
# 03/29/11 dgilling Initial Creation.
|
|
|
|
#
|
|
|
|
|
|
|
|
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import DatabaseID
|
|
|
|
|
|
|
|
ClassAdapter = 'com.raytheon.uf.common.dataplugin.gfe.db.objects.DatabaseID'
|
|
|
|
|
2018-10-14 17:37:08 -06:00
|
|
|
|
2018-09-05 15:52:38 -06:00
|
|
|
def serialize(context, dbId):
|
|
|
|
context.writeString(str(dbId))
|
|
|
|
|
2018-10-14 17:37:08 -06:00
|
|
|
|
2018-09-05 15:52:38 -06:00
|
|
|
def deserialize(context):
|
|
|
|
result = DatabaseID(context.readString())
|
2018-09-06 12:11:36 -06:00
|
|
|
return result
|