Class DataBaseObject
java.lang.Object
ecmwf.common.database.DataBaseObject
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
Activity,Alias,Association,AuthorizedECUser,Category,CatUrl,ChangeLog,Country,DataFile,DataTransfer,Destination,DestinationECUser,ECSession,ECtransAccounting,ECtransDestination,ECtransHistory,ECtransModule,ECUser,Event,ExistingStorageDirectory,Host,HostECUser,HostLocation,HostOutput,HostStats,IncomingAssociation,IncomingHistory,IncomingPermission,IncomingPolicy,IncomingUser,MetadataAttribute,MetadataValue,MonitoringHistory,MonitoringValue,MSUser,Notification,Operation,Permission,PolicyAssociation,PolicyUser,Privileged,ProductStatus,Publication,Rates,Reception,SchedulerValue,Spool,Statistics,Traffic,TransferECUser,TransferGroup,TransferHistory,TransferMethod,TransferModule,TransferServer,UploadHistory,Url,WebUser,WeuCat
The Class DataBaseObject.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static final TimestampbigDecimalToTimestamp(BigDecimal param) Big decimal to timestamp.clone()Clone.compare(DataBaseObject object, boolean mergeOriginalRevised) Compare.static final StringCompare 2 Objects.intGets the collection size.protected static final intintegerToInt(Integer param, int defaultValue) Integer to int.protected static final StringintegerToString(Integer param) Integer to string.voidsetCollectionSize(int collectionSize) Sets the collection size.protected static final StringStrim.protected static final IntegerstringToInteger(String param) String to integer.protected static final LongstringToLong(String param) String to long.protected static final StringstringToString(String param, String defaultValue) String to string.protected static final BigDecimaltimestampToBigDecimal(Timestamp param) Timestamp to big decimal.toString()To string.toString(boolean onSingleLine) Converts into string.static final StringConverts into string.static final StringConverts into string.
-
Field Details
-
TAG_ACROSS_MULTIPLE_LINES
The Constant TAG_ACROSS_MULTIPLE_LINES.- See Also:
-
TAG_END_OF_LINES
-
collectionSize
protected int collectionSizeThe collection size.
-
-
Constructor Details
-
DataBaseObject
public DataBaseObject()
-
-
Method Details
-
getCollectionSize
public int getCollectionSize()Gets the collection size.- Returns:
- the collection size
-
setCollectionSize
public void setCollectionSize(int collectionSize) Sets the collection size.- Parameters:
collectionSize- the new collection size
-
clone
-
toString
-
toString
Converts into string.- Parameters:
onSingleLine- the on single line- Returns:
- the string
-
compare
Compare.- Parameters:
object- the objectmergeOriginalRevised- the merge original revised- Returns:
- the string
-
toString
-
toString
-
compare
-
strim
-
integerToString
-
stringToInteger
-
stringToLong
-
integerToInt
Integer to int.- Parameters:
param- the paramdefaultValue- the default value- Returns:
- the int
-
stringToString
-
bigDecimalToTimestamp
Big decimal to timestamp.- Parameters:
param- the param- Returns:
- the timestamp
-
timestampToBigDecimal
Timestamp to big decimal.- Parameters:
param- the param- Returns:
- the big decimal
-