conversation
listlengths
2
2
[ { "content": "Read a two byte integer from the data.\n\n@param offset current offset into data block\n@param data data block\n@return int value", "role": "user" }, { "content": "protected int readShort(int offset, byte[] data)\n {\n int result = 0;\n int i = offset + m_offset;\n for...
[ { "content": "Populate the model with the object's properties.\n\n@param object object whose properties we're displaying\n@param excludedMethods method names to exclude", "role": "user" }, { "content": "public void loadObject(Object object, Set<String> excludedMethods)\n {\n m_model.setTableM...
[ { "content": "Create a table model from an object's properties.\n\n@param object target object\n@param excludedMethods method names to exclude\n@return table model", "role": "user" }, { "content": "private TableModel createTableModel(Object object, Set<String> excludedMethods)\n {\n List<Meth...
[ { "content": "Replace default values will null, allowing them to be ignored.\n\n@param value value to test\n@return filtered value", "role": "user" }, { "content": "private Object filterValue(Object value)\n {\n if (value instanceof Boolean && !((Boolean) value).booleanValue())\n {\n ...
[ { "content": "Retrieve a single value property.\n\n@param method method definition\n@param object target object\n@param map parameter values", "role": "user" }, { "content": "private void getSingleValue(Method method, Object object, Map<String, String> map)\n {\n Object value;\n try\n ...
[ { "content": "Retrieve multiple properties.\n\n@param method method definition\n@param object target object\n@param map parameter values", "role": "user" }, { "content": "private void getMultipleValues(Method method, Object object, Map<String, String> map)\n {\n try\n {\n int ind...
[ { "content": "Convert a method name into a property name.\n\n@param method target method\n@return property name", "role": "user" }, { "content": "private String getPropertyName(Method method)\n {\n String result = method.getName();\n if (result.startsWith(\"get\"))\n {\n res...
[ { "content": "This method is called when the locale of the parent file is updated.\nIt resets the locale specific date attributes to the default values\nfor the new locale.\n\n@param locale new locale", "role": "user" }, { "content": "public void setLocale(Locale locale)\n {\n List<SimpleDate...
[ { "content": "Main entry point. Reads a directory containing a P3 Btrieve database files\nand returns a map of table names and table content.\n\n@param directory directory containing the database\n@param prefix file name prefix used to identify files from the same database\n@return Map of table names to table d...
[ { "content": "Open the log file for writing.", "role": "user" }, { "content": "public static void openLogFile() throws IOException\n {\n if (LOG_FILE != null)\n {\n System.out.println(\"SynchroLogger Configured\");\n LOG = new PrintWriter(new FileWriter(LOG_FILE));\n ...
[ { "content": "Log a byte array.\n\n@param label label text\n@param data byte array", "role": "user" }, { "content": "public static void log(String label, byte[] data)\n {\n if (LOG != null)\n {\n LOG.write(label);\n LOG.write(\": \");\n LOG.println(ByteArrayHelper...
[ { "content": "Log a string.\n\n@param label label text\n@param data string data", "role": "user" }, { "content": "public static void log(String label, String data)\n {\n if (LOG != null)\n {\n LOG.write(label);\n LOG.write(\": \");\n LOG.println(data);\n L...
[ { "content": "Log a byte array as a hex dump.\n\n@param data byte array", "role": "user" }, { "content": "public static void log(byte[] data)\n {\n if (LOG != null)\n {\n LOG.println(ByteArrayHelper.hexdump(data, true, 16, \"\"));\n LOG.flush();\n }\n }", "role...
[ { "content": "Log table contents.\n\n@param label label text\n@param klass reader class name\n@param map table data", "role": "user" }, { "content": "public static void log(String label, Class<?> klass, Map<String, Object> map)\n {\n if (LOG != null)\n {\n LOG.write(label);\n ...
[ { "content": "Extracts the value of this bit flag from the supplied byte array\nand sets the value in the supplied container.\n\n@param container container\n@param data byte array", "role": "user" }, { "content": "public void setValue(FieldContainer container, byte[] data)\n {\n if (data != n...
[ { "content": "Set the enum representing the type of this column.\n\n@param tableType type of table to which this column belongs", "role": "user" }, { "content": "private void setFieldType(FastTrackTableType tableType)\n {\n switch (tableType)\n {\n case ACTBARS:\n {\n ...
[ { "content": "Read a FastTrack file.\n\n@param file FastTrack file", "role": "user" }, { "content": "public void process(File file) throws Exception\n {\n openLogFile();\n\n int blockIndex = 0;\n int length = (int) file.length();\n m_buffer = new byte[length];\n FileInputS...
[ { "content": "Retrieve a table of data.\n\n@param type table type\n@return FastTrackTable instance", "role": "user" }, { "content": "public FastTrackTable getTable(FastTrackTableType type)\n {\n FastTrackTable result = m_tables.get(type);\n if (result == null)\n {\n result =...
[ { "content": "Read a block of data from the FastTrack file and determine if\nit contains a table definition, or columns.\n\n@param blockIndex index of the current block\n@param startIndex start index of the block in the file\n@param blockLength block length", "role": "user" }, { "content": "private ...
[ { "content": "Read the name of a table and prepare to populate it with column data.\n\n@param startIndex start of the block\n@param blockLength length of the block", "role": "user" }, { "content": "private void readTableBlock(int startIndex, int blockLength)\n {\n for (int index = startIndex;...
[ { "content": "Read multiple columns from a block.\n\n@param startIndex start of the block\n@param blockLength length of the block", "role": "user" }, { "content": "private void readColumnBlock(int startIndex, int blockLength) throws Exception\n {\n int endIndex = startIndex + blockLength;\n ...
[ { "content": "Read data for a single column.\n\n@param startIndex block start\n@param length block length", "role": "user" }, { "content": "private void readColumn(int startIndex, int length) throws Exception\n {\n if (m_currentTable != null)\n {\n int value = FastTrackUtility.ge...
[ { "content": "Locate a feature in the file by match a byte pattern.\n\n@param patterns patterns to match\n@param bufferIndex start index\n@return true if the bytes at the position match a pattern", "role": "user" }, { "content": "private final boolean matchPattern(byte[][] patterns, int bufferIndex)...
[ { "content": "Locate a child block by byte pattern and validate by\nchecking the length of the string we are expecting\nto follow the pattern.\n\n@param bufferIndex start index\n@return true if a child block starts at this point", "role": "user" }, { "content": "private final boolean matchChildBlock...
[ { "content": "Update the default time unit for durations based on data read from the file.\n\n@param column column data", "role": "user" }, { "content": "private void updateDurationTimeUnit(FastTrackColumn column)\n {\n if (m_durationTimeUnit == null && isDurationColumn(column))\n {\n ...
[ { "content": "Update the default time unit for work based on data read from the file.\n\n@param column column data", "role": "user" }, { "content": "private void updateWorkTimeUnit(FastTrackColumn column)\n {\n if (m_workTimeUnit == null && isWorkColumn(column))\n {\n int value =...
[ { "content": "Log block data.\n\n@param blockIndex current block index\n@param startIndex start index\n@param blockLength length", "role": "user" }, { "content": "private void logBlock(int blockIndex, int startIndex, int blockLength)\n {\n if (m_log != null)\n {\n m_log.println(\...
[ { "content": "Log the data for a single column.\n\n@param startIndex offset into buffer\n@param length length", "role": "user" }, { "content": "private void logColumnData(int startIndex, int length)\n {\n if (m_log != null)\n {\n m_log.println();\n m_log.println(FastTrack...
[ { "content": "Log unexpected column structure.", "role": "user" }, { "content": "private void logUnexpectedStructure()\n {\n if (m_log != null)\n {\n m_log.println(\"ABORTED COLUMN - unexpected structure: \" + m_currentColumn.getClass().getSimpleName() + \" \" + m_currentColumn.g...
[ { "content": "Log column data.\n\n@param column column data", "role": "user" }, { "content": "private void logColumn(FastTrackColumn column)\n {\n if (m_log != null)\n {\n m_log.println(\"TABLE: \" + m_currentTable.getType());\n m_log.println(column.toString());\n ...
[ { "content": "Populates currency settings.\n\n@param record MPX record\n@param properties project properties", "role": "user" }, { "content": "private void populateCurrencySettings(Record record, ProjectProperties properties)\n {\n properties.setCurrencySymbol(record.getString(0));\n pro...
[ { "content": "Populates default settings.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "role": "user" }, { "content": "private void populateDefaultSettings(Record record, ProjectProperties properties) throws MPXJException\n {\n properties.setDefau...
[ { "content": "Populates date time settings.\n\n@param record MPX record\n@param properties project properties", "role": "user" }, { "content": "private void populateDateTimeSettings(Record record, ProjectProperties properties)\n {\n properties.setDateOrder(record.getDateOrder(0));\n prop...
[ { "content": "Converts a time represented as an integer to a Date instance.\n\n@param time integer time\n@return Date instance", "role": "user" }, { "content": "private Date getTimeFromInteger(Integer time)\n {\n Date result = null;\n\n if (time != null)\n {\n int minutes = ...
[ { "content": "Populates the project header.\n\n@param record MPX record\n@param properties project properties\n@throws MPXJException", "role": "user" }, { "content": "private void populateProjectHeader(Record record, ProjectProperties properties) throws MPXJException\n {\n properties.setProje...
[ { "content": "Populates a calendar hours instance.\n\n@param record MPX record\n@param hours calendar hours instance\n@throws MPXJException", "role": "user" }, { "content": "private void populateCalendarHours(Record record, ProjectCalendarHours hours) throws MPXJException\n {\n hours.setDay(D...
[ { "content": "Get a date range that correctly handles the case where the end time\nis midnight. In this instance the end time should be the start of the\nnext day.\n\n@param hours calendar hours\n@param start start date\n@param end end date", "role": "user" }, { "content": "private void addDateRange...
[ { "content": "Populates a calendar exception instance.\n\n@param record MPX record\n@param calendar calendar to which the exception will be added\n@throws MPXJException", "role": "user" }, { "content": "private void populateCalendarException(Record record, ProjectCalendar calendar) throws MPXJExcept...
[ { "content": "Add a range to an exception, ensure that we don't try to add null ranges.\n\n@param exception target exception\n@param start exception start\n@param finish exception finish", "role": "user" }, { "content": "private void addExceptionRange(ProjectCalendarException exception, Date start, ...
[ { "content": "Populates a calendar instance.\n\n@param record MPX record\n@param calendar calendar instance\n@param isBaseCalendar true if this is a base calendar", "role": "user" }, { "content": "private void populateCalendar(Record record, ProjectCalendar calendar, boolean isBaseCalendar)\n {\n ...
[ { "content": "Populates a resource.\n\n@param resource resource instance\n@param record MPX record\n@throws MPXJException", "role": "user" }, { "content": "private void populateResource(Resource resource, Record record) throws MPXJException\n {\n String falseText = LocaleData.getString(m_loca...
[ { "content": "Populates a relation list.\n\n@param task parent task\n@param field target task field\n@param data MPX relation list data", "role": "user" }, { "content": "private void populateRelationList(Task task, TaskField field, String data)\n {\n DeferredRelationship dr = new DeferredRela...
[ { "content": "This method processes a single deferred relationship list.\n\n@param dr deferred relationship list data\n@throws MPXJException", "role": "user" }, { "content": "private void processDeferredRelationship(DeferredRelationship dr) throws MPXJException\n {\n String data = dr.getData(...
[ { "content": "Creates and populates a new task relationship.\n\n@param field which task field source of data\n@param sourceTask relationship source task\n@param relationship relationship string\n@throws MPXJException", "role": "user" }, { "content": "private void populateRelation(TaskField field, Ta...
[ { "content": "Populates a recurring task.\n\n@param record MPX record\n@param task recurring task\n@throws MPXJException", "role": "user" }, { "content": "private void populateRecurringTask(Record record, RecurringTask task) throws MPXJException\n {\n //System.out.println(record);\n task...
[ { "content": "Populate a resource assignment.\n\n@param record MPX record\n@param assignment resource assignment\n@throws MPXJException", "role": "user" }, { "content": "private void populateResourceAssignment(Record record, ResourceAssignment assignment) throws MPXJException\n {\n //\n ...
[ { "content": "Populate a resource assignment workgroup instance.\n\n@param record MPX record\n@param workgroup workgroup instance\n@throws MPXJException", "role": "user" }, { "content": "private void populateResourceAssignmentWorkgroupFields(Record record, ResourceAssignmentWorkgroupFields workgroup...
[ { "content": "Populate a file creation record.\n\n@param record MPX record\n@param properties project properties", "role": "user" }, { "content": "static void populateFileCreationRecord(Record record, ProjectProperties properties)\n {\n properties.setMpxProgramName(record.getString(0));\n ...
[ { "content": "This method takes the textual version of a relation type\nand returns an appropriate class instance. Note that unrecognised\nvalues will cause this method to return null.\n\n@param locale target locale\n@param type text version of the relation type\n@return RelationType instance", "role": "use...
[ { "content": "Convert the Phoenix representation of a duration into a Duration instance.\n\n@param value Phoenix duration\n@return Duration instance", "role": "user" }, { "content": "public static final Duration parseDuration(String value)\n {\n Duration result = null;\n if (value != nul...
[ { "content": "Retrieve a duration in the form required by Phoenix.\n\n@param duration Duration instance\n@return formatted duration", "role": "user" }, { "content": "public static final String printDuration(Duration duration)\n {\n String result = null;\n if (duration != null)\n {\n...
[ { "content": "Retrieve a finish date time in the form required by Phoenix.\n\n@param value Date instance\n@return formatted date time", "role": "user" }, { "content": "public static final String printFinishDateTime(Date value)\n {\n if (value != null)\n {\n value = DateHelper.add...
[ { "content": "Convert the Phoenix representation of a finish date time into a Date instance.\n\n@param value Phoenix date time\n@return Date instance", "role": "user" }, { "content": "public static final Date parseFinishDateTime(String value)\n {\n Date result = parseDateTime(value);\n i...
[ { "content": "Retrieves a field type from a location in a data block.\n\n@param data data block\n@param offset offset into data block\n@return field type", "role": "user" }, { "content": "private FieldType getFieldType(byte[] data, int offset)\n {\n int fieldIndex = MPPUtility.getInt(data, of...
[ { "content": "By the time we reach this method, we should be looking at the SQLite\ndatabase file itself.\n\n@param file SQLite database file\n@return ProjectFile instance", "role": "user" }, { "content": "private ProjectFile readFile(File file) throws MPXJException\n {\n try\n {\n ...
[ { "content": "Read the project data and return a ProjectFile instance.\n\n@return ProjectFile instance", "role": "user" }, { "content": "private ProjectFile read() throws Exception\n {\n m_project = new ProjectFile();\n m_eventManager = m_project.getEventManager();\n\n ProjectConfig...
[ { "content": "Create a mapping from entity names to entity ID values.", "role": "user" }, { "content": "private void populateEntityMap() throws SQLException\n {\n for (Row row : getRows(\"select * from z_primarykey\"))\n {\n m_entityMap.put(row.getString(\"Z_NAME\"), row.getInteg...
[ { "content": "Read calendar data.", "role": "user" }, { "content": "private void processCalendars() throws Exception\n {\n List<Row> rows = getRows(\"select * from zcalendar where zproject=?\", m_projectID);\n for (Row row : rows)\n {\n ProjectCalendar calendar = m_project.a...
[ { "content": "Process normal calendar working and non-working days.\n\n@param calendar parent calendar", "role": "user" }, { "content": "private void processDays(ProjectCalendar calendar) throws Exception\n {\n // Default all days to non-working\n for (Day day : Day.values())\n {\n ...
[ { "content": "Read resource data.", "role": "user" }, { "content": "private void processResources() throws SQLException\n {\n List<Row> rows = getRows(\"select * from zresource where zproject=? order by zorderinproject\", m_projectID);\n for (Row row : rows)\n {\n Resource r...
[ { "content": "Read all top level tasks.", "role": "user" }, { "content": "private void processTasks() throws SQLException\n {\n //\n // Yes... we could probably read this in one query in the right order\n // using a CTE... but life's too short.\n //\n List<Row> rows = getR...
[ { "content": "Read all child tasks for a given parent.\n\n@param parentTask parent task", "role": "user" }, { "content": "private void processChildTasks(Task parentTask) throws SQLException\n {\n List<Row> rows = getRows(\"select * from zscheduleitem where zparentactivity_=? and z_ent=? order...
[ { "content": "Read data for an individual task.\n\n@param row task data from database\n@param task Task instance", "role": "user" }, { "content": "private void populateTask(Row row, Task task)\n {\n task.setUniqueID(row.getInteger(\"Z_PK\"));\n task.setName(row.getString(\"ZTITLE\"));\n ...
[ { "content": "Populate the constraint type and constraint date.\nNote that Merlin allows both start and end constraints simultaneously.\nAs we can't have both, we'll prefer the start constraint.\n\n@param row task data from database\n@param task Task instance", "role": "user" }, { "content": "privat...
[ { "content": "Read assignment data.", "role": "user" }, { "content": "private void processAssignments() throws SQLException\n {\n List<Row> rows = getRows(\"select * from zscheduleitem where zproject=? and z_ent=? order by zorderinactivity\", m_projectID, m_entityMap.get(\"Assignment\"));\n ...
[ { "content": "Extract a duration amount from the assignment, converting a percentage\ninto an actual duration.\n\n@param task parent task\n@param work duration from assignment\n@return Duration instance", "role": "user" }, { "content": "private Duration assignmentDuration(Task task, Duration work)\n...
[ { "content": "Read relation data.", "role": "user" }, { "content": "private void processDependencies() throws SQLException\n {\n List<Row> rows = getRows(\"select * from zdependency where zproject=?\", m_projectID);\n for (Row row : rows)\n {\n Task nextTask = m_project.getT...
[ { "content": "Retrieve a node list based on an XPath expression.\n\n@param document XML document to process\n@param expression compiled XPath expression\n@return node list", "role": "user" }, { "content": "private NodeList getNodeList(String document, XPathExpression expression) throws Exception\n ...
[ { "content": "Entry point for processing filter definitions.\n\n@param properties project properties\n@param filters project filters\n@param fixedData filter fixed data\n@param varData filter var data", "role": "user" }, { "content": "public void process(ProjectProperties properties, FilterContainer...
[ { "content": "This method is used to parse a string representation of a time\nunit, and return the appropriate constant value.\n\n@param units string representation of a time unit\n@param locale target locale\n@return numeric constant\n@throws MPXJException normally thrown when parsing fails", "role": "user...
[ { "content": "Reads the header data from a block.\n\n@param buffer block data\n@param offset current offset into block data\n@param postHeaderSkipBytes bytes to skip after reading the header\n@return current BlockHeader instance", "role": "user" }, { "content": "public BlockHeader read(byte[] buffer...
[ { "content": "Entry point for processing saved view state.\n\n@param file project file\n@param varData view state var data\n@param fixedData view state fixed data\n@throws IOException", "role": "user" }, { "content": "public void process(ProjectFile file, Var2Data varData, byte[] fixedData) throws I...
[ { "content": "Retrieve row from a nested table.\n\n@param name column name\n@return nested table rows", "role": "user" }, { "content": "@SuppressWarnings(\"unchecked\") public final List<MapRow> getRows(String name)\n {\n return (List<MapRow>) getObject(name);\n }", "role": "assistant" ...
[ { "content": "This method removes all RTF formatting from a given piece of text.\n\n@param text Text from which the RTF formatting is to be removed.\n@return Plain text", "role": "user" }, { "content": "public static String strip(String text)\n {\n String result = text;\n if (text != nul...
[ { "content": "Remove the trailing line end from an RTF block.\n\n@param text source text\n@param formalRTF true if this is a real RTF block\n@return text with line end stripped", "role": "user" }, { "content": "private static String stripExtraLineEnd(String text, boolean formalRTF)\n {\n if (...
[ { "content": "Read the work weeks.\n\n@param data calendar data\n@param offset current offset into data\n@param cal parent calendar", "role": "user" }, { "content": "private void processWorkWeeks(byte[] data, int offset, ProjectCalendar cal)\n {\n // System.out.println(\"Calendar=\" + ca...
[ { "content": "Process an individual work week day.\n\n@param data calendar data\n@param offset current offset into data\n@param week parent week\n@param day current day", "role": "user" }, { "content": "private void processWorkWeekDay(byte[] data, int offset, ProjectCalendarWeek week, Day day)\n {...
[ { "content": "Retrieve the recurrence type.\n\n@param value integer value\n@return RecurrenceType instance", "role": "user" }, { "content": "private RecurrenceType getRecurrenceType(int value)\n {\n RecurrenceType result;\n if (value < 0 || value >= RECURRENCE_TYPES.length)\n {\n ...
[ { "content": "Determine if the exception is relative based on the recurrence type integer value.\n\n@param value integer value\n@return true if the recurrence is relative", "role": "user" }, { "content": "private boolean getRelative(int value)\n {\n boolean result;\n if (value < 0 || val...
[ { "content": "Gets the value of the task property.\n\n<p>\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a <CODE>set</CODE> method for the task property.\n\n<...
[ { "content": "Set the model used by the left table.\n\n@param model table model", "role": "user" }, { "content": "public void setLeftTableModel(TableModel model)\n {\n TableModel old = m_leftTable.getModel();\n m_leftTable.setModel(model);\n firePropertyChange(\"leftTableModel\", ol...
[ { "content": "Set the model used by the right table.\n\n@param model table model", "role": "user" }, { "content": "public void setRightTableModel(TableModel model)\n {\n TableModel old = m_rightTable.getModel();\n m_rightTable.setModel(model);\n firePropertyChange(\"rightTableModel\...
[ { "content": "Extract raw table data from the input stream.\n\n@param is input stream", "role": "user" }, { "content": "public void process(InputStream is) throws Exception\n {\n readHeader(is);\n readVersion(is);\n readTableData(readTableHeaders(is), is);\n }", "role": "assis...
[ { "content": "Return an input stream to read the data from the named table.\n\n@param name table name\n@return InputStream instance\n@throws IOException", "role": "user" }, { "content": "public StreamReader getTableData(String name) throws IOException\n {\n InputStream stream = new ByteArrayI...
[ { "content": "Read the table headers. This allows us to break the file into chunks\nrepresenting the individual tables.\n\n@param is input stream\n@return list of tables in the file", "role": "user" }, { "content": "private List<SynchroTable> readTableHeaders(InputStream is) throws IOException\n {...
[ { "content": "Read the header data for a single file.\n\n@param header header data\n@return SynchroTable instance", "role": "user" }, { "content": "private SynchroTable readTableHeader(byte[] header)\n {\n SynchroTable result = null;\n String tableName = DatatypeConverter.getSimpleString...
[ { "content": "Read the data for all of the tables we're interested in.\n\n@param tables list of all available tables\n@param is input stream", "role": "user" }, { "content": "private void readTableData(List<SynchroTable> tables, InputStream is) throws IOException\n {\n for (SynchroTable table...
[ { "content": "Read data for a single table and store it.\n\n@param is input stream\n@param table table header", "role": "user" }, { "content": "private void readTable(InputStream is, SynchroTable table) throws IOException\n {\n int skip = table.getOffset() - m_offset;\n if (skip != 0)\n ...
[ { "content": "Read the file header data.\n\n@param is input stream", "role": "user" }, { "content": "private void readHeader(InputStream is) throws IOException\n {\n byte[] header = new byte[20];\n is.read(header);\n m_offset += 20;\n SynchroLogger.log(\"HEADER\", header); \n...
[ { "content": "Read the version number.\n\n@param is input stream", "role": "user" }, { "content": "private void readVersion(InputStream is) throws IOException\n {\n BytesReadInputStream bytesReadStream = new BytesReadInputStream(is);\n String version = DatatypeConverter.getString(bytesRe...
[ { "content": "Convenience method which allows all projects in the database to\nbe read in a single operation.\n\n@return list of ProjectFile instances\n@throws MPXJException", "role": "user" }, { "content": "public List<ProjectFile> readAll() throws MPXJException\n {\n Map<Integer, String> pr...
[ { "content": "Populate data for analytics.", "role": "user" }, { "content": "private void processAnalytics() throws SQLException\n {\n allocateConnection();\n\n try\n {\n DatabaseMetaData meta = m_connection.getMetaData();\n String productName = meta.getDatabaseProdu...
[ { "content": "Process the scheduling project property from PROJPROP. This table only seems to exist\nin P6 databases, not XER files.\n\n@throws SQLException", "role": "user" }, { "content": "private void processSchedulingProjectProperties() throws SQLException\n {\n List<Row> rows = getRows(\...
[ { "content": "Select the default currency properties from the database.\n\n@param currencyID default currency ID", "role": "user" }, { "content": "private void processDefaultCurrency(Integer currencyID) throws SQLException\n {\n List<Row> rows = getRows(\"select * from \" + m_schema + \"currt...
[ { "content": "Set the name of the schema containing the Primavera tables.\n\n@param schema schema name.", "role": "user" }, { "content": "public void setSchema(String schema)\n {\n if (schema == null)\n {\n schema = \"\";\n }\n else\n {\n if (!schema.isEmpt...
[ { "content": "This method is used to configure the primary and alternative\nformat patterns.\n\n@param primaryPattern new format pattern\n@param alternativePatterns alternative format patterns\n@param decimalSeparator Locale specific decimal separator to replace placeholder\n@param groupingSeparator Locale spec...
[ { "content": "Given a resource field number, this method returns the resource field name.\n\n@param key resource field number\n@return resource field name", "role": "user" }, { "content": "private String getResourceField(int key)\n {\n String result = null;\n\n if (key > 0 && key < m_res...
[ { "content": "Given a resource field name, this method returns the resource field number.\n\n@param field resource field name\n@return resource field number", "role": "user" }, { "content": "private int getResourceCode(String field) throws MPXJException\n {\n Integer result = m_resourceNumber...
[ { "content": "Retrieve the next available field.\n\n@return FieldType instance for the next available field", "role": "user" }, { "content": "public FieldType getField()\n {\n FieldType result = null;\n if (m_index < m_fields.length)\n {\n result = m_fields[m_index++];\n ...
[ { "content": "Read a nested table. Instantiates the supplied reader class to\nextract the data.\n\n@param reader table reader class\n@return table rows", "role": "user" }, { "content": "public List<MapRow> readTable(TableReader reader) throws IOException\n {\n reader.read();\n return rea...