Prophet::Change(3pm) User Contributed Perl Documentation Prophet::Change(3pm)NAME
Prophet::Change
DESCRIPTION
This class encapsulates a change to a single record in a Prophet replica.
METHODS
record_type
The record type for the record.
record_uuid
The UUID of the record being changed.
change_type
One of "add_file", "add_dir", "update_file", "delete".
is_resolution
A boolean value specifying whether this change represents a conflict resolution or not.
prop_changes [@PROPCHANGES]
Returns a list of Prophet::PropChanges associated with this Change. Takes an optional arrayref to fully replace the set of propchanges.
has_prop_changes
Returns true if this change contains any Prophet::PropChanges and false if it doesn't.
new_from_conflict $conflict
Takes a Prophet::Conflict object and creates a Prophet::Change object representing the conflict resolution.
add_prop_change { new => __, old => ___, name => ___ }
Adds a new Prophet::PropChange to this Prophet::Change.
Takes a "name", and the "old" and "new" values.
as_hash
Returns a reference to a representation of this change as a hash.
as_string ARGS
Returns a string representing this change. If $args{header_callback} is specified, the string returned from passing $self to the callback
is prepended to the change string before it is returned.
new_from_hashref HASHREF
Takes a reference to a hash representation of a change (such as is returned by "as_hash" or serialized json) and returns a new
Prophet::Change representation of it.
This method should be invoked as a class method, not an object method.
For example: "Prophet::Change->new_from_hashref($ref_to_change_hash)"
perl v5.10.1 2009-12-22 Prophet::Change(3pm)
Check Out this Related Man Page
Prophet::Replica::sqlite(3pm) User Contributed Perl Documentation Prophet::Replica::sqlite(3pm)METHODS
replica_exists
Returns true if the replica already exists / has been initialized. Returns false otherwise.
replica_version
Returns this replica's version.
set_replica_version
Sets the replica's version to the given integer.
uuid
Return the replica UUID
Internals of record handling
traverse_changesets { after => SEQUENCE_NO, UNTIL => SEQUENCE_NO, callback => sub { } }
Walks through all changesets from $after to $until, calling $callback on each.
If no $until is specified, the latest changeset is assumed.
changesets_for_record { uuid => $uuid, type => $type, limit => $int }
Returns an ordered set of changeset objects for all changesets containing changes to this object.
If "limit" is specified, only returns that many changesets (starting from record creation).
Note that changesets may include changes to other records
list_records { type => $type }
Returns a reference to a list of record objects for all records of type $type.
Order is not guaranteed.
read_userdata_file
Returns the contents of the given file in this replica's userdata directory. Returns "undef" if the file does not exist.
write_userdata_file
Writes the given string to the given file in this replica's userdata directory.
Working with luidsperl v5.10.1 2009-12-22 Prophet::Replica::sqlite(3pm)
Hello.
I am trying to figure out how to change the title of my console window. I don't need it to dynamically change with my current directory. I just want to be able to change the name of it, so when I minimize the window I can see which windows are for what purpose.
I've tried using the... (8 Replies)
Newfactor
Cnet story
HP Web Site
It's cool that they offer it. But it comes with XP Pro. Change that to XP Home and you save $50. Change that to Linux and it costs the same as XP Home. They are not passing the savings to the consumer. (1 Reply)
Hi experts,
If i have a directory and 10 files in it, which has string "Myapp" and i wish to change it to "Mydb" in all of the 10 files, how do i do that ?
Thanks very much
Regards
G (3 Replies)
I want to change time format
For example ,
1:1:15 = Change to => 01:01:15
10:8:20 = Change to => 10:08:20
22:10:2 = Change to => 10:10:02
Thank in advance (4 Replies)
Hi everyone,
I am attempting to do something that should be very simple. How do I replace a specific line of a file with different text, and then save that file to its original name? I believe I want to use the sed command with the c option, but I after trying many times, I can't get the right... (10 Replies)
hi
i have a file contains data
session terminated
Line timeout: 120
Change state START->SIGNON_REPLY, RC=0
Change state SIGNON_REPLY->SIGNON, RC=0
i need to remove "Change state" and write to the same file
please help
thanks
Satya (3 Replies)
Hi All i have a file that is to big for vi and is a multiple line record
3999||20090127163547796|196.46.162.250|1028|196.207.40.112|2152|00:0C:31:BB:25:5
4|00:00:0C:07:AC:06|655016000575511|05||3C65|0D029C1D|||00644B5A|||||||||||inter... (5 Replies)
Discussion started by: gseptember
5 Replies
8. Post Here to Contact Site Administrators and Moderators
Since most of the polls in "The Lounge" are subjective and quite some are asking about things that might change over time (examples here, here and here), I think it might be a good idea to allow a change of mind on (some) polls.
A vBulletin mod that can do that is available here
What's your... (3 Replies)
Hi,
Someone can help me please,
i have text in file like this:
(a,b,c,d,e),
(f,g,h,i,j),
(k,l,m,n,o),
and i want to change the last character to like this:
(a,b,c,d,e),
(f,g,h,i,j),
(k,l,m,n,o);
last array character "," i want change to ";"
anyone can help me please,,
thanks (2 Replies)
I have big XML which i want to change all VERSIONNUMBER equal to 1,in existing file values of VERSIONNUMBER will be different as below now i want to change all VERSIONNUMBER values qual to 1.Please help me which will convert versionnumber values.
<SHORTCUT OBJECTSUBTYPE ="" OBJECTTYPE ... (5 Replies)
Hi All,
In I text file I had lot of columns as below and with different id's and I need to replace with only one "vreddy". Please let me know the command for it.
CHANGE_USERID="bbhaska"
CHANGE_USERID="skanaujeg"
Please use CODE tags as required by forum rules! (3 Replies)
I have a prophet 21 acclaim system (old) but is my life.. (small business)
Ibm risc sys/ 6000 43p-140
well anyway not much a forum guy but i need some help..
I have a message popping up that is not allowing me to get in to my system.
The data space of the process is not enough for the shm... (4 Replies)