Io zic ca e normal tinind cont de ce simpatii solide are don Parizer.
De revenire
Acum 12 ani
public static UHRoutingServices getInstance() throws UHException
{
if (m_instance == null)
{
synchronized (UHRoutingServices.class)
{
if (m_instance == null)
{
m_instance = new UHRoutingServices();
}
}
}
return m_instance;
}
public static Integer getCustomerSegment(Long i_customerID) {
Long segment = null;
segment = Long.valueOf(String,valueOf(hash(i_customerID)));
segment = Long.valueOf(String.valueOf(convertLongTo10Bit(segment)));
return new Integer(segment.intValue());
}
public static long hash(Long toHash) {
...
}
private static Integer convertLongTo10Bit(Long i_long) {
...
}
@Override
public String toString()
{
StringBuffer buffer = new StringBuffer();
buffer.append("m_processInstanceID = " + m_processInstanceID);
buffer.append(" m_firstReplicationProcessUnitID = " + m_firstReplicationProcessUnitID);
buffer.append(" m_segmentGroupID = " + m_segmentGroupID);
buffer.append(" m_cycleCode = " + m_cycleCode);
buffer.append(" m_fromSegmentID = " + m_fromSegmentID);
buffer.append(" m_toSegmentID = " + m_toSegmentID);
buffer.append(" m_custDBConnectCode = " + m_dbConnectCode);
buffer.append(" m_usageDBConnectCode = " + m_usageDBConnectCode);
return buffer.toString();
}