wt.transfer.unit
Class TransferUnitMaster

java.lang.Object
  extended bywt.fc.WTObject
      extended bywt.transfer.unit.TransferUnitMaster
All Implemented Interfaces:
DisplayIdentification, Externalizable, Identified, Mastered, NetFactor, ObjectMappable, Persistable, Serializable

public class TransferUnitMaster
extends WTObject
implements Mastered, Identified, Externalizable

Use the newTransferUnitMaster static factory method(s), not the TransferUnitMaster constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private  String file
           
static String FILE
          Label for the attribute.
private static int FILE_UPPER_LIMIT
           
private  String host
           
static String HOST
          Label for the attribute.
private static int HOST_UPPER_LIMIT
           
protected static long OLD_FORMAT_VERSION_UID
           
private  URL origin
           
static String ORIGIN
          Label for the attribute.
private  int port
           
static String PORT
          Label for the attribute.
private  String protocol
           
static String PROTOCOL
          Label for the attribute.
private static int PROTOCOL_UPPER_LIMIT
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
 
Fields inherited from class wt.fc.WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMP
 
Fields inherited from interface wt.vc.Mastered
SERIES
 
Fields inherited from interface wt.fc.Persistable
IDENTITY, PERSIST_INFO, TYPE
 
Fields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE
 
Constructor Summary
TransferUnitMaster()
           
 
Method Summary
private  void fileValidate(String a_File)
           
 String getConceptualClassname()
          Returns the conceptual (modeled) name for the class.
 String getFile()
          Gets the value of the attribute: FILE.
 String getHost()
          Gets the value of the attribute: HOST.
 IdentificationObject getIdentificationObject()
          Constructs and returns an identification object.
 URL getOrigin()
          Gets the value of the attribute: ORIGIN.
 int getPort()
          Gets the value of the attribute: PORT.
 String getProtocol()
          Gets the value of the attribute: PROTOCOL.
private  void hostValidate(String a_Host)
           
static TransferUnitMaster newTransferUnitMaster()
          Default factory for the class.
static TransferUnitMaster newTransferUnitMaster(URL locator)
          

Supported API: false
private  void protocolValidate(String a_Protocol)
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
 void readExternal(PersistentRetrieveIfc input)
          Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(TransferUnitMaster thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
protected  void setFile(String a_File)
          Sets the value of the attribute: FILE.
protected  void setHost(String a_Host)
          Sets the value of the attribute: HOST.
protected  void setOrigin(URL a_Origin)
          Sets the value of the attribute: ORIGIN.
protected  void setPort(int a_Port)
          Sets the value of the attribute: PORT.
protected  void setProtocol(String a_Protocol)
          Sets the value of the attribute: PROTOCOL.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 void writeExternal(PersistentStoreIfc output)
          Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.
 
Methods inherited from class wt.fc.WTObject
checkAttributes, duplicate, equals, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, hashCode, initialize, readVersion, setPersistInfo, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.vc.Mastered
getSeries, setSeries
 
Methods inherited from interface wt.fc.Persistable
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo
 
Methods inherited from interface wt.fc.NetFactor
getClassInfo
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

ORIGIN

public static final String ORIGIN
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

origin

private URL origin

PROTOCOL

public static final String PROTOCOL
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

PROTOCOL_UPPER_LIMIT

private static int PROTOCOL_UPPER_LIMIT

protocol

private String protocol

HOST

public static final String HOST
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

HOST_UPPER_LIMIT

private static int HOST_UPPER_LIMIT

host

private String host

PORT

public static final String PORT
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

port

private int port

FILE

public static final String FILE
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

FILE_UPPER_LIMIT

private static int FILE_UPPER_LIMIT

file

private String file

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values
Constructor Detail

TransferUnitMaster

public TransferUnitMaster()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class WTObject
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class WTObject
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(TransferUnitMaster thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(PersistentStoreIfc output)
                   throws SQLException,
                          DatastoreException
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
writeExternal in interface ObjectMappable
Overrides:
writeExternal in class WTObject
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
readExternal in interface ObjectMappable
Overrides:
readExternal in class WTObject
Parameters:
input -
Throws:
SQLException
DatastoreException

getConceptualClassname

public String getConceptualClassname()
Returns the conceptual (modeled) name for the class.

Supported API: true

Specified by:
getConceptualClassname in interface NetFactor
Returns:
String

getOrigin

public URL getOrigin()
Gets the value of the attribute: ORIGIN.

Supported API: false

Returns:
URL

setOrigin

protected void setOrigin(URL a_Origin)
Sets the value of the attribute: ORIGIN.

Supported API: false

Parameters:
a_Origin -

getProtocol

public String getProtocol()
Gets the value of the attribute: PROTOCOL.

Supported API: false

Returns:
String

setProtocol

protected void setProtocol(String a_Protocol)
                    throws WTPropertyVetoException
Sets the value of the attribute: PROTOCOL.

Supported API: false

Parameters:
a_Protocol -
Throws:
WTPropertyVetoException

protocolValidate

private void protocolValidate(String a_Protocol)
                       throws WTPropertyVetoException
Parameters:
a_Protocol -
Throws:
WTPropertyVetoException

getHost

public String getHost()
Gets the value of the attribute: HOST.

Supported API: false

Returns:
String

setHost

protected void setHost(String a_Host)
                throws WTPropertyVetoException
Sets the value of the attribute: HOST.

Supported API: false

Parameters:
a_Host -
Throws:
WTPropertyVetoException

hostValidate

private void hostValidate(String a_Host)
                   throws WTPropertyVetoException
Parameters:
a_Host -
Throws:
WTPropertyVetoException

getPort

public int getPort()
Gets the value of the attribute: PORT.

Supported API: false

Returns:
int

setPort

protected void setPort(int a_Port)
                throws WTPropertyVetoException
Sets the value of the attribute: PORT.

Supported API: false

Parameters:
a_Port -
Throws:
WTPropertyVetoException

getFile

public String getFile()
Gets the value of the attribute: FILE.

Supported API: false

Returns:
String

setFile

protected void setFile(String a_File)
                throws WTPropertyVetoException
Sets the value of the attribute: FILE.

Supported API: false

Parameters:
a_File -
Throws:
WTPropertyVetoException

fileValidate

private void fileValidate(String a_File)
                   throws WTPropertyVetoException
Parameters:
a_File -
Throws:
WTPropertyVetoException

newTransferUnitMaster

public static TransferUnitMaster newTransferUnitMaster(URL locator)
                                                throws WTException


Supported API: false

Parameters:
locator -
Returns:
TransferUnitMaster
Throws:
WTException

newTransferUnitMaster

public static TransferUnitMaster newTransferUnitMaster()
                                                throws WTException
Default factory for the class.

Supported API: false

Returns:
TransferUnitMaster
Throws:
WTException

getIdentificationObject

public IdentificationObject getIdentificationObject()
                                             throws WTException
Constructs and returns an identification object. This method is the only way to obtain an identification object.

Supported API: false

Specified by:
getIdentificationObject in interface Identified
Returns:
IdentificationObject
Throws:
WTException